summaryrefslogtreecommitdiff
path: root/src/execute.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-08-01 21:34:42 +0200
committerLennart Poettering <lennart@poettering.net>2011-08-01 21:34:42 +0200
commitfa8f36ac15f6c3985f053cdd3698655958442f7f (patch)
treec32e0024e6852127cad9a45daaf8a74e19c739e5 /src/execute.c
parent4c12626c8e3491570b395d68380543e10c98ad33 (diff)
execute: properly enforce group
https://bugzilla.redhat.com/show_bug.cgi?id=723892
Diffstat (limited to 'src/execute.c')
-rw-r--r--src/execute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/execute.c b/src/execute.c
index f07d018a37..668bf9d0f0 100644
--- a/src/execute.c
+++ b/src/execute.c
@@ -1193,7 +1193,7 @@ int exec_spawn(ExecCommand *command,
}
if (apply_permissions)
- if (enforce_groups(context, username, uid) < 0) {
+ if (enforce_groups(context, username, gid) < 0) {
r = EXIT_GROUP;
goto fail_child;
}