« Previous | Next » 

Revision 7e3dbb94

ID7e3dbb94450bc3f5ace499f4f74a22fb5ae93890
Parent 2e3e75b7
Child 7803d4d3

Added by Iustin Pop almost 15 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

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences