[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1406999611-11532-1-git-send-email-artemiyv@acm.org>
Date: Sun, 3 Aug 2014 03:13:31 +1000
From: Artemiy Volkov <artemiyv@....org>
To: linux-ext4@...r.kernel.org
Cc: Artemiy Volkov <artemiyv@....org>
Subject: [PATCH] misc/e2freefrag: Fix argument parsing in do_freefrag()
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@....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
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists