From: Joerg Jaspert Date: Sun, 16 Sep 2012 16:40:30 +0000 (+0200) Subject: and do it for the tempdir function too X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6debe0e35b2f04ca6ca8c6dbdce9f8c81bc6391;p=dak and do it for the tempdir function too Signed-off-by: Joerg Jaspert --- 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 ################################################################################