summaryrefslogtreecommitdiff
path: root/bin/rm
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-06-08 13:40:21 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-06-08 13:40:21 +0000
commit6fb4285228d52368238bbb5cc401b539e88a33c6 (patch)
tree550244206a8a339275bf2fad1cd92b9756e3ddaf /bin/rm
parentcbdda62400f648563c81cfe2a9c8eddef741ca1c (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.c6
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);