diff options
author | Damien Miller <djm@mindrot.org> | 2011-10-18 16:04:57 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2011-10-18 16:04:57 +1100 |
commit | d3e6990c4ca1e6c8ad9e66f5e57a2b4545dbc940 (patch) | |
tree | 0bc665c1e2bfdd85224880925359efeda6bacc31 /sftp-glob.c | |
parent | 2e13560ff59c6a2879fdb5e61915238cf5921988 (diff) |
- 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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sftp-glob.c b/sftp-glob.c index cdc270827..06bf157ca 100644 --- a/sftp-glob.c +++ b/sftp-glob.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sftp-glob.c,v 1.22 2006/08/03 03:34:42 deraadt Exp $ */ | 1 | /* $OpenBSD: sftp-glob.c,v 1.23 2011/10/04 14:17:32 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 | * |
@@ -111,7 +111,7 @@ fudge_lstat(const char *path, struct stat *st) | |||
111 | { | 111 | { |
112 | Attrib *a; | 112 | Attrib *a; |
113 | 113 | ||
114 | if (!(a = do_lstat(cur.conn, (char *)path, 0))) | 114 | if (!(a = do_lstat(cur.conn, (char *)path, 1))) |
115 | return(-1); | 115 | return(-1); |
116 | 116 | ||
117 | attrib_to_stat(a, st); | 117 | attrib_to_stat(a, st); |
@@ -124,7 +124,7 @@ fudge_stat(const char *path, struct stat *st) | |||
124 | { | 124 | { |
125 | Attrib *a; | 125 | Attrib *a; |
126 | 126 | ||
127 | if (!(a = do_stat(cur.conn, (char *)path, 0))) | 127 | if (!(a = do_stat(cur.conn, (char *)path, 1))) |
128 | return(-1); | 128 | return(-1); |
129 | 129 | ||
130 | attrib_to_stat(a, st); | 130 | attrib_to_stat(a, st); |