# HG changeset patch # User masneyb # Date 1037981067 0 # Node ID 1af41fb085095c07f7cab41deaa4e40e435cd22e # Parent 42df9e4be8e0d432a6ca008d794ed1c4d6d66087 2002-11-21 Brian Masney * lib/local.c (local_put_file) - small fix diff -r 42df9e4be8e0 -r 1af41fb08509 ChangeLog --- 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 + * lib/local.c (local_put_file) - small fix + 2002-11-21 Brian Masney * 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 diff -r 42df9e4be8e0 -r 1af41fb08509 lib/local.c --- 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)