diff options
author | Jim Meyering <jim@meyering.net> | 2007-07-30 12:16:34 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-07-30 12:16:34 +0000 |
commit | 09c479ebb512014ad2ffdd1a71efe37276475663 (patch) | |
tree | b8b194cfcb1d9406721b19cce0ca9a193c9663fe /lib/fts.c | |
parent | 5e942637dc329a612277f45207a7b1aadc46a9b3 (diff) | |
download | gnulib-09c479ebb512014ad2ffdd1a71efe37276475663.tar.gz |
* lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
it has valid stat data. This bug would cause du not to count the
sizes of inaccessible directories.
Patch by Jose Maria Plans, reported in http://bugzilla.redhat.com/250077
Diffstat (limited to 'lib/fts.c')
-rw-r--r-- | lib/fts.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -685,7 +685,7 @@ fts_read (register FTS *sp) /* If fts_build's call to fts_safe_changedir failed because it was not able to fchdir into a subdirectory, tell the caller. */ - if (p->fts_errno) + if (p->fts_errno && p->fts_info != FTS_DNR) p->fts_info = FTS_ERR; LEAVE_DIR (sp, p, "2"); return (p); |