Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 124480 Details for
Bug 184905
net-misc/networkmanager-0.6.5 ignores /etc/conf.d/hostname
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch that fixes the problem (or at least, works for me)
networkmanager-hostname.patch (text/plain), 888 bytes, created by
Daniele Tamino
on 2007-07-10 21:51:11 UTC
(
hide
)
Description:
Patch that fixes the problem (or at least, works for me)
Filename:
MIME Type:
Creator:
Daniele Tamino
Created:
2007-07-10 21:51:11 UTC
Size:
888 bytes
patch
obsolete
>diff -ur NetworkManager-0.6.5-orig/src/backends/NetworkManagerGentoo.c NetworkManager-0.6.5/src/backends/NetworkManagerGentoo.c >--- NetworkManager-0.6.5-orig/src/backends/NetworkManagerGentoo.c 2007-07-10 14:24:10.000000000 -0700 >+++ NetworkManager-0.6.5/src/backends/NetworkManagerGentoo.c 2007-07-10 14:27:06.000000000 -0700 >@@ -614,6 +614,8 @@ > val = g_hash_table_lookup(ifh, "hostname"); > if (val) > { >+ if (sys_data->config == NULL) >+ sys_data->config = nm_ip4_config_new(); > nm_ip4_config_set_hostname(sys_data->config, val); > } > >@@ -623,7 +625,8 @@ > /* This device does not use DHCP */ > > sys_data->use_dhcp=FALSE; >- sys_data->config = nm_ip4_config_new(); >+ if (sys_data->config == NULL) >+ sys_data->config = nm_ip4_config_new(); > > nm_ip4_config_set_address (sys_data->config, inet_addr (val)); >
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 184905
: 124480