summaryrefslogtreecommitdiff
path: root/e2fsprogs/lsattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/lsattr.c')
-rw-r--r--e2fsprogs/lsattr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/e2fsprogs/lsattr.c b/e2fsprogs/lsattr.c
index 6f4b974..a11f243 100644
--- a/e2fsprogs/lsattr.c
+++ b/e2fsprogs/lsattr.c
@@ -104,8 +104,7 @@ int lsattr_main(int argc, char **argv)
if (!*argv)
lsattr_args(".");
else {
- while (*argv)
- lsattr_args(*argv++);
+ do lsattr_args(*argv++); while (*argv);
}
return EXIT_SUCCESS;