Skip to content

Commit

Permalink
Make realpath deal with double slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik van der Kouwe committed Sep 6, 2010
1 parent ad5ecf9 commit 5cc29a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/libc/other/realpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}

Expand Down

0 comments on commit 5cc29a6

Please sign in to comment.