Lines Matching refs:s
302 const char *s = file_name; in msdosify() local
326 if(s[0] >= 'A' && s[0] <= 'z' && s[1] == ':') { in msdosify()
327 *d++ = *s++; in msdosify()
329 ++d; ++s; in msdosify()
332 for(idx = 0, dot_idx = -1; *s && d < dlimit; s++, d++) { in msdosify()
333 if(memchr(illegal_aliens, *s, len)) { in msdosify()
335 if((flags & SANITIZE_ALLOW_PATH) && *s == ':') in msdosify()
337 else if((flags & SANITIZE_ALLOW_PATH) && (*s == '/' || *s == '\\')) in msdosify()
338 *d = *s; in msdosify()
344 else if(*s == '.') { in msdosify()
346 (s[1] == '/' || s[1] == '\\' || in msdosify()
347 (s[1] == '.' && (s[2] == '/' || s[2] == '\\')))) { in msdosify()
349 *d++ = *s++; in msdosify()
352 if(*s == '.') { in msdosify()
353 *d++ = *s++; in msdosify()
357 *d = *s; in msdosify()
372 if(*s == '.') in msdosify()
375 else if(*s == '+' && s[1] == '+') { in msdosify()
395 s++; in msdosify()
402 *d = *s; in msdosify()
403 if(*s == '/' || *s == '\\') { in msdosify()
412 if(*s) { in msdosify()
416 if(strpbrk(s, "\\/:") || truncate_dryrun(dos_name, d - dos_name)) in msdosify()