DescriptionAllow Hostname to return FQDN when /bin/hostname does not
Hostname reads the file /proc/sys/kernel/hostname to determine
the value it returns. Some people set this to a Fully Qualified
Doamin Name. At least one implementation of /bin/hostname
truncates the name it gets (often from the "uname" system call)
at the first dot unless it is given a "-f" flag. This change makes
the unit test also truncate at the first dot and checks if the strings
then match. This seems more portable than adding an extra flag
to the called /bin/hostname program.
Patch Set 1 #Patch Set 2 : code review 181097: Allow Hostname to return FQDN when /bin/hostname does not #
Total comments: 1
Patch Set 3 : code review 181097: Allow Hostname to return FQDN when /bin/hostname does not #MessagesTotal messages: 11
|