diff options
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)); |