Bugs item #993930, was opened at 2004-07-19 12:46 Message generated for change (Comment added) made by muglerj You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=109368&aid=993930&group_id=9368
Category: Installation >Group: 4.2 Status: Open Resolution: None >Priority: 6 Submitted By: Thomas Naughton (naughtont) Assigned to: Nobody/Anonymous (nobody) Summary: edit of /etc/hosts not handle line comments Initial Comment: On a test today, I noticed that our edits to the '/etc/hosts' file for headnode aliases break when you have end of line comments. We cat onto the end of the line, and HOSTS(5) states that "Text from a '#' character until the end of the line is a comment, and is ignored." Example: [Before] 192.168.1.253 headnode.testcluster headnode # Headnode (private) [After] 192.168.1.253 headnode.testcluster headnode # Headnode (private) oscar_server nfs_oscar pbs_oscar ---------------------------------------------------------------------- >Comment By: John (muglerj) Date: 2005-02-22 14:49 Message: Logged In: YES user_id=505737 Assigning this to 4.2. Could we get someone to review how we set up the /etc/hosts file. We seem to have several issues that might be caught with some error checking in addtion to this specific problem. ---------------------------------------------------------------------- Comment By: Thomas Naughton (naughtont) Date: 2004-11-24 15:55 Message: Logged In: YES user_id=288102 Not going to make it into 4.0, move to 4.1. ---------------------------------------------------------------------- Comment By: Thomas Naughton (naughtont) Date: 2004-07-19 12:51 Message: Logged In: YES user_id=288102 Note, in the SIS hosts file, /var/lib/systemimager/scripts/hosts', the editing is different but still wrong. Example: [EMAIL PROTECTED] root]# grep 192.168.1.9 /etc/hosts 192.168.1.92 garfield-head.homenet garfield-head 192.168.1.98 lj.homenet lj # HP LJ 1200 printer 192.168.1.90 eeyore.homenet eeyore # Compaq Presario (700Mhz P3) 192.168.1.91 tigger.homenet tigger # KC Computer (1.3Ghz P4) [EMAIL PROTECTED] root]# grep 192.168.1.9 /var/lib/systemimager/scripts/hosts 192.168.1.92 (external) 192.168.1.98 printer 192.168.1.90 P3) 192.168.1.91 P4) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=109368&aid=993930&group_id=9368 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Oscar-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oscar-devel
