« Previous | Next » 

Revision 7e3dbb94

Parent 2e3e75b7
Child 7803d4d3

Added by Iustin Pop over 16 years ago

Fix another breakage in SetEtcHostsEntry

The code assumes all lines have at least two elements which are
whitespace separated - i.e. it does not deal with empty lines or comment
lines with no spaces. This patch fixes this.

Also, the patch replaces the blank between IP and the canonical name
with a tab (restoring previous behaviour).

Reviewed-by: imsnah


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences