summaryrefslogtreecommitdiffstats
path: root/bin/rm/rm.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/rm/rm.c')
-rw-r--r--bin/rm/rm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/rm/rm.c b/bin/rm/rm.c
index ea4ef07..e12bbdea 100644
--- a/bin/rm/rm.c
+++ b/bin/rm/rm.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)rm.c 8.5 (Berkeley) 4/18/94";
#else
static const char rcsid[] =
- "$Id: rm.c,v 1.17 1997/08/07 15:37:47 steve Exp $";
+ "$Id: rm.c,v 1.18 1997/08/07 21:37:39 steve Exp $";
#endif
#endif /* not lint */
@@ -114,8 +114,11 @@ main(argc, argv)
argc -= optind;
argv += optind;
- if (argc < 1)
+ if (argc < 1) {
+ if (fflag)
+ return 0;
usage();
+ }
checkdot(argv);
uid = geteuid();
OpenPOWER on IntegriCloud