Home | History | Annotate | Download | only in openssh

Lines Matching refs:oldpath

1064 	char *oldpath, *newpath;
1069 oldpath = get_string(NULL);
1072 logit("rename old \"%s\" new \"%s\"", oldpath, newpath);
1076 else if (lstat(oldpath, &sb) == -1)
1080 if (link(oldpath, newpath) == -1) {
1096 if (rename(oldpath, newpath) == -1)
1105 } else if (unlink(oldpath) == -1) {
1112 if (rename(oldpath, newpath) == -1)
1118 xfree(oldpath);
1151 char *oldpath, *newpath;
1155 oldpath = get_string(NULL);
1158 logit("symlink old \"%s\" new \"%s\"", oldpath, newpath);
1163 ret = symlink(oldpath, newpath);
1167 xfree(oldpath);
1174 char *oldpath, *newpath;
1177 oldpath = get_string(NULL);
1180 logit("posix-rename old \"%s\" new \"%s\"", oldpath, newpath);
1184 ret = rename(oldpath, newpath);
1188 xfree(oldpath);
1231 char *oldpath, *newpath;
1234 oldpath = get_string(NULL);
1237 logit("hardlink old \"%s\" new \"%s\"", oldpath, newpath);
1241 ret = link(oldpath, newpath);
1245 xfree(oldpath);