diff options
| author | Brian Feldman <green@FreeBSD.org> | 2002-01-28 00:04:02 +0000 |
|---|---|---|
| committer | Brian Feldman <green@FreeBSD.org> | 2002-01-28 00:04:02 +0000 |
| commit | 3b1181fd065c72e9f425124507f667cce06e75a7 (patch) | |
| tree | 93aa0bc93faf0de4da31f16b0903e4d1dce39288 /crypto | |
| parent | ab31526fd729c7729f2ebd1d83abb90ff49966e2 (diff) | |
Notes
Diffstat (limited to 'crypto')
| -rw-r--r-- | crypto/openssh/sftp-int.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssh/sftp-int.c b/crypto/openssh/sftp-int.c index 3a71daac4cb2..a6b6cba8b575 100644 --- a/crypto/openssh/sftp-int.c +++ b/crypto/openssh/sftp-int.c @@ -436,7 +436,7 @@ process_put(int in, int out, char *src, char *dst, char *pwd, int pflag) memset(&g, 0, sizeof(g)); debug3("Looking up %s", src); - if (glob(src, 0, NULL, &g)) { + if (glob(src, 0, NULL, &g) != 0 || g.gl_matchc == 0) { error("File \"%s\" not found.", src); err = -1; goto out; |
