summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-02-14 16:08:54 +0000
committerMike Frysinger <vapier@gentoo.org>2012-02-14 16:08:54 +0000
commita71b901bb5271726ea341eb8a253d1f6f89534ec (patch)
tree52cd4f9c3dff8ca02141e32b3d6968c6b0b815a9 /eclass
parentESVN_UMASK: fix grammar and add useful documentation (diff)
downloadgentoo-2-a71b901bb5271726ea341eb8a253d1f6f89534ec.tar.gz
gentoo-2-a71b901bb5271726ea341eb8a253d1f6f89534ec.tar.bz2
gentoo-2-a71b901bb5271726ea341eb8a253d1f6f89534ec.zip
eumask_pop: error out if someone tries to pass args to us
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 0e04c2e84b4d..72a5d69bda0c 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.381 2012/02/14 16:01:21 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.382 2012/02/14 16:08:54 vapier Exp $
# @ECLASS: eutils.eclass
# @MAINTAINER:
@@ -214,6 +214,7 @@ eumask_push() {
# @DESCRIPTION:
# Restore the previous umask state.
eumask_pop() {
+ [[ $# -eq 0 ]] || die "${FUNCNAME}: we take no options"
local s
estack_pop eumask s || die "${FUNCNAME}: unbalanced push"
umask ${s} || die "${FUNCNAME}: sanity: could not restore umask: ${s}"