Lines Matching defs:newdir
290 set_chdir(struct bsdtar *bsdtar, const char *newdir)
293 if (newdir[0] == '/' || newdir[0] == '\\' ||
295 (((newdir[0] >= 'a' && newdir[0] <= 'z') ||
296 (newdir[0] >= 'A' && newdir[0] <= 'Z')) &&
297 newdir[1] == ':' && (newdir[2] == '/' || newdir[2] == '\\'))) {
299 if (newdir[0] == '/') {
307 bsdtar->pending_chdir = strdup(newdir);
312 bsdtar->pending_chdir = malloc(old_len + strlen(newdir) + 2);
317 old_pending, newdir);