diff options
author | Roland McGrath <roland@gnu.org> | 2001-08-22 23:12:51 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-08-22 23:12:51 +0000 |
commit | 3220cade24dd50e31c528f0b6567e0bb6bdf418a (patch) | |
tree | 60777afcc8396bb2568eae811e388c0d99a67a4b /hurd/hurdlookup.c | |
parent | 38bb8feb805a8696474dddbd2e56068601a9c900 (diff) | |
download | glibc-3220cade24dd50e31c528f0b6567e0bb6bdf418a.tar.gz |
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/hurdlookup.c')
-rw-r--r-- | hurd/hurdlookup.c | 3 |
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++; |