~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to trampoline/trampoline.c

  • Committer: drtomc
  • Date: 2008-03-04 02:21:21 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:639
trampoline: now calls setgid to address the strange group permissions issue.

Show diffs side-by-side

added added

removed removed

Lines of Context:
195
195
    /* setuid to the given user ID.
196
196
     * Henceforth we will be running as this user instead of root.
197
197
     */
 
198
    if (setgid(uid))
 
199
    {
 
200
        perror("could not setgid");
 
201
        exit(1);
 
202
    }
 
203
 
198
204
    if (setuid(uid))
199
205
    {
200
206
        perror("could not setuid");