search for: cfn_keep_dot_dir

Displaying 1 result from an estimated 1 matches for "cfn_keep_dot_dir".

Did you mean: cfn_keep_dot_dirs
2008 Nov 15
2
[PATCH] Don't strip two leading slashes from paths.
...+821,12 @@ unsigned int clean_fname(char *name, int if (!name) return 0; - if ((anchored = *f == '/') != 0) + if ((anchored = *f == '/') != 0) { *t++ = *f++; + /* keep "//" */ + if (*f == '/') + *t++ = *f++; + } else if (flags & CFN_KEEP_DOT_DIRS && *f == '.' && f[1] == '/') { *t++ = *f++; *t++ = *f++;