summaryrefslogtreecommitdiff
path: root/sftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftp.c')
-rw-r--r--sftp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sftp.c b/sftp.c
index d65d4ec62..229f12987 100644
--- a/sftp.c
+++ b/sftp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp.c,v 1.123 2010/01/27 19:21:39 djm Exp $ */ 1/* $OpenBSD: sftp.c,v 1.125 2010/06/18 00:58:39 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 *
@@ -181,6 +181,8 @@ static const struct CMD cmds[] = {
181 { "ls", I_LS, REMOTE }, 181 { "ls", I_LS, REMOTE },
182 { "lumask", I_LUMASK, NOARGS }, 182 { "lumask", I_LUMASK, NOARGS },
183 { "mkdir", I_MKDIR, REMOTE }, 183 { "mkdir", I_MKDIR, REMOTE },
184 { "mget", I_GET, REMOTE },
185 { "mput", I_PUT, LOCAL },
184 { "progress", I_PROGRESS, NOARGS }, 186 { "progress", I_PROGRESS, NOARGS },
185 { "put", I_PUT, LOCAL }, 187 { "put", I_PUT, LOCAL },
186 { "pwd", I_PWD, REMOTE }, 188 { "pwd", I_PWD, REMOTE },
@@ -1366,7 +1368,7 @@ parse_dispatch_command(struct sftp_conn *conn, const char *cmd, char **pwd,
1366 break; 1368 break;
1367 case I_LS: 1369 case I_LS:
1368 if (!path1) { 1370 if (!path1) {
1369 do_globbed_ls(conn, *pwd, *pwd, lflag); 1371 do_ls_dir(conn, *pwd, *pwd, lflag);
1370 break; 1372 break;
1371 } 1373 }
1372 1374