Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/xorg-server/dist/hw/xfree86/os-support/bsd Do...



details:   https://anonhg.NetBSD.org/xsrc/rev/1fbfbb884ca7
branches:  trunk
changeset: 9997:1fbfbb884ca7
user:      maya <maya%NetBSD.org@localhost>
date:      Fri Oct 26 11:13:29 2018 +0000

description:
Don't error if we are unprivileged

diffstat:

 external/mit/xorg-server/dist/hw/xfree86/os-support/bsd/bsd_init.c |  5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diffs (15 lines):

diff -r 8f976b4930ce -r 1fbfbb884ca7 external/mit/xorg-server/dist/hw/xfree86/os-support/bsd/bsd_init.c
--- a/external/mit/xorg-server/dist/hw/xfree86/os-support/bsd/bsd_init.c        Fri Oct 05 01:53:54 2018 +0000
+++ b/external/mit/xorg-server/dist/hw/xfree86/os-support/bsd/bsd_init.c        Fri Oct 26 11:13:29 2018 +0000
@@ -165,11 +165,6 @@
 #endif
 
     if (serverGeneration == 1) {
-        /* check if we are run with euid==0 */
-        if (geteuid() != 0) {
-            FatalError("xf86OpenConsole: Server must be suid root");
-        }
-
         if (!KeepTty) {
             /*
              * detaching the controlling tty solves problems of kbd character



Home | Main Index | Thread Index | Old Index