[openssh-commits] [openssh] 01/13: upstream commit
git+noreply at mindrot.org
git+noreply at mindrot.org
Mon Oct 13 11:42:07 EST 2014
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 7ff880ede5195d0b17e7f1e3b6cfbc4cb6f85240
Author: djm at openbsd.org <djm at openbsd.org>
Date: Tue Aug 19 23:57:18 2014 +0000
upstream commit
~-expand lcd paths
---
sftp.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sftp.c b/sftp.c
index ff4d63d..0fc622f 100644
--- a/sftp.c
+++ b/sftp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp.c,v 1.164 2014/07/09 01:45:10 djm Exp $ */
+/* $OpenBSD: sftp.c,v 1.165 2014/08/19 23:57:18 djm Exp $ */
/*
* Copyright (c) 2001-2004 Damien Miller <djm at openbsd.org>
*
@@ -1519,6 +1519,9 @@ parse_dispatch_command(struct sftp_conn *conn, const char *cmd, char **pwd,
err = do_df(conn, path1, hflag, iflag);
break;
case I_LCHDIR:
+ tmp = tilde_expand_filename(path1, getuid())
+ free(path1);
+ path1 = tmp;
if (chdir(path1) == -1) {
error("Couldn't change local directory to "
"\"%s\": %s", path1, strerror(errno));
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list