From ef0cdd916d0c1bf1078ba9adadb46f39944f372d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 13 Mar 2006 23:59:28 +0000 Subject: [PATCH] Make portage_util.apply_stat_permissions() wrap apply_secpass_permissions instead of plain old apply_permissions. svn path=/main/trunk/; revision=2869 --- pym/portage_util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage_util.py b/pym/portage_util.py index 782a10be1..5b8d87d55 100644 --- a/pym/portage_util.py +++ b/pym/portage_util.py @@ -470,9 +470,9 @@ def apply_permissions(filename, uid=-1, gid=-1, mode=0, os.chmod(filename, mode | stat_cached.st_mode) def apply_stat_permissions(filename, newstat, stat_cached=None): - """wrapper around apply_permissions that gets + """A wrapper around apply_secpass_permissions that gets uid, gid, and mode from a stat object""" - apply_permissions(filename, uid=newstat.st_uid, gid=newstat.st_gid, + return apply_secpass_permissions(filename, uid=newstat.st_uid, gid=newstat.st_gid, mode=newstat.st_mode, stat_cached=stat_cached) def apply_secpass_permissions(filename, uid=-1, gid=-1, mode=0, -- 2.26.2