]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(fts_build): #if-0-out a block of unused code. Patch via glibc.
authorJim Meyering <jim@meyering.net>
Fri, 14 Apr 2006 16:11:01 +0000 (16:11 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 14 Apr 2006 16:11:01 +0000 (16:11 +0000)
lib/fts.c

index fa78413720ad51e6258a129dd07cd3523afaf0a1..5acec826f1a70e825401f339f9610f0da954363e 100644 (file)
--- a/lib/fts.c
+++ b/lib/fts.c
@@ -956,6 +956,10 @@ mem1:                              saved_errno = errno;
                        p->fts_flags |= FTS_ISW;
 #endif
 
+#if 0
+               /* Unreachable code.  cderrno is only ever set to a nonnull
+                  value if dirp is closed at the same time.  But then we
+                  cannot enter this loop.  */
                if (cderrno) {
                        if (nlinks) {
                                p->fts_info = FTS_NS;
@@ -972,7 +976,9 @@ mem1:                               saved_errno = errno;
                        p->fts_accpath =
                            ISSET(FTS_NOCHDIR) ? p->fts_path : p->fts_name;
                        p->fts_info = FTS_NSOK;
-               } else {
+               } else
+#endif
+               {
                        /* Build a file name for fts_stat to stat. */
                        if (ISSET(FTS_NOCHDIR)) {
                                p->fts_accpath = p->fts_path;