summaryrefslogtreecommitdiffstats
path: root/sftp-client.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-02-10 22:53:40 +0100
committerBen Lindstrom <mouring@eviladmin.org>2001-02-10 22:53:40 +0100
commit10ac33f2546b4de58f7ce73d3e5a8be395f25643 (patch)
treef84f5817160f06618fa6fcbc464317c56e03c733 /sftp-client.c
parent - danh@cvs.openbsd.org 2001/02/10 0:12:43 (diff)
downloadopenssh-10ac33f2546b4de58f7ce73d3e5a8be395f25643.tar.xz
openssh-10ac33f2546b4de58f7ce73d3e5a8be395f25643.zip
- (bal) Minor correction to sftp-client.c I made. Should return 'status'
instead of '0' (from the OpenBSD tree)
Diffstat (limited to 'sftp-client.c')
-rw-r--r--sftp-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sftp-client.c b/sftp-client.c
index b4ee847da..8338dbc9f 100644
--- a/sftp-client.c
+++ b/sftp-client.c
@@ -29,7 +29,7 @@
/* XXX: copy between two remote sites */
#include "includes.h"
-RCSID("$OpenBSD: sftp-client.c,v 1.8 2001/02/08 17:11:23 stevesk Exp $");
+RCSID("$OpenBSD: sftp-client.c,v 1.9 2001/02/10 00:41:46 djm Exp $");
#include "ssh.h"
#include "buffer.h"
@@ -331,7 +331,7 @@ do_ls(int fd_in, int fd_out, char *path)
error("Couldn't read directory: %s",
fx2txt(status));
do_close(fd_in, fd_out, handle, handle_len);
- return(0);
+ return(status);
}
} else if (type != SSH2_FXP_NAME)
fatal("Expected SSH2_FXP_NAME(%d) packet, got %d",