From 54a6c1059cd1e9d72c1365079cec5f96c9742ac6 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 9 Jun 2008 17:55:39 +0000 Subject: Use the group name properly --- slapd-pivot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slapd-pivot.py') diff --git a/slapd-pivot.py b/slapd-pivot.py index c27ee2e..156ab29 100644 --- a/slapd-pivot.py +++ b/slapd-pivot.py @@ -49,7 +49,7 @@ def drop_privileges(): group = int(group) except ValueError: try: - group = grp.getgrgid(group)[2] + group = grp.getgrnam(group)[2] except KeyError: failure("invalid group: %s" % group) os.setegid(group) -- cgit v1.2.3