summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-10-30 16:46:41 +0000
committerMike Frysinger <vapier@gentoo.org>2009-10-30 16:46:41 +0000
commit3e63043c795133c888fbbe181e1630cbc4fd278c (patch)
tree030b0f8b189b17af4855293dd579a234d8990266 /eclass
parentRemove net-wireless/bluez-hciemu -- fix bug 257826 (diff)
downloadgentoo-2-3e63043c795133c888fbbe181e1630cbc4fd278c.tar.gz
gentoo-2-3e63043c795133c888fbbe181e1630cbc4fd278c.tar.bz2
gentoo-2-3e63043c795133c888fbbe181e1630cbc4fd278c.zip
invert read logic pointed out by Arfrever Frehtes Taifersar Arahesis #289168#4
Diffstat (limited to 'eclass')
-rw-r--r--eclass/savedconfig.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/savedconfig.eclass b/eclass/savedconfig.eclass
index c2a66a0740d2..bb01c4886959 100644
--- a/eclass/savedconfig.eclass
+++ b/eclass/savedconfig.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/savedconfig.eclass,v 1.11 2009/10/30 00:05:25 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/savedconfig.eclass,v 1.12 2009/10/30 16:46:41 vapier Exp $
# @ECLASS: savedconfig.eclass
# @MAINTAINER:
@@ -115,7 +115,7 @@ restore_config() {
die "do not know how to handle non-file/directory ${found}"
else
# maybe the user is screwing around with perms they shouldnt #289168
- if [[ -r ${base} ]] ; then
+ if [[ ! -r ${base} ]] ; then
eerror "Unable to read ${base} -- perms are screwed ?"
die "fix your system"
fi