~ubuntu-branches/ubuntu/utopic/xdm/utopic

« back to all changes in this revision

Viewing changes to xdmshell.c

  • Committer: Bazaar Package Importer
  • Author(s): David Nusinow, Eugene Konev
  • Date: 2006-06-30 00:42:11 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060630004211-m2ntbay7eepml8pb
Tags: 1:1.0.5-1
[ Eugene Konev ]
* New upstream release. Fixes security bug on linux-2.6 kernels.
* Don't build-depend on libselinux1-dev on non-linux arches, thanks
  Michael Banck and Christian Perrier (closes: #369519)
* Fix init script reload target, thanks Alexandr Kazda (closes: #365548)
* Fix authDir reference in xdm(1), thanks Kevin Ryde (closes: #373138)
* Update README.Debian, thanks Kevin Ryde (closes: #373870)
* Pass APP_MAN_SUFFIX=1 to configure explicitely.

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