From 3220cade24dd50e31c528f0b6567e0bb6bdf418a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 22 Aug 2001 23:12:51 +0000 Subject: 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. --- hurd/hurdlookup.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hurd') diff --git a/hurd/hurdlookup.c b/hurd/hurdlookup.c index 0426d97..c1f6ad7 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++; -- cgit v1.1