/[gentoo-x86]/x11-base/xorg-server/files/xorg-cve-2011-4028+4029.patch
Gentoo

Contents of /x11-base/xorg-server/files/xorg-cve-2011-4028+4029.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Jun 12 11:27:07 2012 UTC (2 years, 3 months ago) by chithanh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
Re-add xorg-server-1.9, which is still needed for some users.

(Portage version: 2.2.0_alpha109/cvs/Linux x86_64, RepoMan options: --force)

1 diff --git a/os/utils.c b/os/utils.c
2 index e8ecb71..18ff1ca 100644
3 --- a/os/utils.c
4 +++ b/os/utils.c
5 @@ -297,7 +297,7 @@ LockServer(void)
6 FatalError("Could not create lock file in %s\n", tmp);
7 (void) sprintf(pid_str, "%10ld\n", (long)getpid());
8 (void) write(lfd, pid_str, 11);
9 - (void) chmod(tmp, 0444);
10 + (void) fchmod(lfd, 0444);
11 (void) close(lfd);
12
13 /*
14 @@ -318,7 +318,7 @@ LockServer(void)
15 /*
16 * Read the pid from the existing file
17 */
18 - lfd = open(LockFile, O_RDONLY);
19 + lfd = open(LockFile, O_RDONLY|O_NOFOLLOW);
20 if (lfd < 0) {
21 unlink(tmp);
22 FatalError("Can't read lock file %s\n", LockFile);

  ViewVC Help
Powered by ViewVC 1.1.20