Skip to content
  • Iustin Pop's avatar
    Fix another breakage in SetEtcHostsEntry · 7e3dbb94
    Iustin Pop authored
    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
    7e3dbb94