summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-08-26 13:58:23 +0000
committerZac Medico <zmedico@gentoo.org>2009-08-26 13:58:23 +0000
commit31d90880b6b7380c20e802e9dca243e0619981cf (patch)
tree466278155f10936e881b3064446031f9c0b15d3c
parente22b0c6d60345ada11c7c3e1e66e5f76f30f2197 (diff)
downloadportage-31d90880b6b7380c20e802e9dca243e0619981cf.tar.gz
portage-31d90880b6b7380c20e802e9dca243e0619981cf.tar.bz2
portage-31d90880b6b7380c20e802e9dca243e0619981cf.zip
Fix mkdir() to call the local setfscreate() with strict returncode checking.
Thanks to Chris PeBenito <pebenito@gentoo.org> for this patch. svn path=/main/trunk/; revision=14161
-rw-r--r--pym/portage/_selinux.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/_selinux.py b/pym/portage/_selinux.py
index ca6ec4dec..d013fa969 100644
--- a/pym/portage/_selinux.py
+++ b/pym/portage/_selinux.py
@@ -43,11 +43,11 @@ def mkdir(target, refdir):
_("mkdir: Failed getting context of reference directory \"%s\".") \
% refdir)
- selinux.setfscreatecon(ctx)
+ setfscreate(ctx)
try:
os.mkdir(target)
finally:
- selinux.setfscreatecon()
+ setfscreate()
def rename(src, dest):
src = _unicode_encode(src, encoding=_encodings['fs'], errors='strict')