diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index e1302857fb..44184f8d46 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1184,6 +1184,9 @@ void unix_clean_name(char *s) /* remove any double slashes */ string_sub(s, "//","/"); + /* Remove leading ./ characters */ + trim_string(s, "./", NULL); + while ((p = strstr(s,"/../")) != NULL) { pstring s1; |