Bugs item #993930, was opened at 2004-07-19 12:46
Message generated for change (Comment added) made by naughtont
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109368&aid=993930&group_id=9368

Category: Installation
Group: 3.1
Status: Open
Resolution: None
Priority: 5
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: 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


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Oscar-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to