Lines Matching refs:oldpath
1097 sftp_copy(struct sftp_conn *conn, const char *oldpath, const char *newpath)
1113 if (sftp_stat(conn, oldpath, 0, &attr) != 0)
1121 error("Cannot copy non-regular file: %s", oldpath);
1143 (r = sshbuf_put_cstring(msg, oldpath)) != 0 ||
1148 debug3("Sent message SSH2_FXP_OPEN I:%u P:%s", id, oldpath);
1153 "remote open(\"%s\")", oldpath);
1194 oldpath, newpath);
1198 error("Couldn't copy file \"%s\" to \"%s\": %s", oldpath,
1212 sftp_rename(struct sftp_conn *conn, const char *oldpath, const char *newpath,
1226 "\"%s\" to \"%s\"", oldpath, newpath);
1234 oldpath, newpath);
1239 if ((r = sshbuf_put_cstring(msg, oldpath)) != 0 ||
1245 oldpath, newpath);
1250 error("remote rename \"%s\" to \"%s\": %s", oldpath,
1257 sftp_hardlink(struct sftp_conn *conn, const char *oldpath, const char *newpath)
1268 "\"%s\" to \"%s\"", oldpath, newpath);
1278 (r = sshbuf_put_cstring(msg, oldpath)) != 0 ||
1283 oldpath, newpath);
1288 error("remote link \"%s\" to \"%s\": %s", oldpath,
1295 sftp_symlink(struct sftp_conn *conn, const char *oldpath, const char *newpath)
1305 debug2("Sending SSH2_FXP_SYMLINK \"%s\" to \"%s\"", oldpath, newpath);
1314 (r = sshbuf_put_cstring(msg, oldpath)) != 0 ||
1318 debug3("Sent message SSH2_FXP_SYMLINK \"%s\" -> \"%s\"", oldpath,
1324 error("remote symlink file \"%s\" to \"%s\": %s", oldpath,