From: Roland McGrath Date: Wed, 22 Aug 2001 23:12:51 +0000 (+0000) Subject: 2001-08-20 Roland McGrath X-Git-Tag: cvs/glibc-2-2-5~401 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3220cade24dd50e31c528f0b6567e0bb6bdf418a;p=thirdparty%2Fglibc.git 2001-08-20 Roland McGrath * hurd/hurdlookup.c (__hurd_file_name_lookup): Fail with ENOENT for "". (__hurd_file_name_split, __hurd_directory_name_split): Likewise. --- diff --git a/hurd/hurdlookup.c b/hurd/hurdlookup.c index 0426d97b850..c1f6ad7c667 100644 --- a/hurd/hurdlookup.c +++ b/hurd/hurdlookup.c @@ -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++;