diff options
Diffstat (limited to 'sftp.c')
-rw-r--r-- | sftp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sftp.c,v 1.136 2012/06/22 14:36:33 dtucker Exp $ */ | 1 | /* $OpenBSD: sftp.c,v 1.137 2012/09/17 09:54:44 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 | * |
@@ -1917,6 +1917,7 @@ interactive_loop(struct sftp_conn *conn, char *file1, char *file2) | |||
1917 | return (-1); | 1917 | return (-1); |
1918 | } | 1918 | } |
1919 | } else { | 1919 | } else { |
1920 | /* XXX this is wrong wrt quoting */ | ||
1920 | if (file2 == NULL) | 1921 | if (file2 == NULL) |
1921 | snprintf(cmd, sizeof cmd, "get %s", dir); | 1922 | snprintf(cmd, sizeof cmd, "get %s", dir); |
1922 | else | 1923 | else |