I decided to look into the source code: http://package-
import.ubuntu.com/h/hostname/intrepid/annotate/head%3A/hostname.c

169                             if (!check_name(name))
170                                     warnx("the specified hostname is 
invalid"); 
171             
172                             if (sethostname(name, strlen(name))) { 

I'm not really a c expert but this looks like to me that it checks if
the hostname is correct but after the error message it just continues to
set the hostname no matter what.

-- 
/bin/hostname complains about but still sets invalid hostname
https://bugs.launchpad.net/bugs/52335
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to