diff options
author | Jim Meyering <jim@meyering.net> | 1995-02-21 05:19:03 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-02-21 05:19:03 +0000 |
commit | 875eafd4895baf158e376508b84832e6c047b6a8 (patch) | |
tree | a5257f0b94b35228e706c04325b7d806b469bcfd | |
parent | 03daea30a66372d86e43c4aeae64d646258d3e9e (diff) | |
download | coreutils-875eafd4895baf158e376508b84832e6c047b6a8.tar.xz |
(count_entry): Fix bug in polarity of safe-stat status test.
-rw-r--r-- | src/du.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -504,7 +504,7 @@ count_entry (ent, top, last_dev) a symlink, remember the current directory so we can return to it later. In other cases, chdir ("..") works fine. */ through_symlink = (xstat == safe_stat - && safe_lstat (ent, &e_buf) + && safe_lstat (ent, &e_buf) == 0 && S_ISLNK (e_buf.st_mode)); if (through_symlink) save_cwd (&cwd); |