OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Thomas Lotterer
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 05-Mar-2007 23:41:40
Branch: HEAD Handle: 2007030522413901
Modified files:
openpkg-src/openpkg HISTORY openpkg.spec
Log:
invalidate passwd and group tables from Name Service Cache Daemon
after pwconv
Summary:
Revision Changes Path
1.435 +1 -0 openpkg-src/openpkg/HISTORY
1.573 +15 -1 openpkg-src/openpkg/openpkg.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/openpkg/HISTORY
============================================================================
$ cvs diff -u -r1.434 -r1.435 HISTORY
--- openpkg-src/openpkg/HISTORY 5 Mar 2007 22:39:14 -0000 1.434
+++ openpkg-src/openpkg/HISTORY 5 Mar 2007 22:41:39 -0000 1.435
@@ -2,6 +2,7 @@
2007
====
+20070305 invalidate passwd and group tables from Name Service Cache Daemon
after pwconv
20070305 upgrade to rpmtool 1.1.0 remove dormant code for system user/group
addition/removal
20070302 upgrade to openpkg-registry 1.1.1 upgrade safety
20070302 upgrade to openpkg-tools 1.4.3 direct access relative path names
(identified by leading "./"); minor re fix in 1.4.4
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/openpkg/openpkg.spec
============================================================================
$ cvs diff -u -r1.572 -r1.573 openpkg.spec
--- openpkg-src/openpkg/openpkg.spec 2 Mar 2007 10:10:51 -0000 1.572
+++ openpkg-src/openpkg/openpkg.spec 5 Mar 2007 22:41:40 -0000 1.573
@@ -39,7 +39,7 @@
# o any cc(1)
# the package version/release
-%define V_openpkg 20070302
+%define V_openpkg 20070305
# the used software versions
%define V_rpm 4.2.1
@@ -1840,6 +1840,13 @@
fi
done
+ # invalidate passwd and group tables from Name Service Cache Daemon to
+ # ensure chown/chgrp works immediately after pwconv on Linux and
Solaris
+ if [ -x /usr/sbin/nscd ]; then
+ /usr/sbin/nscd -i passwd >/dev/null 2>&1 || true
+ /usr/sbin/nscd -i group >/dev/null 2>&1 || true
+ fi
+
# create the startup/shutdown transfer script
name=`echo "$prefix" | sed -e 's;/;;g'`
if [ ".$cusr" != ".root" ]; then
@@ -2613,6 +2620,13 @@
fi
done
+ # invalidate passwd and group tables from Name Service Cache Daemon to
+ # ensure chown/chgrp works immediately after pwconv on Linux and
Solaris
+ if [ -x /usr/sbin/nscd ]; then
+ /usr/sbin/nscd -i passwd >/dev/null 2>&1 || true
+ /usr/sbin/nscd -i group >/dev/null 2>&1 || true
+ fi
+
# remove the startup/shutdown transfer scripts
name=`echo "$prefix" | sed -e 's;/;;g'`
if [ ".$cusr" != ".root" ]; then
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]