X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffts.c;h=c15f04c8f9a540bda237dc9056e09d6afeb9ec45;hb=85fc15b1bf5d976584d8f174682a0d677692f0ea;hp=fc6bbd37b72293c75bebc828380b81f5cf044744;hpb=83f57af124f0a11a0f491b90f4ac4910893f0dd0;p=gnulib.git diff --git a/lib/fts.c b/lib/fts.c index fc6bbd37b..c15f04c8f 100644 --- a/lib/fts.c +++ b/lib/fts.c @@ -1008,6 +1008,8 @@ fts_build (register FTS *sp, int type) /* Read the directory, attaching each entry to the `link' pointer. */ doadjust = false; for (head = tail = NULL, nitems = 0; dirp && (dp = readdir(dirp));) { + bool is_dir; + if (!ISSET(FTS_SEEDOT) && ISDOT(dp->d_name)) continue; @@ -1073,7 +1075,6 @@ mem1: saved_errno = errno; } else p->fts_accpath = p->fts_name; - bool is_dir; if (sp->fts_compar == NULL || ISSET(FTS_DEFER_STAT)) { /* Record what fts_read will have to do with this entry. In many cases, it will simply fts_stat it,