mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Apply upstream revision 1.151 (fix relative symlinks)
This commit is contained in:
parent
c3605b8bd9
commit
caafb97d9e
1 changed files with 2 additions and 1 deletions
3
sftp.c
3
sftp.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue