diff options
| author | Michael Haro <mharo@FreeBSD.org> | 1999-08-29 19:57:03 +0000 |
|---|---|---|
| committer | Michael Haro <mharo@FreeBSD.org> | 1999-08-29 19:57:03 +0000 |
| commit | 0b9373357659f7a0cbb67fa7c7ebcebe04c61e88 (patch) | |
| tree | 516845ede28ad4d630528f74db85b248814b605b | |
| parent | 0a2478e155fc5e652331bd5e721483f024e9d203 (diff) | |
Notes
| -rw-r--r-- | bin/rm/rm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/rm/rm.c b/bin/rm/rm.c index 3f0da2342ed5c..7467748b1c203 100644 --- a/bin/rm/rm.c +++ b/bin/rm/rm.c @@ -235,7 +235,8 @@ rm_tree(argv) switch (p->fts_info) { case FTS_DP: case FTS_DNR: - if ((e=rmdir(p->fts_accpath)) || (fflag && errno == ENOENT)) { + if ((e=rmdir(p->fts_accpath)) == 0 || + (fflag && errno == ENOENT)) { if (e == 0 && vflag) (void)printf("%s\n", p->fts_accpath); continue; |
