mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 04:50:07 +00:00
hurd: Fix fdopendir checking for directory type
* sysdeps/mach/hurd/fdopendir.c (__fdopendir): Lookup "./" instead of "/" that would designate the root of the filesystem.
This commit is contained in:
parent
fff30716a7
commit
94884ff506
@ -39,7 +39,7 @@ __fdopendir (int fd)
|
||||
/* Ensure that it's a directory. */
|
||||
error_t err = HURD_FD_PORT_USE
|
||||
(d, ({
|
||||
file_t dir = __file_name_lookup_under (port, "/",
|
||||
file_t dir = __file_name_lookup_under (port, "./",
|
||||
O_DIRECTORY | O_NOTRANS, 0);;
|
||||
if (dir != MACH_PORT_NULL)
|
||||
__mach_port_deallocate (__mach_task_self (), dir);
|
||||
|
Loading…
Reference in New Issue
Block a user