projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e22b0c6
)
Fix mkdir() to call the local setfscreate() with strict returncode checking.
author
Zac Medico
<zmedico@gentoo.org>
Wed, 26 Aug 2009 13:58:23 +0000
(13:58 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 26 Aug 2009 13:58:23 +0000
(13:58 -0000)
Thanks to Chris PeBenito <pebenito@gentoo.org> for this patch.
svn path=/main/trunk/; revision=14161
pym/portage/_selinux.py
patch
|
blob
|
history
diff --git
a/pym/portage/_selinux.py
b/pym/portage/_selinux.py
index ca6ec4decd1abcd326ca7337abf09ce89ed0b1dc..d013fa969e39b7404e18a5ecd7a27a906f2eda4e 100644
(file)
--- 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)
- se
linux.setfscreatecon
(ctx)
+ se
tfscreate
(ctx)
try:
os.mkdir(target)
finally:
- se
linux.setfscreatecon
()
+ se
tfscreate
()
def rename(src, dest):
src = _unicode_encode(src, encoding=_encodings['fs'], errors='strict')