diff options
author | bde <bde@FreeBSD.org> | 1999-09-13 15:12:30 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-09-13 15:12:30 +0000 |
commit | 019fd9cb5fe17ed3ce93a28306ec3009d2a512f7 (patch) | |
tree | 1aa9855894ec47d506a330a9a2bc4dc9f170aec9 /bin | |
parent | 10335a428dbff74506cf67f4b88971cb12b40490 (diff) | |
download | FreeBSD-src-019fd9cb5fe17ed3ce93a28306ec3009d2a512f7.zip FreeBSD-src-019fd9cb5fe17ed3ce93a28306ec3009d2a512f7.tar.gz |
Fixed longstanding breakage of rm of deep directories in rev.1.2.
rm must not use FTS_NOCHDIR, since chdir'ing is required for removing
deep directory trees and the ability to remove such trees is required
by POSIX.2 and POLA. The breakage didn't make much difference until
recently, since fts(3) didn't work in deep directory trees. It isn't
clear whether using FTS_NOCHDIR ever fixed anything (Net/2's rm.c is
similar to Lite1's). Perhaps it was actually to limit the damage
caused by the fts bug.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/rm/rm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/rm/rm.c b/bin/rm/rm.c index 5a4f87a..c12872b 100644 --- a/bin/rm/rm.c +++ b/bin/rm/rm.c @@ -164,7 +164,7 @@ rm_tree(argv) */ #define SKIPPED 1 - flags = FTS_PHYSICAL | FTS_NOCHDIR; + flags = FTS_PHYSICAL; if (!needstat) flags |= FTS_NOSTAT; if (Wflag) |