summaryrefslogtreecommitdiff
path: root/sftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftp.c')
-rw-r--r--sftp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sftp.c b/sftp.c
index 4e1a026f7..6f16f7cc6 100644
--- a/sftp.c
+++ b/sftp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp.c,v 1.150 2013/08/07 06:24:51 jmc Exp $ */ 1/* $OpenBSD: sftp.c,v 1.151 2013/08/08 04:52:04 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> 3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
4 * 4 *
@@ -1358,7 +1358,8 @@ parse_dispatch_command(struct sftp_conn *conn, const char *cmd, char **pwd,
1358 case I_SYMLINK: 1358 case I_SYMLINK:
1359 sflag = 1; 1359 sflag = 1;
1360 case I_LINK: 1360 case I_LINK:
1361 path1 = make_absolute(path1, *pwd); 1361 if (!sflag)
1362 path1 = make_absolute(path1, *pwd);
1362 path2 = make_absolute(path2, *pwd); 1363 path2 = make_absolute(path2, *pwd);
1363 err = (sflag ? do_symlink : do_hardlink)(conn, path1, path2); 1364 err = (sflag ? do_symlink : do_hardlink)(conn, path1, path2);
1364 break; 1365 break;