From c6debe0e35b2f04ca6ca8c6dbdce9f8c81bc6391 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sun, 16 Sep 2012 18:40:30 +0200 Subject: [PATCH] and do it for the tempdir function too Signed-off-by: Joerg Jaspert --- daklib/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daklib/utils.py b/daklib/utils.py index 03cd5894..63d8f471 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -1503,7 +1503,8 @@ def temp_dirname(parent=None, prefix="dak", suffix="", mode=None, group=None): if mode: os.chmod(tfname, mode) if group: - os.chown(tfname, -1, group) + gid = grp.getgrnam(group).gr_gid + os.chown(tfname, -1, gid) return tfname ################################################################################ -- 2.39.5