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
Loading
Please register or sign in to comment