All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] misc/e2freefrag: Fix argument parsing in do_freefrag()
@ 2014-08-02 17:13 Artemiy Volkov
  2014-08-03  4:12 ` Theodore Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Artemiy Volkov @ 2014-08-02 17:13 UTC (permalink / raw)
  To: linux-ext4; +Cc: Artemiy Volkov

When do_freefrag() is called from debugfs, the value of optind is
not reset. Rectify that by calling reset_getopt().

Signed-off-by: Artemiy Volkov <artemiyv@acm.org>
---
 misc/e2freefrag.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/misc/e2freefrag.c b/misc/e2freefrag.c
index bb72c70..90acb7e 100644
--- a/misc/e2freefrag.c
+++ b/misc/e2freefrag.c
@@ -277,6 +277,7 @@ int main(int argc, char *argv[])
 #ifdef DEBUGFS
 	if (check_fs_open(argv[0]))
 		return;
+	reset_getopt();
 #else
 	char *device_name;
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] misc/e2freefrag: Fix argument parsing in do_freefrag()
  2014-08-02 17:13 [PATCH] misc/e2freefrag: Fix argument parsing in do_freefrag() Artemiy Volkov
@ 2014-08-03  4:12 ` Theodore Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Ts'o @ 2014-08-03  4:12 UTC (permalink / raw)
  To: Artemiy Volkov; +Cc: linux-ext4

On Sun, Aug 03, 2014 at 03:13:31AM +1000, Artemiy Volkov wrote:
> When do_freefrag() is called from debugfs, the value of optind is
> not reset. Rectify that by calling reset_getopt().
> 
> Signed-off-by: Artemiy Volkov <artemiyv@acm.org>

Applied, thanks.

						- Ted

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-03  4:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-02 17:13 [PATCH] misc/e2freefrag: Fix argument parsing in do_freefrag() Artemiy Volkov
2014-08-03  4:12 ` Theodore Ts'o

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.