Comment 45 for bug 1752411

Revision history for this message
Trent Lloyd (lathiat) wrote :

> When host call fails (even with timeout), it returns "1" claiming "dns_has_local()=true".

0 = true, 1 = false (you implied the opposite)

What may add confusion here is the grep -vq check is like an extra check to make sure host didn't return 0 (success = we found .local) but then say 'not found' anyway. So it returns 0 (true) when host returns 0. It returns 1 when host returns anything else (including timeout); 1 = false which means leave avahi enabled.