diff options
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); |