X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fexecute.c;fp=src%2Fexecute.c;h=668bf9d0f06bb544e45309d01571bbf2cdaa870c;hb=fa8f36ac15f6c3985f053cdd3698655958442f7f;hp=f07d018a37a29468707f0956fc2e9d3cdea7fc3b;hpb=4c12626c8e3491570b395d68380543e10c98ad33;p=elogind.git diff --git a/src/execute.c b/src/execute.c index f07d018a3..668bf9d0f 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; }