summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-02-10 00:37:17 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-02-10 00:37:17 +0000
commitc5dbf7fdc94708670b941c84815b78f61e2cb329 (patch)
tree46ebb0ab8df390eb89a87a7280705f30ef13a94e
parent137465b67ce6d5e6a3e99b8b97aed25296a27d96 (diff)
- (bal) sftp-client.c replace NULL w/ 0 in do_ls() (pending in OpenBSD tree)
-rw-r--r--ChangeLog3
-rw-r--r--sftp-client.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c950d0187..4aa2ddfa9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -73,6 +73,7 @@
73 [sftp-int.c] 73 [sftp-int.c]
74 cleanup get_pathname, fix pwd after failed cd. okay djm@ 74 cleanup get_pathname, fix pwd after failed cd. okay djm@
75 - (djm) Update makefile.in for _PATH_SFTP_SERVER 75 - (djm) Update makefile.in for _PATH_SFTP_SERVER
76 - (bal) sftp-client.c replace NULL w/ 0 in do_ls() (pending in OpenBSD tree)
76 77
7720010209 7820010209
78 - (bal) patch to vis.c to deal with HAVE_VIS right by Robert Mooney 79 - (bal) patch to vis.c to deal with HAVE_VIS right by Robert Mooney
@@ -3779,4 +3780,4 @@
3779 - Wrote replacements for strlcpy and mkdtemp 3780 - Wrote replacements for strlcpy and mkdtemp
3780 - Released 1.0pre1 3781 - Released 1.0pre1
3781 3782
3782$Id: ChangeLog,v 1.711 2001/02/09 13:47:59 djm Exp $ 3783$Id: ChangeLog,v 1.712 2001/02/10 00:37:17 mouring Exp $
diff --git a/sftp-client.c b/sftp-client.c
index 490c00bdd..b4ee847da 100644
--- a/sftp-client.c
+++ b/sftp-client.c
@@ -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(NULL); 334 return(0);
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",