diff --git a/winsup/utils/chattr.c b/winsup/utils/chattr.c index eb60e5d3e..6942e11b0 100644 --- a/winsup/utils/chattr.c +++ b/winsup/utils/chattr.c @@ -320,12 +320,9 @@ next: if (sanity_check ()) return 1; if (optind > argc - 1) - { - chattr ("."); - if (Ropt) - chattr_dir ("."); - } - else for (; optind < argc; ++optind) + usage (stderr); + + for (; optind < argc; ++optind) { struct stat st;