Lines Matching defs:newpath
1254 char *oldpath, *newpath;
1259 (r = sshbuf_get_cstring(iqueue, &newpath, NULL)) != 0)
1263 logit("rename old \"%s\" new \"%s\"", oldpath, newpath);
1269 if (link(oldpath, newpath) == -1) {
1277 if (stat(newpath, &st) == -1) {
1278 if (rename(oldpath, newpath) == -1)
1290 unlink(newpath);
1293 } else if (stat(newpath, &sb) == -1) {
1294 if (rename(oldpath, newpath) == -1)
1301 free(newpath);
1332 char *oldpath, *newpath;
1336 (r = sshbuf_get_cstring(iqueue, &newpath, NULL)) != 0)
1340 logit("symlink old \"%s\" new \"%s\"", oldpath, newpath);
1341 /* this will fail if 'newpath' exists */
1342 r = symlink(oldpath, newpath);
1346 free(newpath);
1352 char *oldpath, *newpath;
1356 (r = sshbuf_get_cstring(iqueue, &newpath, NULL)) != 0)
1360 logit("posix-rename old \"%s\" new \"%s\"", oldpath, newpath);
1361 r = rename(oldpath, newpath);
1365 free(newpath);
1410 char *oldpath, *newpath;
1414 (r = sshbuf_get_cstring(iqueue, &newpath, NULL)) != 0)
1418 logit("hardlink old \"%s\" new \"%s\"", oldpath, newpath);
1419 r = link(oldpath, newpath);
1423 free(newpath);