diff options
author | djm@openbsd.org <djm@openbsd.org> | 2014-08-19 23:57:18 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-10-13 11:35:49 +1100 |
commit | 7ff880ede5195d0b17e7f1e3b6cfbc4cb6f85240 (patch) | |
tree | c979c449caa267a1be5602d58d505ab71880c9ff /sftp.c | |
parent | 4460a7ad0c78d4cd67c467f6e9f4254d0404ed59 (diff) |
upstream commit
~-expand lcd paths
Diffstat (limited to 'sftp.c')
-rw-r--r-- | sftp.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sftp.c,v 1.164 2014/07/09 01:45:10 djm Exp $ */ | 1 | /* $OpenBSD: sftp.c,v 1.165 2014/08/19 23:57:18 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 | * |
@@ -1519,6 +1519,9 @@ parse_dispatch_command(struct sftp_conn *conn, const char *cmd, char **pwd, | |||
1519 | err = do_df(conn, path1, hflag, iflag); | 1519 | err = do_df(conn, path1, hflag, iflag); |
1520 | break; | 1520 | break; |
1521 | case I_LCHDIR: | 1521 | case I_LCHDIR: |
1522 | tmp = tilde_expand_filename(path1, getuid()) | ||
1523 | free(path1); | ||
1524 | path1 = tmp; | ||
1522 | if (chdir(path1) == -1) { | 1525 | if (chdir(path1) == -1) { |
1523 | error("Couldn't change local directory to " | 1526 | error("Couldn't change local directory to " |
1524 | "\"%s\": %s", path1, strerror(errno)); | 1527 | "\"%s\": %s", path1, strerror(errno)); |