From: Zac Medico Date: Wed, 26 Aug 2009 13:58:23 +0000 (-0000) Subject: Fix mkdir() to call the local setfscreate() with strict returncode checking. X-Git-Tag: v2.2_rc41~97 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=31d90880b6b7380c20e802e9dca243e0619981cf;p=portage.git Fix mkdir() to call the local setfscreate() with strict returncode checking. Thanks to Chris PeBenito for this patch. svn path=/main/trunk/; revision=14161 --- 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')