]> git.pld-linux.org Git - packages/X11.git/commitdiff
- fixes CVE-2006-0745 (argh)
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 20 Mar 2006 22:16:57 +0000 (22:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    x11r6.9.0-geteuid.diff -> 1.1

x11r6.9.0-geteuid.diff [new file with mode: 0644]

diff --git a/x11r6.9.0-geteuid.diff b/x11r6.9.0-geteuid.diff
new file mode 100644 (file)
index 0000000..afb7d4d
--- /dev/null
@@ -0,0 +1,20 @@
+--- programs/Xserver/hw/xfree86/common/xf86Init.c.orig 2006-03-17 23:30:10.000000000 +0200
++++ programs/Xserver/hw/xfree86/common/xf86Init.c      2006-03-17 23:29:35.000000000 +0200
+@@ -1376,7 +1376,7 @@
+     }
+   
+   /* First the options that are only allowed for root */
+-  if (getuid() == 0 || geteuid != 0)
++  if (getuid() == 0 || geteuid() != 0)
+   {
+     if (!strcmp(argv[i], "-modulepath"))
+     {
+@@ -1679,7 +1679,7 @@
+   }
+   if (!strcmp(argv[i], "-configure"))
+   {
+-    if (getuid() != 0 && geteuid == 0) {
++    if (getuid() != 0 && geteuid() == 0) {
+       ErrorF("The '-configure' option can only be used by root.\n");
+       exit(1);
+     }
This page took 0.036359 seconds and 4 git commands to generate.