]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: ls.c: update stale comment for previous commit
authorPádraig Brady <P@draigBrady.com>
Wed, 7 Jun 2023 20:51:47 +0000 (21:51 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 7 Jun 2023 20:51:47 +0000 (21:51 +0100)
* src/ls.c (gobble_file): Update comment to correspond with
the changes in the previous commit.

src/ls.c

index 33f692bb41fe1a94f296fdb90728628a0b358ce7..64da077e18de94e542d8ccb491d643fffd95a65c 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -3485,10 +3485,11 @@ gobble_file (char const *name, enum filetype type, ino_t inode,
               if (!need_lstat)
                 break;
 
-              /* stat failed because of ENOENT, maybe indicating a dangling
-                 symlink.  Or stat succeeded, FULL_NAME does not refer to a
-                 directory, and --dereference-command-line-symlink-to-dir is
-                 in effect.  Fall through so that we call lstat instead.  */
+              /* stat failed because of ENOENT || ELOOP, maybe indicating a
+                 non-traversable symlink.  Or stat succeeded,
+                 FULL_NAME does not refer to a directory,
+                 and --dereference-command-line-symlink-to-dir is in effect.
+                 Fall through so that we call lstat instead.  */
             }
           FALLTHROUGH;