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))
return NULL;
/* skip the slash */
if (*file_name == '/')
/* skip the slash(es) */
while (*file_name == '/')
file_name++;
}