changeset 62:1af41fb08509

2002-11-21 Brian Masney <masneyb@gftp.org> * lib/local.c (local_put_file) - small fix
author masneyb
date Fri, 22 Nov 2002 16:04:27 +0000
parents 42df9e4be8e0
children 41b71c4e5076
files ChangeLog lib/local.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Nov 22 15:47:07 2002 +0000
+++ b/ChangeLog	Fri Nov 22 16:04:27 2002 +0000
@@ -1,3 +1,6 @@
+2002-11-21 Brian Masney <masneyb@gftp.org>
+	* lib/local.c (local_put_file) - small fix
+
 2002-11-21 Brian Masney <masneyb@gftp.org>
 	* lib/misc.c lib/ssh.c lib/sshv2.c - improvements to the login
 	sequence for SSH connections
@@ -270,7 +273,7 @@
 
 	* cvsclean - added this script
 
-	* *.[ch] - added $Id: ChangeLog,v 1.36 2002/11/22 15:47:06 masneyb Exp $ tags
+	* *.[ch] - added $Id: ChangeLog,v 1.37 2002/11/22 16:04:27 masneyb Exp $ tags
 
 	* debian/* - updated files from Debian maintainer
 
--- a/lib/local.c	Fri Nov 22 15:47:07 2002 +0000
+++ b/lib/local.c	Fri Nov 22 16:04:27 2002 +0000
@@ -164,7 +164,7 @@
   g_return_val_if_fail (request->protonum == GFTP_LOCAL_NUM, -2);
   g_return_val_if_fail (filename != NULL, -2);
 
-  if (fd > 0)
+  if (fd < 0)
     {
       flags = O_WRONLY | O_CREAT;
       if (startsize > 0)