[sftp-client.c]
     fallback to stat if server does not support lstat
This commit is contained in:
Ben Lindstrom 2002-04-02 21:00:31 +00:00
parent a1d8114044
commit f26ff5b9d8
2 changed files with 7 additions and 4 deletions

View File

@ -26,6 +26,9 @@
- markus@cvs.openbsd.org 2002/04/01 22:02:16
[sftp-client.c]
20480 is an upper limit for older server
- markus@cvs.openbsd.org 2002/04/01 22:07:17
[sftp-client.c]
fallback to stat if server does not support lstat
20020401
- (stevesk) [monitor.c] PAM should work again; will *not* work with
@ -8133,4 +8136,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
$Id: ChangeLog,v 1.2015 2002/04/02 20:58:11 mouring Exp $
$Id: ChangeLog,v 1.2016 2002/04/02 21:00:31 mouring Exp $

View File

@ -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++;