r6037 - in glibc-package/trunk/debian: . debhelper.in
Author: aurel32
Date: 2014-05-04 20:36:08 +0000 (Sun, 04 May 2014)
New Revision: 6037
Modified:
glibc-package/trunk/debian/changelog
glibc-package/trunk/debian/debhelper.in/nscd.init
Log:
debhelper.in/nscd.init: invalidate nscd cache on startup. Closes:
#689427.
Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog 2014-05-04 20:27:42 UTC (rev 6036)
+++ glibc-package/trunk/debian/changelog 2014-05-04 20:36:08 UTC (rev 6037)
@@ -11,6 +11,8 @@
4.0 and greater. Closes: #747013.
* patches/sparc/cvs-strcmp.diff: patch from upstream to fix a corner case
in the sparc specific strcmp() implementation. Closes: #746310.
+ * debhelper.in/nscd.init: invalidate nscd cache on startup. Closes:
+ #689427.
-- Adam Conrad <adconrad@0c3.net> Sun, 27 Apr 2014 23:15:13 -0600
Modified: glibc-package/trunk/debian/debhelper.in/nscd.init
===================================================================
--- glibc-package/trunk/debian/debhelper.in/nscd.init 2014-05-04 20:27:42 UTC (rev 6036)
+++ glibc-package/trunk/debian/debhelper.in/nscd.init 2014-05-04 20:36:08 UTC (rev 6037)
@@ -70,12 +70,19 @@
return 0
}
+invalidate_cache()
+{
+ for table in passwd group hosts ; do
+ $DAEMON --invalidate $table
+ done
+}
+
case "$1" in
start)
log_daemon_msg "Starting $DESC" "$NAME"
start_nscd
case "$?" in
- 0) log_end_msg 0 ; exit 0 ;;
+ 0) invalidate_cache ; log_end_msg 0 ; exit 0 ;;
1) log_warning_msg " (already running)." ; exit 0 ;;
*) log_end_msg 1 ; exit 1 ;;
esac
@@ -91,9 +98,7 @@
;;
restart|force-reload)
log_daemon_msg "Restarting $DESC" "$NAME"
- for table in passwd group hosts ; do
- $DAEMON --invalidate $table
- done
+ invalidate_cache
stop_nscd
case "$?" in
0|1)
Reply to: