From 31d90880b6b7380c20e802e9dca243e0619981cf Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 26 Aug 2009 13:58:23 +0000 Subject: [PATCH] Fix mkdir() to call the local setfscreate() with strict returncode checking. Thanks to Chris PeBenito for this patch. svn path=/main/trunk/; revision=14161 --- pym/portage/_selinux.py | 4 ++-- 1 file 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') -- 2.26.2