Lines Matching refs:destname
110 char *destname;
131 char *catch = try->parent ? try->name : TT.destname, *err = "%s"; in cp_node()
148 && (catch = TT.destname)) in cp_node()
354 catch = xmprintf("%s%s", TT.destname, f+strlen(try->name)); in cp_node()
366 char *destname = toys.optargs[--toys.optc]; in cp_main() local
367 int i, destdir = !stat(destname, &TT.top) && S_ISDIR(TT.top.st_mode); in cp_main()
369 if (toys.optc>1 && !destdir) error_exit("'%s' not directory", destname); in cp_main()
405 if (destdir) TT.destname = xmprintf("%s/%s", destname, basename(src)); in cp_main()
406 else TT.destname = destname; in cp_main()
414 int exists = !stat(TT.destname, &st); in cp_main()
420 fprintf(stderr, "%s: overwrite '%s'", toys.which->name, TT.destname); in cp_main()
422 else unlink(TT.destname); in cp_main()
427 if (rc) rc = rename(src, TT.destname); in cp_main()
436 if (destdir) free(TT.destname); in cp_main()
470 if (xrun((char *[]){"strip", "-p", TT.destname, 0})) toys.exitval = 1; in install_node()
490 TT.destname = toys.optargs[toys.optc-1]; in install_main()
491 if (mkpathat(AT_FDCWD, TT.destname, 0, 2)) in install_main()
492 perror_exit("-D '%s'", TT.destname); in install_main()