Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 345617
Collapse All | Expand All

(-)a/src/nm-policy-hostname.c (-2 / +1 lines)
Lines 267-273 nm_policy_set_system_hostname (const char *new_hostname, Link Here
267
	                                       &changed)) {
267
	                                       &changed)) {
268
		/* error updating /etc/hosts; fallback to localhost.localdomain */
268
		/* error updating /etc/hosts; fallback to localhost.localdomain */
269
		nm_log_info (LOGD_DNS, "Setting system hostname to '" FALLBACK_HOSTNAME4 "' (error updating /etc/hosts)");
269
		nm_log_info (LOGD_DNS, "Setting system hostname to '" FALLBACK_HOSTNAME4 "' (error updating /etc/hosts)");
270
		ret = sethostname (FALLBACK_HOSTNAME4, strlen (FALLBACK_HOSTNAME4));
270
		// ret = sethostname (FALLBACK_HOSTNAME4, strlen (FALLBACK_HOSTNAME4));
271
		if (ret != 0) {
271
		if (ret != 0) {
272
			nm_log_warn (LOGD_DNS, "couldn't set the fallback system hostname (%s): (%d) %s",
272
			nm_log_warn (LOGD_DNS, "couldn't set the fallback system hostname (%s): (%d) %s",
273
			             FALLBACK_HOSTNAME4, errno, strerror (errno));
273
			             FALLBACK_HOSTNAME4, errno, strerror (errno));
274
- 

Return to bug 345617