(__hurd_path_lookup): Skip over initial slashes before calling
authormib <mib>
Wed, 20 Jul 1994 22:55:05 +0000 (22:55 +0000)
committermib <mib>
Wed, 20 Jul 1994 22:55:05 +0000 (22:55 +0000)
__dir_pathtrans.

hurd/hurdlookup.c

index 287daed..89fb48d 100644 (file)
@@ -34,6 +34,9 @@ __hurd_path_lookup (file_t crdir, file_t cwdir,
 
   startdir = path[0] == '/' ? crdir : cwdir;
 
+  while (path[0] == '/')
+    path++;
+
   if (err = __dir_pathtrans (startdir, path, flags, mode,
                             &doretry, retryname, result))
     return err;