Added trim_string(s, "./", 0) to unix_clean_name to remove
authorSamba Release Account <samba-bugs@samba.org>
Mon, 10 Feb 1997 20:03:56 +0000 (20:03 +0000)
committerSamba Release Account <samba-bugs@samba.org>
Mon, 10 Feb 1997 20:03:56 +0000 (20:03 +0000)
leading ./ characters.
jra@cygnus.com

source/lib/util.c

index e1302857fb50364a2942153390c23ff4c7ca331a..44184f8d46862efc29eb1f0b2efc3accca592c92 100644 (file)
@@ -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;