summaryrefslogtreecommitdiff
path: root/sftp-client.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-04-02 21:00:31 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-04-02 21:00:31 +0000
commitf26ff5b9d86e77596ee1c049c58b0aac394876f3 (patch)
tree2f79b848469693ff8a1b8bf91f7e9fcefefd2645 /sftp-client.c
parenta1d8114044835b1cab463bbcd5752efdedb26675 (diff)
- markus@cvs.openbsd.org 2002/04/01 22:07:17
[sftp-client.c] fallback to stat if server does not support lstat
Diffstat (limited to 'sftp-client.c')
-rw-r--r--sftp-client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sftp-client.c b/sftp-client.c
index 98ed2ba0..254ef6f7 100644
--- a/sftp-client.c
+++ b/sftp-client.c
@@ -28,7 +28,7 @@
/* XXX: copy between two remote sites */
#include "includes.h"
-RCSID("$OpenBSD: sftp-client.c,v 1.29 2002/04/01 22:02:16 markus Exp $");
+RCSID("$OpenBSD: sftp-client.c,v 1.30 2002/04/01 22:07:17 markus Exp $");
#if defined(HAVE_SYS_QUEUE_H) && !defined(HAVE_BOGUS_SYS_QUEUE_H)
#include <sys/queue.h>
@@ -512,8 +512,8 @@ do_lstat(struct sftp_conn *conn, char *path, int quiet)
if (quiet)
debug("Server version does not support lstat operation");
else
- error("Server version does not support lstat operation");
- return(NULL);
+ log("Server version does not support lstat operation");
+ return(do_stat(conn, path, quiet));
}
id = conn->msg_id++;