in unix_clean_name caused directory names to go from ./ to "".
This is now checked for, unix_clean name returns ./ in these
cases.
jra@cygnus.com
(This used to be commit
64a16d9c2aae0405437f28dbb00e68080c09a7a1)
string_sub(s, "//","/");
/* Remove leading ./ characters */
- trim_string(s, "./", NULL);
+ if(strncmp(s, "./", 2) == 0) {
+ trim_string(s, "./", NULL);
+ if(*s == 0)
+ strcpy(s,"./");
+ }
while ((p = strstr(s,"/../")) != NULL)
{
DEBUG(3,("Illegal file name? (%s)\n",s));
return(False);
}
+
+ if (strlen(s) == 0)
+ strcpy(s,"./");
+
return(True);
}