misc.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1383 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -1037,8 +1037,11 @@ void nm_system_set_hostname (NMIP4Config *config)
|
||||
|
||||
if (!strcmp (buf, "yes")) {
|
||||
hostname = nm_ip4_config_get_hostname (config);
|
||||
if (hostname && sethostname (hostname, strlen (hostname)) < 0)
|
||||
if (hostname) {
|
||||
nm_info ("Setting hostname to %s\n", hostname);
|
||||
if (sethostname (hostname, strlen (hostname)) < 0)
|
||||
nm_warning ("Could not set hostname.");
|
||||
}
|
||||
}
|
||||
free (buf);
|
||||
|
||||
|
Reference in New Issue
Block a user