summaryrefslogtreecommitdiff
path: root/debugfs/ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'debugfs/ls.c')
-rw-r--r--debugfs/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debugfs/ls.c b/debugfs/ls.c
index 3064598d..a66482dc 100644
--- a/debugfs/ls.c
+++ b/debugfs/ls.c
@@ -125,7 +125,7 @@ void do_list_dir(int argc, char *argv[])
if (check_fs_open(argv[0]))
return;
- optind = 0;
+ optind = 1;
#ifdef HAVE_OPTRESET
optreset = 1; /* Makes BSD getopt happy */
#endif