summaryrefslogtreecommitdiff
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
parenta1d8114044835b1cab463bbcd5752efdedb26675 (diff)
- markus@cvs.openbsd.org 2002/04/01 22:07:17
[sftp-client.c] fallback to stat if server does not support lstat
-rw-r--r--ChangeLog5
-rw-r--r--sftp-client.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 1159bc563..d14f04ae9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -26,6 +26,9 @@
26 - markus@cvs.openbsd.org 2002/04/01 22:02:16 26 - markus@cvs.openbsd.org 2002/04/01 22:02:16
27 [sftp-client.c] 27 [sftp-client.c]
28 20480 is an upper limit for older server 28 20480 is an upper limit for older server
29 - markus@cvs.openbsd.org 2002/04/01 22:07:17
30 [sftp-client.c]
31 fallback to stat if server does not support lstat
29 32
3020020401 3320020401
31 - (stevesk) [monitor.c] PAM should work again; will *not* work with 34 - (stevesk) [monitor.c] PAM should work again; will *not* work with
@@ -8133,4 +8136,4 @@
8133 - Wrote replacements for strlcpy and mkdtemp 8136 - Wrote replacements for strlcpy and mkdtemp
8134 - Released 1.0pre1 8137 - Released 1.0pre1
8135 8138
8136$Id: ChangeLog,v 1.2015 2002/04/02 20:58:11 mouring Exp $ 8139$Id: ChangeLog,v 1.2016 2002/04/02 21:00:31 mouring Exp $
diff --git a/sftp-client.c b/sftp-client.c
index 98ed2ba00..254ef6f70 100644
--- a/sftp-client.c
+++ b/sftp-client.c
@@ -28,7 +28,7 @@
28/* XXX: copy between two remote sites */ 28/* XXX: copy between two remote sites */
29 29
30#include "includes.h" 30#include "includes.h"
31RCSID("$OpenBSD: sftp-client.c,v 1.29 2002/04/01 22:02:16 markus Exp $"); 31RCSID("$OpenBSD: sftp-client.c,v 1.30 2002/04/01 22:07:17 markus Exp $");
32 32
33#if defined(HAVE_SYS_QUEUE_H) && !defined(HAVE_BOGUS_SYS_QUEUE_H) 33#if defined(HAVE_SYS_QUEUE_H) && !defined(HAVE_BOGUS_SYS_QUEUE_H)
34#include <sys/queue.h> 34#include <sys/queue.h>
@@ -512,8 +512,8 @@ do_lstat(struct sftp_conn *conn, char *path, int quiet)
512 if (quiet) 512 if (quiet)
513 debug("Server version does not support lstat operation"); 513 debug("Server version does not support lstat operation");
514 else 514 else
515 error("Server version does not support lstat operation"); 515 log("Server version does not support lstat operation");
516 return(NULL); 516 return(do_stat(conn, path, quiet));
517 } 517 }
518 518
519 id = conn->msg_id++; 519 id = conn->msg_id++;