Make realpath deal with double slashes

This commit is contained in:
Erik van der Kouwe 2010-09-06 07:45:32 +00:00
parent ad5ecf906b
commit 5cc29a6c7e

View file

@ -170,8 +170,8 @@ static char *realpath_recurse(const char *file_name, char *resolved_name,
max_depth)) max_depth))
return NULL; return NULL;
/* skip the slash */ /* skip the slash(es) */
if (*file_name == '/') while (*file_name == '/')
file_name++; file_name++;
} }