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

« back to all changes in this revision

Viewing changes to trampoline/trampoline.c

  • Committer: dcoles
  • Date: 2008-03-04 11:38:02 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:642
makeuser.py: Needs to import random

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");