Lines Matching refs:SANITIZE_ALLOW_PATH
119 if(flags & SANITIZE_ALLOW_PATH) { in sanitize_file_name()
143 if((flags & SANITIZE_ALLOW_PATH) && !strncmp(target, "\\\\?\\", 4)) in sanitize_file_name()
155 (!(flags & SANITIZE_ALLOW_PATH) && *p == ':') || in sanitize_file_name()
156 (!(flags & SANITIZE_ALLOW_PATH) && (*p == '/' || *p == '\\'))) { in sanitize_file_name()
170 if(!(flags & SANITIZE_ALLOW_PATH) && len) { in sanitize_file_name()
328 *d = ((flags & SANITIZE_ALLOW_PATH)) ? ':' : '_'; in msdosify()
335 if((flags & SANITIZE_ALLOW_PATH) && *s == ':') in msdosify()
337 else if((flags & SANITIZE_ALLOW_PATH) && (*s == '/' || *s == '\\')) in msdosify()
345 if((flags & SANITIZE_ALLOW_PATH) && idx == 0 && in msdosify()
460 if((flags & SANITIZE_ALLOW_PATH) && in rename_if_reserved_dos()
505 if(!(flags & SANITIZE_ALLOW_PATH)) { in rename_if_reserved_dos()