From 5cc29a6c7ef6b28a1ea592276e0d1cdce8833b97 Mon Sep 17 00:00:00 2001 From: Erik van der Kouwe Date: Mon, 6 Sep 2010 07:45:32 +0000 Subject: [PATCH] Make realpath deal with double slashes --- lib/libc/other/realpath.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/other/realpath.c b/lib/libc/other/realpath.c index f331bd3d1..3a43445e7 100644 --- a/lib/libc/other/realpath.c +++ b/lib/libc/other/realpath.c @@ -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++; } -- 2.44.0