File xorg-server-1.6.5-CVE-2011-4029.patch of Package xorg-x11-server
diff -up os/utils.c.orig-4029 os/utils.c --- os/utils.c.orig-4029 2011-10-29 21:09:44.159654739 +0200 +++ os/utils.c 2011-10-29 21:10:38.637989446 +0200 @@ -315,7 +315,7 @@ LockServer(void) FatalError("Could not create lock file in %s\n", tmp); (void) sprintf(pid_str, "%10ld\n", (long)getpid()); (void) write(lfd, pid_str, 11); - (void) chmod(tmp, 0444); + (void) fchmod(lfd, 0444); (void) close(lfd); /*