diff options
Diffstat (limited to 'bin/rm')
-rw-r--r-- | bin/rm/rm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/rm/rm.c b/bin/rm/rm.c index 52ead50..aefa8c6 100644 --- a/bin/rm/rm.c +++ b/bin/rm/rm.c @@ -192,8 +192,11 @@ rm_tree(char **argv) flags |= FTS_NOSTAT; if (Wflag) flags |= FTS_WHITEOUT; - if (!(fts = fts_open(argv, flags, NULL))) + if (!(fts = fts_open(argv, flags, NULL))) { + if (fflag && errno == ENOENT) + return; err(1, "fts_open"); + } while ((p = fts_read(fts)) != NULL) { switch (p->fts_info) { case FTS_DNR: |