comparison lib/config_file.c @ 885:1808cebed602

2007-3-12 Brian Masney <masneyb@gftp.org> * lib/* src/* - updated copyright dates
author masneyb
date Tue, 13 Mar 2007 01:52:50 +0000
parents 2c94567f9a53
children 85cf59eafce2
comparison
equal deleted inserted replaced
884:e999754d6106 885:1808cebed602
1 /*****************************************************************************/ 1 /*****************************************************************************/
2 /* config_file.c - config file routines */ 2 /* config_file.c - config file routines */
3 /* Copyright (C) 1998-2003 Brian Masney <masneyb@gftp.org> */ 3 /* Copyright (C) 1998-2007 Brian Masney <masneyb@gftp.org> */
4 /* */ 4 /* */
5 /* This program is free software; you can redistribute it and/or modify */ 5 /* This program is free software; you can redistribute it and/or modify */
6 /* it under the terms of the GNU General Public License as published by */ 6 /* it under the terms of the GNU General Public License as published by */
7 /* the Free Software Foundation; either version 2 of the License, or */ 7 /* the Free Software Foundation; either version 2 of the License, or */
8 /* (at your option) any later version. */ 8 /* (at your option) any later version. */
728 char *bmhdr, *pwhdr, *tempstr, *password, buf[256]; 728 char *bmhdr, *pwhdr, *tempstr, *password, buf[256];
729 gftp_bookmarks_var * tempentry; 729 gftp_bookmarks_var * tempentry;
730 FILE * bmfile; 730 FILE * bmfile;
731 int i; 731 int i;
732 732
733 bmhdr = N_("Bookmarks file for gFTP. Copyright (C) 1998-2003 Brian Masney <masneyb@gftp.org>. Warning: Any comments that you add to this file WILL be overwritten"); 733 bmhdr = N_("Bookmarks file for gFTP. Copyright (C) 1998-2007 Brian Masney <masneyb@gftp.org>. Warning: Any comments that you add to this file WILL be overwritten");
734 pwhdr = N_("Note: The passwords contained inside this file are scrambled. This algorithm is not secure. This is to avoid your password being easily remembered by someone standing over your shoulder while you're editing this file. Prior to this, all passwords were stored in plaintext."); 734 pwhdr = N_("Note: The passwords contained inside this file are scrambled. This algorithm is not secure. This is to avoid your password being easily remembered by someone standing over your shoulder while you're editing this file. Prior to this, all passwords were stored in plaintext.");
735 735
736 if ((tempstr = gftp_expand_path (NULL, BOOKMARKS_FILE)) == NULL) 736 if ((tempstr = gftp_expand_path (NULL, BOOKMARKS_FILE)) == NULL)
737 { 737 {
738 printf (_("gFTP Error: Bad bookmarks file name %s\n"), CONFIG_FILE); 738 printf (_("gFTP Error: Bad bookmarks file name %s\n"), CONFIG_FILE);
841 exit (EXIT_FAILURE); 841 exit (EXIT_FAILURE);
842 } 842 }
843 843
844 g_free (tempstr); 844 g_free (tempstr);
845 845
846 write_comment (conffile, _("Config file for gFTP. Copyright (C) 1998-2003 Brian Masney <masneyb@gftp.org>. Warning: Any comments that you add to this file WILL be overwritten. If a entry has a (*) in it's comment, you can't change it inside gFTP")); 846 write_comment (conffile, _("Config file for gFTP. Copyright (C) 1998-2007 Brian Masney <masneyb@gftp.org>. Warning: Any comments that you add to this file WILL be overwritten. If a entry has a (*) in it's comment, you can't change it inside gFTP"));
847 847
848 for (templist = gftp_options_list; 848 for (templist = gftp_options_list;
849 templist != NULL; 849 templist != NULL;
850 templist = templist->next) 850 templist = templist->next)
851 { 851 {