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
commitaf40af2146c865160a9e2d3cbdd5826d21352b45 (patch)
tree2fe0aeef6baa688244a5c4f0d7c8ba07fe5bf33a /eclass
parentESVN_UMASK: fix grammar and add useful documentation (diff)
downloadhistorical-af40af2146c865160a9e2d3cbdd5826d21352b45.tar.gz
historical-af40af2146c865160a9e2d3cbdd5826d21352b45.tar.bz2
historical-af40af2146c865160a9e2d3cbdd5826d21352b45.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}"