(ftw_startup): Use correct name in check for symlink without existing target.
authordrepper <drepper>
Sun, 12 Jan 2003 23:41:18 +0000 (23:41 +0000)
committerdrepper <drepper>
Sun, 12 Jan 2003 23:41:18 +0000 (23:41 +0000)
io/ftw.c

index eceb404..26dd77f 100644 (file)
--- a/io/ftw.c
+++ b/io/ftw.c
@@ -594,7 +594,7 @@ ftw_startup (const char *dir, int is_nftw, void *func, int descriptors,
        {
          if (!(flags & FTW_PHYS)
              && errno == ENOENT
-             && LXSTAT (_STAT_VER, dir, &st) == 0
+             && LXSTAT (_STAT_VER, name, &st) == 0
              && S_ISLNK (st.st_mode))
            result = (*data.func) (data.dirbuf, &st, data.cvt_arr[FTW_SLN],
                                   &data.ftw);