Make realpath deal with double slashes
This commit is contained in:
parent
ad5ecf906b
commit
5cc29a6c7e
1 changed files with 2 additions and 2 deletions
|
@ -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++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue