cygwin: scandirat: fix path given to scandir

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2017-07-04 15:11:06 +02:00
parent 055daff132
commit 1a942680bf
1 changed files with 1 additions and 1 deletions

View File

@ -4771,7 +4771,7 @@ scandirat (int dirfd, const char *pathname, struct dirent ***namelist,
char *path = tp.c_get (); char *path = tp.c_get ();
if (gen_full_path_at (path, dirfd, pathname)) if (gen_full_path_at (path, dirfd, pathname))
__leave; __leave;
return scandir (pathname, namelist, select, compar); return scandir (path, namelist, select, compar);
} }
__except (EFAULT) {} __except (EFAULT) {}
__endtry __endtry