summaryrefslogtreecommitdiff
path: root/sftp-client.c
diff options
context:
space:
mode:
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 @@
29/* XXX: copy between two remote sites */ 29/* XXX: copy between two remote sites */
30 30
31#include "includes.h" 31#include "includes.h"
32RCSID("$OpenBSD: sftp-client.c,v 1.8 2001/02/08 17:11:23 stevesk Exp $"); 32RCSID("$OpenBSD: sftp-client.c,v 1.9 2001/02/10 00:41:46 djm Exp $");
33 33
34#include "ssh.h" 34#include "ssh.h"
35#include "buffer.h" 35#include "buffer.h"
@@ -331,7 +331,7 @@ do_ls(int fd_in, int fd_out, char *path)
331 error("Couldn't read directory: %s", 331 error("Couldn't read directory: %s",
332 fx2txt(status)); 332 fx2txt(status));
333 do_close(fd_in, fd_out, handle, handle_len); 333 do_close(fd_in, fd_out, handle, handle_len);
334 return(0); 334 return(status);
335 } 335 }
336 } else if (type != SSH2_FXP_NAME) 336 } else if (type != SSH2_FXP_NAME)
337 fatal("Expected SSH2_FXP_NAME(%d) packet, got %d", 337 fatal("Expected SSH2_FXP_NAME(%d) packet, got %d",