From 40212ce0c92b25d5b3470d09ad5cb3f625c6a4c2 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 12 Jan 2003 23:44:14 +0000 Subject: Update. * io/ftwtest-sh: Add test for case of symlink to nonexisting file given as start file. * io/ftw.c (ftw_startup): Use correct name in check for symlink without existing target. Patch by Jim Meyering. --- io/ftw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io/ftw.c') diff --git a/io/ftw.c b/io/ftw.c index eceb404..26dd77f 100644 --- 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); -- cgit v1.1