Commit caafb97d authored by Dag-Erling Smørgrav's avatar Dag-Erling Smørgrav
Browse files

Apply upstream revision 1.151 (fix relative symlinks)

parent c3605b8b
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment