]> git.pld-linux.org Git - packages/X11.git/blob - x11r6.9.0-geteuid.diff
- original from http://xorg.freedesktop.org/releases/X11R6.9.0/patches/x11r6.9.0...
[packages/X11.git] / x11r6.9.0-geteuid.diff
1 --- programs/Xserver/hw/xfree86/common/xf86Init.c.orig  2006-03-17 23:30:10.000000000 +0200
2 +++ programs/Xserver/hw/xfree86/common/xf86Init.c       2006-03-17 23:29:35.000000000 +0200
3 @@ -1376,7 +1376,7 @@
4      }
5    
6    /* First the options that are only allowed for root */
7 -  if (getuid() == 0 || geteuid != 0)
8 +  if (getuid() == 0 || geteuid() != 0)
9    {
10      if (!strcmp(argv[i], "-modulepath"))
11      {
12 @@ -1679,7 +1679,7 @@
13    }
14    if (!strcmp(argv[i], "-configure"))
15    {
16 -    if (getuid() != 0 && geteuid == 0) {
17 +    if (getuid() != 0 && geteuid() == 0) {
18         ErrorF("The '-configure' option can only be used by root.\n");
19         exit(1);
20      }
This page took 0.117658 seconds and 3 git commands to generate.