Cygwin: utils: chattr: do not default to CWD
Drop the unexpected behaviour to run chattr in the CWD if no file has been specified on the command line. Bail out with usage info instead. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
f8eecf22db
commit
3053632389
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue