-
-
usr/src/cmd/hostname/hostname.c (Diff revision 1) Don't forget to update the usage message to describe -s.
-
-
-
usr/src/cmd/hostname/hostname.c (Diff revision 1) What happens if c_hostname does not contain any periods? Won't strcspn return 0 and therefore we end up printing an empty string? Should this print the whole string if there is no "domain" info?