diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-06-08 13:40:21 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-06-08 13:40:21 +0000 |
commit | 6fb4285228d52368238bbb5cc401b539e88a33c6 (patch) | |
tree | 550244206a8a339275bf2fad1cd92b9756e3ddaf /bin/rm | |
parent | cbdda62400f648563c81cfe2a9c8eddef741ca1c (diff) |
Don't give usage warning for 'rm -f' with no files to remove to be
consistent with other implementations.
Diffstat (limited to 'bin/rm')
-rw-r--r-- | bin/rm/rm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/rm/rm.c b/bin/rm/rm.c index af97972de4b..327a29e781a 100644 --- a/bin/rm/rm.c +++ b/bin/rm/rm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rm.c,v 1.9 1999/01/02 08:38:58 deraadt Exp $ */ +/* $OpenBSD: rm.c,v 1.10 2001/06/08 13:40:20 millert Exp $ */ /* $NetBSD: rm.c,v 1.19 1995/09/07 06:48:50 jtc Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)rm.c 8.8 (Berkeley) 4/27/95"; #else -static char rcsid[] = "$OpenBSD: rm.c,v 1.9 1999/01/02 08:38:58 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: rm.c,v 1.10 2001/06/08 13:40:20 millert Exp $"; #endif #endif /* not lint */ @@ -120,7 +120,7 @@ main(argc, argv) argc -= optind; argv += optind; - if (argc < 1) + if (argc < 1 && fflag == 0) usage(); checkdot(argv); |