diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2011-10-04 14:17:33 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2011-10-04 14:17:33 +0000 |
commit | 4fa8eaecc33aefcfe6494f023582aa3bc23c0cf0 (patch) | |
tree | 433afffca01ddc2691ce6706a2cf0b4d25bca248 /usr.bin | |
parent | 2cec946c0ba6f35dcb74e2da92353821e8b12132 (diff) |
silence error spam for "ls */foo" in directory with files; bz#1683
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/sftp-glob.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/sftp-glob.c b/usr.bin/ssh/sftp-glob.c index 7f3964997f3..552bf9131c7 100644 --- a/usr.bin/ssh/sftp-glob.c +++ b/usr.bin/ssh/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> * @@ -84,7 +84,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); @@ -97,7 +97,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); |