summaryrefslogtreecommitdiff
path: root/sftp-glob.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2012-05-17 13:04:02 +0100
committerColin Watson <cjwatson@debian.org>2012-05-17 13:04:02 +0100
commitdd5ed53e20d218607260916a6b04d1c8c5b3d88f (patch)
treec59b4dbcc610f10700945f885adf3bddc2542c26 /sftp-glob.c
parent8241a65bf12ac53c1b7304bba7ce739aad80b8b8 (diff)
parentb9bc38990c5eb5d99e28ca5af6d3491fd4a0060a (diff)
merge 6.0p1
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 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);