diff options
Diffstat (limited to 'src/chmod.c')
-rw-r--r-- | src/chmod.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/chmod.c b/src/chmod.c index aeefcc65a..0688979df 100644 --- a/src/chmod.c +++ b/src/chmod.c @@ -335,10 +335,8 @@ process_files (char **files, int bit_flags) ok &= process_file (fts, ent); } - /* Ignore failure, since the only way it can do so is in failing to - return to the original directory, and since we're about to exit, - that doesn't matter. */ - fts_close (fts); + if (fts_close (fts) != 0) + ok = false; return ok; } |