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

View File

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