Home
last modified time | relevance | path

Searched refs:oldpath (Results 1 – 20 of 20) sorted by relevance

/external/openssh/
Dsftp-server.c1180 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
[all …]
Dsftp-client.c864 do_rename(struct sftp_conn *conn, const char *oldpath, const char *newpath, in do_rename() argument
887 if ((r = sshbuf_put_cstring(msg, oldpath)) != 0 || in do_rename()
893 "SSH2_FXP_RENAME", oldpath, newpath); in do_rename()
898 error("Couldn't rename file \"%s\" to \"%s\": %s", oldpath, in do_rename()
905 do_hardlink(struct sftp_conn *conn, const char *oldpath, const char *newpath) in do_hardlink() argument
924 (r = sshbuf_put_cstring(msg, oldpath)) != 0 || in do_hardlink()
929 oldpath, newpath); in do_hardlink()
934 error("Couldn't link file \"%s\" to \"%s\": %s", oldpath, in do_hardlink()
941 do_symlink(struct sftp_conn *conn, const char *oldpath, const char *newpath) in do_symlink() argument
959 (r = sshbuf_put_cstring(msg, oldpath)) != 0 || in do_symlink()
[all …]
Dsftp.0267 ln [-s] oldpath newpath
268 Create a link from oldpath to newpath. If the -s flag is
354 rename oldpath newpath
355 Rename remote file from oldpath to newpath.
363 symlink oldpath newpath
364 Create a symbolic link from oldpath to newpath.
DPROTOCOL377 string oldpath
381 rename(oldpath, newpath) and will respond with a SSH_FXP_STATUS message.
434 string oldpath
438 link(oldpath, newpath) and will respond with a SSH_FXP_STATUS message.
/external/libvncserver/x11vnc/
Dsolid.c57 static char *oldpath = NULL; in usr_bin_path() local
62 if (oldpath) { in usr_bin_path()
63 set_env("PATH", oldpath); in usr_bin_path()
64 free(oldpath); in usr_bin_path()
65 oldpath = NULL; in usr_bin_path()
71 oldpath = strdup(getenv("PATH")); in usr_bin_path()
73 oldpath = strdup("/usr/bin"); in usr_bin_path()
75 newpath = (char *) malloc(strlen(oldpath) + strlen(addpath) + 1); in usr_bin_path()
78 strcat(newpath, oldpath); in usr_bin_path()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_mac.cc139 uptr internal_rename(const char *oldpath, const char *newpath) { in internal_rename() argument
140 return rename(oldpath, newpath); in internal_rename()
Dsanitizer_posix.h50 uptr internal_rename(const char *oldpath, const char *newpath);
Dsanitizer_posix.cc250 bool RenameFile(const char *oldpath, const char *newpath, error_t *error_p) { in RenameFile() argument
251 uptr res = internal_rename(oldpath, newpath); in RenameFile()
Dsanitizer_linux.cc299 uptr internal_rename(const char *oldpath, const char *newpath) { in internal_rename() argument
301 return internal_syscall(SYSCALL(renameat), AT_FDCWD, (uptr)oldpath, AT_FDCWD, in internal_rename()
304 return internal_syscall(SYSCALL(rename), (uptr)oldpath, (uptr)newpath); in internal_rename()
Dsanitizer_win.cc451 bool RenameFile(const char *oldpath, const char *newpath, error_t *error_p) { in RenameFile() argument
Dsanitizer_common.h214 bool RenameFile(const char *oldpath, const char *newpath,
/external/libvncserver/x11vnc/misc/
DXdummy1540 int rename(const char *oldpath, const char *newpath) {
1549 if (debug) fprintf(stderr, "RENAME: %s %s\n", oldpath, newpath);
1552 return(real_rename(oldpath, newpath));
1555 if (strstr(oldpath, "/var/log") == oldpath) {
1559 return(real_rename(oldpath, newpath));
/external/e2fsprogs/misc/
Dfsck.c1256 char *oldpath = getenv("PATH"); in main() local
1281 if (oldpath) { in main()
1283 strlen (oldpath) + 1); in main()
1290 strcat (fsck_path, oldpath); in main()
Dmke2fs.c1291 char * oldpath = getenv("PATH"); in PRS() local
1322 if (oldpath) in PRS()
1323 pathlen += strlen(oldpath); in PRS()
1333 if (oldpath) { in PRS()
1335 strcat (newpath, oldpath); in PRS()
/external/e2fsprogs/e2fsck/
Dunix.c1005 char *oldpath = getenv("PATH"); in PRS() local
1009 if (oldpath) in PRS()
1010 len += strlen(oldpath); in PRS()
1017 if (oldpath) { in PRS()
1019 strcat(newpath, oldpath); in PRS()
/external/valgrind/memcheck/tests/darwin/
Dscalar.stderr.exp96 Syscall param link(oldpath) contains uninitialised byte(s)
102 Syscall param link(oldpath) points to unaddressable byte(s)
/external/valgrind/memcheck/tests/x86-linux/
Dscalar.stderr.exp123 Syscall param link(oldpath) contains uninitialised byte(s)
131 Syscall param link(oldpath) points to unaddressable byte(s)
425 Syscall param rename(oldpath) contains uninitialised byte(s)
433 Syscall param rename(oldpath) points to unaddressable byte(s)
919 Syscall param symlink(oldpath) contains uninitialised byte(s)
927 Syscall param symlink(oldpath) points to unaddressable byte(s)
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-generic.c3637 PRE_REG_READ2(long, "link", const char *, oldpath, const char *, newpath); in PRE()
4050 PRE_REG_READ2(long, "rename", const char *, oldpath, const char *, newpath); in PRE()
4227 PRE_REG_READ2(long, "symlink", const char *, oldpath, const char *, newpath); in PRE()
Dsyswrap-linux.c4616 int, olddfd, const char *, oldpath, in PRE()
4627 int, olddfd, const char *, oldpath, in PRE()
4639 const char *, oldpath, int, newdfd, const char *, newpath); in PRE()
/external/selinux/policycoreutils/sepolicy/sepolicy/
Dgui.py2004 oldpath = self.unmark(self.liststore.get_value(iter, 0))