Commit Graph

71 Commits

Author SHA1 Message Date
matthieu
4feeb26f77 sessreg -x is useless if not updating utmp. Remove it.
Also don't try to remove utmp lines that were not written.
2018-07-11 19:20:40 +00:00
matthieu
ec07007116 Ooops I didn't intend to commit that part. revert it. 2018-07-11 19:06:29 +00:00
matthieu
b3e8c00865 Actually remove the source files for Xstartup and Xreset 2018-07-11 19:05:22 +00:00
matthieu
35981369b1 Remove Xstartup and Xreset script. Xenodm uses GiveConsole and TakeConsole 2018-07-11 19:03:50 +00:00
matthieu
5d69c81cc1 Keep a better trace of pending children to be reaped. 2018-07-11 16:57:04 +00:00
matthieu
c3094ef041 Delete unused code 2018-07-11 16:33:44 +00:00
matthieu
6d7357f962 Bind <Key>Escape to erase-line by default. 2018-07-11 16:28:54 +00:00
matthieu
c8c914a77e Less ifdef cruft. 2018-07-11 16:26:25 +00:00
matthieu
bf265b5bbc use strvis on login name when logging debug information it since it
may contain control characters. And remove an extra logging of the same.
2018-07-11 16:20:20 +00:00
matthieu
8f540c071b Restore previous SIGCHLD handler in serverPause().
This fixes the issue where xenodm whould stay stuck after kill the
Xserver twice.

While here add some more Debug() calls to help following what's going on
2018-07-11 14:35:46 +00:00
matthieu
2c8cd3e507 Also revert this one, doesn't look right either. 2018-07-10 15:52:52 +00:00
matthieu
a8c7a38ea4 Revert some of the strlcpy() conversions which are wrong. 2018-07-10 15:32:27 +00:00
matthieu
8b4158c82d Remove more unused ifdefs blocks 2018-07-10 14:58:57 +00:00
matthieu
91c82fae6b Remove useless ifdefs 2018-07-10 14:50:21 +00:00
matthieu
a08190694c Get rid of strcpy and strncpy (they were all looking safe though) 2018-07-10 14:44:34 +00:00
matthieu
1b4f7ecea8 Consistant use of bool whenever possible. 2018-07-10 14:20:42 +00:00
matthieu
8e35b035af Remove unused code. 2018-07-10 13:57:31 +00:00
matthieu
72e68d3bca Remove the unused localHostname() function. 2018-07-10 13:15:50 +00:00
matthieu
53d0e5e23b Remove prototype for function that doesn't exist anymore in xenodom. 2018-07-09 16:52:19 +00:00
matthieu
e5b6c5a29f Source the Xsetup script before initializing the greeter widget.
Based on a request by weerd@, tested by jca@ and weerd@
2018-07-09 15:02:41 +00:00
matthieu
022476f90f static variable shadowing found by clang 2018-05-06 15:26:15 +00:00
matthieu
537654d79d Unused variables found by clang 2018-05-06 15:25:27 +00:00
matthieu
fc7d5d1825 Add missing brackets to multi-statement if in SaveServerAuthorizations
From Alan Coopersmith in xdm.
2018-05-06 15:18:42 +00:00
matthieu
e172c9b2ce xdm -> xenodm in log and error messages 2017-11-12 17:10:12 +00:00
matthieu
08a235a628 chown before chmod
This prevents a malicious user logging out from calling
chmod while still owning /dev/console and thus by-passing
the '622' mode that is set here.

Issue reported by Tim Chase. Thanks.


Merged from xdm upstreams
2017-10-04 18:28:59 +00:00
deraadt
5150e677a9 backout hard-coded behaviour change which was not discussed, in
particular no justification for why the current behaviour is wrong
2017-09-05 17:48:07 +00:00
dcoppa
44401622e1 amend comment 2017-08-30 07:59:00 +00:00
dcoppa
7055fe14e7 Use 'unix:0' for the DISPLAY environment variable
ok matthieu@
2017-08-30 07:48:56 +00:00
matthieu
1711398f5e Missing dot breaks semantic markup. from Klemens Nanni. Thanks. 2017-08-22 06:54:08 +00:00
matthieu
e1e9d732f3 Stop abusing cpp as generic macro processor in the build system.
ok naddy@
2017-07-26 21:14:54 +00:00
matthieu
7c70a5feaf regen 2017-07-26 10:05:19 +00:00
matthieu
9cc7f92447 There is no xdm.service file in xenodm. 2017-07-26 10:04:30 +00:00
tb
ba1c922475 Don't mention the unsupported Kerberos credentials cache.
ok matthieu
2017-03-04 15:48:32 +00:00
bentley
ec8153abb4 Convert xenodm manual to mdoc(7).
ok matthieu@, plus some tweak from jmc@
2017-03-04 06:10:03 +00:00
natano
56a9465c27 Replace the binaryEqual() function with std memcmp().
ok matthieu
2017-02-28 10:30:27 +00:00
matthieu
a54e10b26c Remove some remaining XDMCP and remote X servers references. 2017-02-28 07:04:28 +00:00
tobias
82b10e4b46 Reset SIGCHLD signal handler to previous value in error path, too.
ok matthieu@
2017-01-30 21:45:27 +00:00
matthieu
8dbc1a3a1a regen 2016-11-11 16:22:02 +00:00
matthieu
a525e5d33f SU is not needed without xdmcp support 2016-11-11 16:21:50 +00:00
matthieu
da72443d3d regen 2016-11-11 15:58:47 +00:00
matthieu
12abc80a8d Xsession cleanup:
- remove mkstemp conditional it's always there
- remove USE_XPM conditional
- remove SCO and Unixware bits that survived so far
2016-11-11 15:58:35 +00:00
matthieu
d5119169fa regen 2016-11-11 15:25:34 +00:00
matthieu
0a3295ecef Keep only on Xservers file.
The Xservers.fs file makes no sense in xenodm.
2016-11-11 15:25:17 +00:00
matthieu
cf398e78cf More unused code, when xdm-authorization is not used. 2016-11-06 14:00:37 +00:00
matthieu
4289726dad Remove a number of unused prototypes 2016-11-06 13:48:48 +00:00
matthieu
4ebe34eee0 The SIGFUNC type definition is unused now 2016-11-06 13:40:33 +00:00
matthieu
eb59d7033d Good bye <setjmp.h> and associated definitions. 2016-11-06 13:37:28 +00:00
matthieu
4a2df54825 Use explicit_bzero(). With BSD auth these data have already been
wiped when we reach those points but just in case.
2016-11-06 13:30:15 +00:00
matthieu
cdddca9b4f Rework the Xservers parsing code to correctly reject
non local display types.
2016-11-06 12:56:30 +00:00
matthieu
abef35bfcd GreetUser() doen't need to return the X display pointer. 2016-11-06 12:41:24 +00:00