# HG changeset patch # User masneyb # Date 1163731834 0 # Node ID 2c94567f9a5364519aa9293888b11d08188cced0 # Parent e30271d473536a6981d807084e75814b60c1085e 2006-11-16 Brian Masney * lib/config_file.c (write_comment) - added patch that fixes writing the comments to the config file. In some cases, an extra # was placed at the beginning of a line. It could cause some settings to be not processed. (closes #339029) (from Morita Sho ) diff -r e30271d47353 -r 2c94567f9a53 ChangeLog --- a/ChangeLog Fri Nov 17 02:45:06 2006 +0000 +++ b/ChangeLog Fri Nov 17 02:50:34 2006 +0000 @@ -1,4 +1,10 @@ 2006-11-16 Brian Masney + * lib/config_file.c (write_comment) - added patch that fixes writing + the comments to the config file. In some cases, an extra # was placed + at the beginning of a line. It could cause some settings to be not + processed. (closes #339029) + (from Morita Sho ) + * docs/gftp-faq.sgml - added FAQ entry on how to transfer HTML files in binary mode using the FTP protocol. @@ -3729,7 +3735,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.502 2006/11/17 02:45:03 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.503 2006/11/17 02:50:32 masneyb Exp $ tags * debian/* - updated files from Debian maintainer diff -r e30271d47353 -r 2c94567f9a53 lib/config_file.c --- a/lib/config_file.c Fri Nov 17 02:45:06 2006 +0000 +++ b/lib/config_file.c Fri Nov 17 02:50:34 2006 +0000 @@ -705,14 +705,14 @@ endpos++); } fwrite (pos, 1, endpos - pos, fd); - fwrite ("\n# ", 1, 3, fd); + fwrite ("\n", 1, 1, fd); if (*endpos == '\0') { pos = endpos; break; } - else - pos = endpos + 1; + pos = endpos + 1; + fwrite ("# ", 1, 2, fd); } if (strlen (pos) > 1) {