/[gentoo-x86]/net-misc/networkmanager/files/networkmanager-0.8-nscd-clear-cache.patch
Gentoo

Contents of /net-misc/networkmanager/files/networkmanager-0.8-nscd-clear-cache.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Sep 13 09:54:12 2012 UTC (22 months, 2 weeks 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 327e00f06358ef388f4fad5abcb016daa0ec3452 Mon Sep 17 00:00:00 2001
2 From: Robert Piasek <dagger@gentoo.org>
3 Date: Mon, 22 Feb 2010 10:34:23 +0000
4 Subject: [PATCH] fix: use nscd -i to clear cache
5
6
7 Signed-off-by: Robert Piasek <dagger@gentoo.org>
8 ---
9 src/backends/NetworkManagerGentoo.c | 11 +++++------
10 1 files changed, 5 insertions(+), 6 deletions(-)
11
12 diff --git a/src/backends/NetworkManagerGentoo.c b/src/backends/NetworkManagerGentoo.c
13 index 7fa1207..aa4b40c 100644
14 --- a/src/backends/NetworkManagerGentoo.c
15 +++ b/src/backends/NetworkManagerGentoo.c
16 @@ -34,6 +34,7 @@
17 #include "NetworkManagerGeneric.h"
18 #include "NetworkManagerSystem.h"
19 #include "NetworkManagerUtils.h"
20 +#include "nm-utils.h"
21
22 /*
23 * nm_system_enable_loopback
24 @@ -57,11 +58,9 @@ void nm_system_enable_loopback (void)
25 */
26 void nm_system_update_dns (void)
27 {
28 - #ifdef NM_NO_NAMED
29 - if (nm_spawn_process ("/etc/init.d/nscd status") == 0)
30 - nm_spawn_process ("/etc/init.d/nscd restart");
31 - #else
32 - nm_spawn_process("/usr/bin/killall -q nscd");
33 - #endif
34 + if (g_file_test ("/usr/sbin/nscd", G_FILE_TEST_IS_EXECUTABLE)) {
35 + nm_info ("Clearing nscd hosts cache.");
36 + nm_spawn_process ("/usr/sbin/nscd -i hosts");
37 + }
38 }
39
40 --
41 1.7.0

  ViewVC Help
Powered by ViewVC 1.1.20