summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2008-06-09 17:55:39 +0000
committerStef Walter <stef@thewalter.net>2008-06-09 17:55:39 +0000
commit54a6c1059cd1e9d72c1365079cec5f96c9742ac6 (patch)
tree4c5a63f9f5a95b0ee195f5475b9773487e20b38d
parent2c2348a13a6252355716a0717bfe89de79e1f4f9 (diff)
Use the group name properly
-rw-r--r--slapd-pivot.py2
1 files changed, 1 insertions, 1 deletions
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)