Apply upstream revision 1.151 (fix relative symlinks)
MFC after: 3 days
This commit is contained in:
commit
fb0edcbb74
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254278
@ -1328,7 +1328,8 @@ parse_dispatch_command(struct sftp_conn *conn, const char *cmd, char **pwd,
|
|||||||
case I_SYMLINK:
|
case I_SYMLINK:
|
||||||
sflag = 1;
|
sflag = 1;
|
||||||
case I_LINK:
|
case I_LINK:
|
||||||
path1 = make_absolute(path1, *pwd);
|
if (!sflag)
|
||||||
|
path1 = make_absolute(path1, *pwd);
|
||||||
path2 = make_absolute(path2, *pwd);
|
path2 = make_absolute(path2, *pwd);
|
||||||
err = (sflag ? do_symlink : do_hardlink)(conn, path1, path2);
|
err = (sflag ? do_symlink : do_hardlink)(conn, path1, path2);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user