Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 254715 Details for
Bug 345617
net-misc/networkmanager changes hostname when /etc/hosts is non-writable
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Won't fallback when failed to update etc hosts
0001-Won-t-fallback-when-failed-to-update-etc-hosts.patch (text/plain), 1.11 KB, created by
Mu Qiao (RETIRED)
on 2010-11-18 13:05:34 UTC
(
hide
)
Description:
Won't fallback when failed to update etc hosts
Filename:
MIME Type:
Creator:
Mu Qiao (RETIRED)
Created:
2010-11-18 13:05:34 UTC
Size:
1.11 KB
patch
obsolete
>From e5f5fc0656326dbdc726852d9df78caf53a811ee Mon Sep 17 00:00:00 2001 >From: Mu Qiao <qiaomuf@gmail.com> >Date: Thu, 18 Nov 2010 20:49:28 +0800 >Subject: [PATCH] Won't fallback when failed to update /etc/hosts > Signed-off-by: Mu Qiao <qiaomuf@gmail.com> > >--- > src/nm-policy-hostname.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/src/nm-policy-hostname.c b/src/nm-policy-hostname.c >index 42a2e0f..d4e1a31 100644 >--- a/src/nm-policy-hostname.c >+++ b/src/nm-policy-hostname.c >@@ -267,7 +267,7 @@ nm_policy_set_system_hostname (const char *new_hostname, > &changed)) { > /* error updating /etc/hosts; fallback to localhost.localdomain */ > nm_log_info (LOGD_DNS, "Setting system hostname to '" FALLBACK_HOSTNAME4 "' (error updating /etc/hosts)"); >- ret = sethostname (FALLBACK_HOSTNAME4, strlen (FALLBACK_HOSTNAME4)); >+ // ret = sethostname (FALLBACK_HOSTNAME4, strlen (FALLBACK_HOSTNAME4)); > if (ret != 0) { > nm_log_warn (LOGD_DNS, "couldn't set the fallback system hostname (%s): (%d) %s", > FALLBACK_HOSTNAME4, errno, strerror (errno)); >-- >1.7.2.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 345617
: 254715