mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08: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:
parent
38bb8feb80
commit
3220cade24
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user