diff options
author | des <des@FreeBSD.org> | 2013-08-13 09:04:20 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2013-08-13 09:04:20 +0000 |
commit | f054e5cb18d6e2020eb4fe568cc383ac22fa23c4 (patch) | |
tree | 3c17d973b79ede2fcd6a29754f2bb670bcc08f7e | |
parent | ce4282e0e95a9999373950b65afef4767f102c0a (diff) | |
download | FreeBSD-src-f054e5cb18d6e2020eb4fe568cc383ac22fa23c4.zip FreeBSD-src-f054e5cb18d6e2020eb4fe568cc383ac22fa23c4.tar.gz |
Apply upstream revision 1.151 (fix relative symlinks)
-rw-r--r-- | sftp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1327,7 +1327,8 @@ parse_dispatch_command(struct sftp_conn *conn, const char *cmd, char **pwd, case I_SYMLINK: sflag = 1; case I_LINK: - path1 = make_absolute(path1, *pwd); + if (!sflag) + path1 = make_absolute(path1, *pwd); path2 = make_absolute(path2, *pwd); err = (sflag ? do_symlink : do_hardlink)(conn, path1, path2); break; |