summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-04-21 18:17:26 +0000
committerMike Frysinger <vapier@gentoo.org>2008-04-21 18:17:26 +0000
commitb3da7ac83a0a1a0e49b7f9a826cde9049a5f649b (patch)
tree8004cc3a8fbab5d5cde2c6caba2ff71d7c5f34c7 /net-fs/nfs-utils
parentFix up metadata.xml. If there's no maintainer for the package, the metadata a... (diff)
downloadgentoo-2-b3da7ac83a0a1a0e49b7f9a826cde9049a5f649b.tar.gz
gentoo-2-b3da7ac83a0a1a0e49b7f9a826cde9049a5f649b.tar.bz2
gentoo-2-b3da7ac83a0a1a0e49b7f9a826cde9049a5f649b.zip
Use non-common awk exit values so that the default exit values dont trigger false positives #218713 by Paolo Pedroni.
(Portage version: 2.2_pre5)
Diffstat (limited to 'net-fs/nfs-utils')
-rw-r--r--net-fs/nfs-utils/ChangeLog6
-rwxr-xr-xnet-fs/nfs-utils/files/nfsmount.initd8
2 files changed, 9 insertions, 5 deletions
diff --git a/net-fs/nfs-utils/ChangeLog b/net-fs/nfs-utils/ChangeLog
index 244a2968358b..be41781cd29b 100644
--- a/net-fs/nfs-utils/ChangeLog
+++ b/net-fs/nfs-utils/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-fs/nfs-utils
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.126 2008/04/21 07:56:14 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/ChangeLog,v 1.127 2008/04/21 18:17:25 vapier Exp $
+
+ 21 Apr 2008; Mike Frysinger <vapier@gentoo.org> files/nfsmount.initd:
+ Use non-common awk exit values so that the default exit values dont trigger
+ false positives #218713 by Paolo Pedroni.
21 Apr 2008; Mike Frysinger <vapier@gentoo.org> files/rpc.gssd.initd,
files/rpc.svcgssd.initd:
diff --git a/net-fs/nfs-utils/files/nfsmount.initd b/net-fs/nfs-utils/files/nfsmount.initd
index a4ba1396c724..1d6b91d54b2e 100755
--- a/net-fs/nfs-utils/files/nfsmount.initd
+++ b/net-fs/nfs-utils/files/nfsmount.initd
@@ -1,17 +1,17 @@
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfsmount.initd,v 1.9 2008/04/20 00:06:29 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfsmount.initd,v 1.10 2008/04/21 18:17:26 vapier Exp $
[ -e /etc/conf.d/nfs ] && . /etc/conf.d/nfs
depend() {
local myneed=""
if [ -e /etc/fstab ] ; then
- awk '!/^[[:space:]]*#/ && $3 == "nfs4" { exit ($4 ~ /sec=krb/ ? 1 : 2) }' /etc/fstab
+ awk '!/^[[:space:]]*#/ && $3 == "nfs4" { exit ($4 ~ /sec=krb/ ? 10 : 20) }' /etc/fstab
local ret=$?
- [ ${ret} -eq 1 ] && myneed="${myneed} rpc.gssd"
- [ ${ret} -ne 2 ] && myneed="${myneed} rpc.idmapd"
+ [ ${ret} -eq 10 ] && myneed="${myneed} rpc.gssd"
+ [ ${ret} -ne 20 ] && myneed="${myneed} rpc.idmapd"
fi
type -t config 2>/dev/null 1>&2 && config /etc/fstab
need net portmap rpc.statd ${myneed}