diff options
author | Jim Meyering <jim@meyering.net> | 2003-10-04 19:56:32 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-10-04 19:56:32 +0000 |
commit | 7da7011b650fa4b15a1d4a5acdd998897800d7db (patch) | |
tree | 463941e9b29e8399f850a03dd76df594a773ff56 /src | |
parent | 6e075a0f8770126118b3edde7a0ac0b8c0caeb4e (diff) | |
download | coreutils-7da7011b650fa4b15a1d4a5acdd998897800d7db.tar.xz |
(du_files): Ignore any failure of fts_close.
Diffstat (limited to 'src')
-rw-r--r-- | src/du.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -519,11 +519,10 @@ du_files (char **files, int bit_flags) process_file (fts, ent); } - if (fts_close (fts) < 0) - { - error (0, errno, "closing FTS handle"); - fail = 1; - } + /* 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 (print_totals) print_size (tot_size, _("total")); |