cygwin: scandirat: fix path given to scandir
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
055daff132
commit
1a942680bf
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue