Lines Matching refs:destname
127 char *destname;
148 char *catch = try->parent ? try->name : TT.destname, *err = "%s"; in cp_node()
165 && (catch = TT.destname)) in cp_node()
371 char *destname = toys.optargs[--toys.optc]; in cp_main() local
372 int i, destdir = !stat(destname, &TT.top) && S_ISDIR(TT.top.st_mode); in cp_main()
374 if (toys.optc>1 && !destdir) error_exit("'%s' not directory", destname); in cp_main()
411 if (destdir) TT.destname = xmprintf("%s/%s", destname, basename(src)); in cp_main()
412 else TT.destname = destname; in cp_main()
421 if (!stat(TT.destname, &st) in cp_main()
424 fprintf(stderr, "%s: overwrite '%s'", toys.which->name, TT.destname); in cp_main()
426 else unlink(TT.destname); in cp_main()
430 if (rc) rc = rename(src, TT.destname); in cp_main()
440 if (destdir) free(TT.destname); in cp_main()
474 if (xrun((char *[]){"strip", "-p", TT.destname, 0})) toys.exitval = 1; in install_node()
494 TT.destname = toys.optargs[toys.optc-1]; in install_main()
495 if (mkpathat(AT_FDCWD, TT.destname, 0, 2)) in install_main()
496 perror_exit("-D '%s'", TT.destname); in install_main()