/[gentoo-x86]/net-misc/networkmanager/files/networkmanager-0.9.2.0-ifnet-unquote-hostname.patch
Gentoo

Contents of /net-misc/networkmanager/files/networkmanager-0.9.2.0-ifnet-unquote-hostname.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Sep 13 09:54:12 2012 UTC (2 years, 3 months ago) by tetromino
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Version bump with various fixes. No longer saves thousands of temporary ipv6 routes (bug #428274, thanks to Matthias Nagel). No longer installs dispatcher and init scripts when USE=systemd to avoid annoying systemd users (bug #434692, thanks to Arne St├Ącker). Drop old.

(Portage version: 2.2.0_alpha125/cvs/Linux x86_64)

1 From 8f3c3242a762d77fedd745273a1cdca7f9a2b2f6 Mon Sep 17 00:00:00 2001
2 From: Alexandre Rostovtsev <tetromino@gentoo.org>
3 Date: Tue, 31 Jan 2012 21:10:01 -0500
4 Subject: [PATCH] ifnet: properly unquote hostnames with g_shell_unquote()
5
6 If /etc/conf.d/hostname contains "hostname='foo'", then the hostname
7 needs to be set to "foo", not "'foo'".
8
9 https://bugzilla.gnome.org/show_bug.cgi?id=669148
10 ---
11 src/settings/plugins/ifnet/net_utils.c | 3 +--
12 1 files changed, 1 insertions(+), 2 deletions(-)
13
14 diff --git a/src/settings/plugins/ifnet/net_utils.c b/src/settings/plugins/ifnet/net_utils.c
15 index b533ae3..36b465d 100644
16 --- a/src/settings/plugins/ifnet/net_utils.c
17 +++ b/src/settings/plugins/ifnet/net_utils.c
18 @@ -242,8 +242,7 @@ read_hostname (const char *path)
19 if (g_str_has_prefix (all_lines[i], "hostname")) {
20 tmp = strstr (all_lines[i], "=");
21 tmp++;
22 - tmp = strip_string (tmp, '"');
23 - result = g_strdup (tmp);
24 + result = g_shell_unquote (tmp, NULL);
25 break;
26 }
27
28 --
29 1.7.8.4

  ViewVC Help
Powered by ViewVC 1.1.20