diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | sftp-glob.c | 6 |
2 files changed, 10 insertions, 4 deletions
@@ -1,4 +1,10 @@ | |||
1 | 2011101 | 1 | 20111018 |
2 | - (djm) OpenBSD CVS Sync | ||
3 | - djm@cvs.openbsd.org 2011/10/04 14:17:32 | ||
4 | [sftp-glob.c] | ||
5 | silence error spam for "ls */foo" in directory with files; bz#1683 | ||
6 | |||
7 | 20111001 | ||
2 | - (dtucker) [openbsd-compat/mktemp.c] Fix compiler warning. ok djm | 8 | - (dtucker) [openbsd-compat/mktemp.c] Fix compiler warning. ok djm |
3 | - (dtucker) OpenBSD CVS Sync | 9 | - (dtucker) OpenBSD CVS Sync |
4 | - dtucker@cvs.openbsd.org 2011/09/23 00:22:04 | 10 | - dtucker@cvs.openbsd.org 2011/09/23 00:22:04 |
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); |