diff options
author | 2003-01-16 03:41:55 +0000 | |
---|---|---|
committer | 2003-01-16 03:41:55 +0000 | |
commit | 4f2ed5064f0946823bf3a0029245add70ad204f0 (patch) | |
tree | 7eada97357047cc1f595fd521fc0a7205b171d81 | |
parent | Don't hardcode IO mapping for cmd/ctl regs, use pci_mapreg_type() (diff) | |
download | wireguard-openbsd-4f2ed5064f0946823bf3a0029245add70ad204f0.tar.xz wireguard-openbsd-4f2ed5064f0946823bf3a0029245add70ad204f0.zip |
explicitly use first glob result
-rw-r--r-- | usr.bin/ssh/sftp-int.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sftp-int.c b/usr.bin/ssh/sftp-int.c index d75420e6290..fd0c8d8eed4 100644 --- a/usr.bin/ssh/sftp-int.c +++ b/usr.bin/ssh/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 <glob.h> @@ -507,7 +507,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; |