about summary refs log tree commit diff
path: root/hurd
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-08-22 23:12:51 +0000
committerRoland McGrath <roland@gnu.org>2001-08-22 23:12:51 +0000
commit3220cade24dd50e31c528f0b6567e0bb6bdf418a (patch)
tree60777afcc8396bb2568eae811e388c0d99a67a4b /hurd
parent38bb8feb805a8696474dddbd2e56068601a9c900 (diff)
downloadglibc-3220cade24dd50e31c528f0b6567e0bb6bdf418a.tar.gz
glibc-3220cade24dd50e31c528f0b6567e0bb6bdf418a.tar.xz
glibc-3220cade24dd50e31c528f0b6567e0bb6bdf418a.zip
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.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurdlookup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hurd/hurdlookup.c b/hurd/hurdlookup.c
index 0426d97b85..c1f6ad7c66 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++;