diff options
author | Jim Meyering <meyering@redhat.com> | 2009-09-01 11:31:14 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-09-01 12:10:07 +0200 |
commit | 228c8e9eece21738070a986ff664f41d35b7e52e (patch) | |
tree | c7fe31b9d997e3910c882e08f81e182d3d874857 /src/chown-core.c | |
parent | 1ce27f74ec9aa20214e28969799c0f569288daf1 (diff) | |
download | coreutils-228c8e9eece21738070a986ff664f41d35b7e52e.tar.xz |
chcon, chmod, chgrp, chown, du: do not ignore fts_close failure
This is probably never visible, but who knows...
* src/chcon.c (process_files): Don't ignore fts_close failure.
* src/chmod.c (process_files): Likewise.
* src/chown-core.c (chown_files): Likewise.
* src/du.c (du_files): Likewise.
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; } |