aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs/lsattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/lsattr.c')
-rw-r--r--e2fsprogs/lsattr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/e2fsprogs/lsattr.c b/e2fsprogs/lsattr.c
index c58948698..13eeb35f5 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;
}