fix rm -f

"/bin/rm" should not issue a usage message if the "-f" option was
    specified.
This commit is contained in:
Joseph Koshy 2011-11-25 21:50:33 +05:30 committed by Arun Thomas
parent fd4c2b74f3
commit 39b1aee2e1

View file

@ -1320,7 +1320,11 @@ int main(int argc, char **argv)
switch (action) {
case REMOVE:
if (i == argc) usage();
if (i == argc) {
if (fflag)
exit(0);
usage();
}
break;
case LINK:
/* 'ln dir/file' is to be read as 'ln dir/file .'. */