1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 02:36:16 +02:00

(count_entry): Fix bug in polarity of safe-stat status test.

This commit is contained in:
Jim Meyering
1995-02-21 05:19:03 +00:00
parent 03daea30a6
commit 875eafd489

View File

@@ -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);