Skip to content

Commit

Permalink
fix: update the default rm(1) to conform to the new POSIX 1003.1(2008…
Browse files Browse the repository at this point in the history
…) standard
  • Loading branch information
trqt committed Jan 4, 2023
1 parent e617e74 commit 4d93437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rm/rm.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ main(int argc, char **argv)
argv[optind-1][2] != '\0'))
optind++;
#endif
if (optind >= argc)
if (optind >= argc && !fflag)
usage();
ontty = isatty(0);
if (rflag && (startfd = open(".", O_RDONLY)) < 0) {
Expand Down

0 comments on commit 4d93437

Please sign in to comment.