diff options
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++; |