summaryrefslogtreecommitdiff
path: root/lib/fts.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-04-14 16:11:01 +0000
committerJim Meyering <jim@meyering.net>2006-04-14 16:11:01 +0000
commit091c01208936c07ad7dec561397cd65eff647a1e (patch)
treec9d12d963296d4b9f08c452185cb7a398432f523 /lib/fts.c
parent52bb8bdd104b2d7f1b34fa83dce9f845a07c97d4 (diff)
downloadcoreutils-091c01208936c07ad7dec561397cd65eff647a1e.tar.xz
(fts_build): #if-0-out a block of unused code. Patch via glibc.
Diffstat (limited to 'lib/fts.c')
-rw-r--r--lib/fts.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/fts.c b/lib/fts.c
index fa7841372..5acec826f 100644
--- 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;