diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-06-18 06:49:50 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-06-18 06:49:50 +0000 |
commit | caf6e4702ac9769236dd395143f2e8f0d70cb763 (patch) | |
tree | 63931f296d9c370e49d9e3be16cd0002e7b498bf /sys-libs | |
parent | Removed old versions (diff) | |
download | gentoo-2-caf6e4702ac9769236dd395143f2e8f0d70cb763.tar.gz gentoo-2-caf6e4702ac9769236dd395143f2e8f0d70cb763.tar.bz2 gentoo-2-caf6e4702ac9769236dd395143f2e8f0d70cb763.zip |
add a sanity check
Diffstat (limited to 'sys-libs')
-rwxr-xr-x | sys-libs/glibc/files/nscd | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys-libs/glibc/files/nscd b/sys-libs/glibc/files/nscd index 62a4f2abcc96..a683e8fa6444 100755 --- a/sys-libs/glibc/files/nscd +++ b/sys-libs/glibc/files/nscd @@ -1,13 +1,17 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/nscd,v 1.5 2005/12/09 13:45:15 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/nscd,v 1.6 2006/06/18 06:49:50 vapier Exp $ depend() { use dns ldap net slapd } checkconfig() { + if [[ ! -d /var/run/nscd ]] ; then + mkdir -p /var/run/nscd + chmod 755 /var/run/nscd + fi if [[ -z ${NSCD_PERMS_OK} && $(stat -c %a /var/run/nscd) != "755" ]] ; then echo "" ewarn "nscd run dir is not world readable, you should reset the perms:" |