linux: xf86OpenConsole remove root-rights check for keeptty option
There is no reason why keeptty cannot be used without root-rights. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
caf1dec2a7
commit
701b7ab349
|
@ -87,12 +87,6 @@ xf86OpenConsole(void)
|
||||||
const char *vcs[] = { "/dev/vc/%d", "/dev/tty%d", NULL };
|
const char *vcs[] = { "/dev/vc/%d", "/dev/tty%d", NULL };
|
||||||
|
|
||||||
if (serverGeneration == 1) {
|
if (serverGeneration == 1) {
|
||||||
|
|
||||||
/* when KeepTty check if we're run with euid==0 */
|
|
||||||
if (KeepTty && geteuid() != 0)
|
|
||||||
FatalError("xf86OpenConsole:"
|
|
||||||
" Server must be suid root for option \"KeepTTY\"\n");
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* setup the virtual terminal manager
|
* setup the virtual terminal manager
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user