diff options
Diffstat (limited to 'e2fsprogs/lsattr.c')
-rw-r--r-- | e2fsprogs/lsattr.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/e2fsprogs/lsattr.c b/e2fsprogs/lsattr.c index c589486..13eeb35 100644 --- a/e2fsprogs/lsattr.c +++ b/e2fsprogs/lsattr.c @@ -102,10 +102,8 @@ int lsattr_main(int argc ATTRIBUTE_UNUSED, char **argv) argv += optind; if (!*argv) - lsattr_args("."); - else { - do lsattr_args(*argv++); while (*argv); - } + *--argv = (char*)"."; + do lsattr_args(*argv++); while (*argv); return EXIT_SUCCESS; } |