diff options
Diffstat (limited to 'src/chown-core.c')
-rw-r--r-- | src/chown-core.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/chown-core.c b/src/chown-core.c index eb349049e..82e96442a 100644 --- a/src/chown-core.c +++ b/src/chown-core.c @@ -509,10 +509,8 @@ chown_files (char **files, int bit_flags, required_uid, required_gid, chopt); } - /* 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; } |