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

« back to all changes in this revision

Viewing changes to trampoline/trampoline.c

  • Committer: mattgiuca
  • Date: 2008-02-01 05:48:34 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:371
setup.py: Fixed chmodding python-console. (Turns out this was a bug in setup,
    not a missing action).

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
    /* At this point we are executing as the child process */
90
90
 
91
91
    /* Change the file mode mask */
92
 
    umask(022);
 
92
    umask(0);
93
93
 
94
94
    /* Create a new SID for the child process */
95
95
    sid = setsid();
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
 
 
204
198
    if (setuid(uid))
205
199
    {
206
200
        perror("could not setuid");