summaryrefslogtreecommitdiff
path: root/debugfs/debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'debugfs/debugfs.c')
-rw-r--r--debugfs/debugfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c
index 22941046..a9a6c63d 100644
--- a/debugfs/debugfs.c
+++ b/debugfs/debugfs.c
@@ -101,7 +101,7 @@ void do_open_filesys(int argc, char **argv)
blk_t blocksize = 0;
int open_flags = 0;
- optind = 0;
+ optind = 1;
#ifdef HAVE_OPTRESET
optreset = 1; /* Makes BSD getopt happy */
#endif
@@ -242,7 +242,7 @@ void do_show_super_stats(int argc, char *argv[])
int numdirs = 0;
const char *usage = "Usage: show_super [-h]";
- optind = 0;
+ optind = 1;
#ifdef HAVE_OPTRESET
optreset = 1; /* Makes BSD getopt happy */
#endif