projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03daea3
)
(count_entry): Fix bug in polarity of safe-stat status test.
author
Jim Meyering
<jim@meyering.net>
Tue, 21 Feb 1995 05:19:03 +0000
(
05:19
+0000)
committer
Jim Meyering
<jim@meyering.net>
Tue, 21 Feb 1995 05:19:03 +0000
(
05:19
+0000)
src/du.c
patch
|
blob
|
history
diff --git
a/src/du.c
b/src/du.c
index 7fba843ad7ce7ab34ee877568f3b0f2080c34453..b23b9acb42515761c6a965f75f1a04a3d9d624b4 100644
(file)
--- a/
src/du.c
+++ b/
src/du.c
@@
-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);