summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage_util.py4
1 files 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,