~ubuntu-branches/ubuntu/gutsy/xdm/gutsy

« back to all changes in this revision

Viewing changes to xdmshell.c

  • Committer: Bazaar Package Importer
  • Author(s): David Nusinow
  • Date: 2006-06-30 00:42:11 UTC
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20060630004211-puz2hz052bab3kq9
Tags: upstream-1.0.5
ImportĀ upstreamĀ versionĀ 1.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
#endif
184
184
 
185
185
    /* make xdm run in a non-setuid environment */
186
 
    setuid (geteuid());
 
186
    if (setuid (geteuid()) == -1) {
 
187
        fprintf(stderr, "%s: cannot setuid (error %d, %s)\r\n",
 
188
                ProgramName, errno, strerror(errno));
 
189
        exit(1);
 
190
    }
187
191
 
188
192
    /*
189
193
     * exec /usr/bin/X11/xdm -nodaemon -udpPort 0