summaryrefslogtreecommitdiff
path: root/sftp-int.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-01-16 15:39:13 +1100
committerDamien Miller <djm@mindrot.org>2003-01-16 15:39:13 +1100
commitcb3e3c8b24b5c62a56241719df3702b5d598d5f4 (patch)
tree7869f49faa994ace4221d2bda51b587ebec99190 /sftp-int.c
parent5fa01fd7fba87bbd716b4ca32d4d7e2f7180975a (diff)
20030116
- (djm) OpenBSD CVS Sync - djm@cvs.openbsd.org 2003/01/16 03:41:55 [sftp-int.c] explicitly use first glob result
Diffstat (limited to 'sftp-int.c')
-rw-r--r--sftp-int.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sftp-int.c b/sftp-int.c
index 42040f5b..013ea84e 100644
--- a/sftp-int.c
+++ b/sftp-int.c
@@ -25,7 +25,7 @@
/* XXX: recursive operations */
#include "includes.h"
-RCSID("$OpenBSD: sftp-int.c,v 1.55 2003/01/14 10:58:00 djm Exp $");
+RCSID("$OpenBSD: sftp-int.c,v 1.56 2003/01/16 03:41:55 djm Exp $");
#include "buffer.h"
#include "xmalloc.h"
@@ -505,7 +505,7 @@ process_put(struct sftp_conn *conn, char *src, char *dst, char *pwd, int pflag)
/* Only one match, dst may be file, directory or unspecified */
if (g.gl_pathv[0] && g.gl_matchc == 1) {
- if (!is_reg(g.gl_pathv[i])) {
+ if (!is_reg(g.gl_pathv[0])) {
error("Can't upload %s: not a regular file",
g.gl_pathv[0]);
err = 1;