Lines Matching defs:destname
110 char *destname;
131 char *catch = try->parent ? try->name : TT.destname, *err = "%s";
148 && (catch = TT.destname))
356 catch = xmprintf("%s%s", TT.destname, f+strlen(try->name));
368 char *destname = toys.optargs[--toys.optc];
369 int i, destdir = !stat(destname, &TT.top) && S_ISDIR(TT.top.st_mode);
372 error_exit("'%s' not directory", destname);
415 TT.destname = xmprintf("%s/%s", destname, s);
417 if (!(s = fileunderdir(TT.destname, destname))) {
418 error_msg("%s not under %s", TT.destname, destname);
423 mkpath(TT.destname);
425 } else TT.destname = destname;
433 int exists = !stat(TT.destname, &st);
439 fprintf(stderr, "%s: overwrite '%s'", toys.which->name, TT.destname);
441 else unlink(TT.destname);
446 if (rc) rc = rename(src, TT.destname);
456 if (destdir) free(TT.destname);
487 // No -r so always one level deep, so destname as set by cp_node() is correct
488 if (FLAG(s) && xrun((char *[]){"strip", "-p", TT.destname, 0}))
514 TT.destname = toys.optargs[toys.optc-1];
515 if (mkpathat(AT_FDCWD, TT.destname, 0, MKPATHAT_MAKE))
516 perror_exit("-D '%s'", TT.destname);