• Home
  • Raw
  • Download

Lines Matching refs:oldpath

1180 	char *oldpath, *newpath;  in process_rename()  local
1184 if ((r = sshbuf_get_cstring(iqueue, &oldpath, NULL)) != 0 || in process_rename()
1189 logit("rename old \"%s\" new \"%s\"", oldpath, newpath); in process_rename()
1191 if (lstat(oldpath, &sb) == -1) in process_rename()
1195 if (link(oldpath, newpath) == -1) { in process_rename()
1211 if (rename(oldpath, newpath) == -1) in process_rename()
1220 } else if (unlink(oldpath) == -1) { in process_rename()
1227 if (rename(oldpath, newpath) == -1) in process_rename()
1233 free(oldpath); in process_rename()
1265 char *oldpath, *newpath; in process_symlink() local
1268 if ((r = sshbuf_get_cstring(iqueue, &oldpath, NULL)) != 0 || in process_symlink()
1273 logit("symlink old \"%s\" new \"%s\"", oldpath, newpath); in process_symlink()
1275 r = symlink(oldpath, newpath); in process_symlink()
1278 free(oldpath); in process_symlink()
1285 char *oldpath, *newpath; in process_extended_posix_rename() local
1288 if ((r = sshbuf_get_cstring(iqueue, &oldpath, NULL)) != 0 || in process_extended_posix_rename()
1293 logit("posix-rename old \"%s\" new \"%s\"", oldpath, newpath); in process_extended_posix_rename()
1294 r = rename(oldpath, newpath); in process_extended_posix_rename()
1297 free(oldpath); in process_extended_posix_rename()
1343 char *oldpath, *newpath; in process_extended_hardlink() local
1346 if ((r = sshbuf_get_cstring(iqueue, &oldpath, NULL)) != 0 || in process_extended_hardlink()
1351 logit("hardlink old \"%s\" new \"%s\"", oldpath, newpath); in process_extended_hardlink()
1352 r = link(oldpath, newpath); in process_extended_hardlink()
1355 free(oldpath); in process_extended_hardlink()