From 228c8e9eece21738070a986ff664f41d35b7e52e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 1 Sep 2009 11:31:14 +0200 Subject: 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. --- src/chmod.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/chmod.c') 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; } -- cgit v1.2.3-54-g00ecf