1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-10-12 19:04:54 +03:00

2001-08-20 Roland McGrath <roland@frob.com>

* hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "".
	(__hurd_file_name_split, __hurd_directory_name_split): Likewise.
This commit is contained in:
Roland McGrath
2001-08-22 23:12:51 +00:00
parent 38bb8feb80
commit 3220cade24

View File

@@ -63,6 +63,9 @@ __hurd_file_name_lookup (error_t (*use_init_port)
if (! lookup)
lookup = __dir_lookup;
if (file_name[0] == '\0')
return ENOENT;
startport = (file_name[0] == '/') ? INIT_PORT_CRDIR : INIT_PORT_CWDIR;
while (file_name[0] == '/')
file_name++;