(fts_build): Comment out dead code.
authordrepper <drepper>
Fri, 7 Apr 2006 19:23:54 +0000 (19:23 +0000)
committerdrepper <drepper>
Fri, 7 Apr 2006 19:23:54 +0000 (19:23 +0000)
io/fts.c

index 39c076a..71400d1 100644 (file)
--- a/io/fts.c
+++ b/io/fts.c
@@ -747,6 +747,10 @@ mem1:                              saved_errno = errno;
                        p->fts_flags |= FTS_ISW;
 #endif
 
                        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;
                if (cderrno) {
                        if (nlinks) {
                                p->fts_info = FTS_NS;
@@ -754,7 +758,9 @@ mem1:                               saved_errno = errno;
                        } else
                                p->fts_info = FTS_NSOK;
                        p->fts_accpath = cur->fts_accpath;
                        } else
                                p->fts_info = FTS_NSOK;
                        p->fts_accpath = cur->fts_accpath;
-               } else if (nlinks == 0
+               } else
+#endif
+               if (nlinks == 0
 #if defined DT_DIR && defined _DIRENT_HAVE_D_TYPE
                           || (nostat &&
                               dp->d_type != DT_DIR && dp->d_type != DT_UNKNOWN)
 #if defined DT_DIR && defined _DIRENT_HAVE_D_TYPE
                           || (nostat &&
                               dp->d_type != DT_DIR && dp->d_type != DT_UNKNOWN)