[PATCH] misc/e2freefrag: Fix argument parsing in do_freefrag()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux