summaryrefslogtreecommitdiff
path: root/sftp-glob.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2011-10-18 16:04:57 +1100
committerDamien Miller <djm@mindrot.org>2011-10-18 16:04:57 +1100
commitd3e6990c4ca1e6c8ad9e66f5e57a2b4545dbc940 (patch)
tree0bc665c1e2bfdd85224880925359efeda6bacc31 /sftp-glob.c
parent2e13560ff59c6a2879fdb5e61915238cf5921988 (diff)
downloadopenssh-git-d3e6990c4ca1e6c8ad9e66f5e57a2b4545dbc940.tar.gz
- djm@cvs.openbsd.org 2011/10/04 14:17:32
[sftp-glob.c] silence error spam for "ls */foo" in directory with files; bz#1683
Diffstat (limited to 'sftp-glob.c')
-rw-r--r--sftp-glob.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sftp-glob.c b/sftp-glob.c
index cdc27082..06bf157c 100644
--- a/sftp-glob.c
+++ b/sftp-glob.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-glob.c,v 1.22 2006/08/03 03:34:42 deraadt Exp $ */
+/* $OpenBSD: sftp-glob.c,v 1.23 2011/10/04 14:17:32 djm Exp $ */
/*
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
*
@@ -111,7 +111,7 @@ fudge_lstat(const char *path, struct stat *st)
{
Attrib *a;
- if (!(a = do_lstat(cur.conn, (char *)path, 0)))
+ if (!(a = do_lstat(cur.conn, (char *)path, 1)))
return(-1);
attrib_to_stat(a, st);
@@ -124,7 +124,7 @@ fudge_stat(const char *path, struct stat *st)
{
Attrib *a;
- if (!(a = do_stat(cur.conn, (char *)path, 0)))
+ if (!(a = do_stat(cur.conn, (char *)path, 1)))
return(-1);
attrib_to_stat(a, st);