fix rm -f
"/bin/rm" should not issue a usage message if the "-f" option was specified.
This commit is contained in:
parent
fd4c2b74f3
commit
39b1aee2e1
1 changed files with 5 additions and 1 deletions
|
@ -1320,7 +1320,11 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case REMOVE:
|
case REMOVE:
|
||||||
if (i == argc) usage();
|
if (i == argc) {
|
||||||
|
if (fflag)
|
||||||
|
exit(0);
|
||||||
|
usage();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case LINK:
|
case LINK:
|
||||||
/* 'ln dir/file' is to be read as 'ln dir/file .'. */
|
/* 'ln dir/file' is to be read as 'ln dir/file .'. */
|
||||||
|
|
Loading…
Reference in a new issue