aboutsummaryrefslogtreecommitdiff
path: root/debugfs/ls.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2003-03-06 11:09:18 -0500
committerTheodore Ts'o <tytso@mit.edu>2003-03-06 11:09:18 -0500
commited78c021c3b111d8ab9a51aef5d5156e3004083f (patch)
tree8d9e92fb9a9bdb535ed06e67bc8981f63e56d67f /debugfs/ls.c
parent94ba8c750604d8d2487841a06cb930dd5f3bb43b (diff)
downloade2fsprogs-ed78c021c3b111d8ab9a51aef5d5156e3004083f.tar.gz
Fix up lots of portability problems that caused e2fsprogs not to build successfully
under Solaris.
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