diff options
author | miwi <miwi@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2012-02-06 00:43:42 +0800 |
---|---|---|
committer | miwi <miwi@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2012-02-06 00:43:42 +0800 |
commit | eb384524d18261e42f80deeb7cbe74523f1d49eb (patch) | |
tree | 0495ae031d15285d4795cdeb948cfc6df2c97f58 /x11-servers/xorg-server/files/patch-os-utils.c | |
parent | e8fa453ef65d0752f7b1379dc1726874936edf7d (diff) | |
download | xorg-devel-ports-eb384524d18261e42f80deeb7cbe74523f1d49eb.tar xorg-devel-ports-eb384524d18261e42f80deeb7cbe74523f1d49eb.tar.gz xorg-devel-ports-eb384524d18261e42f80deeb7cbe74523f1d49eb.tar.bz2 xorg-devel-ports-eb384524d18261e42f80deeb7cbe74523f1d49eb.tar.lz xorg-devel-ports-eb384524d18261e42f80deeb7cbe74523f1d49eb.tar.xz xorg-devel-ports-eb384524d18261e42f80deeb7cbe74523f1d49eb.tar.zst xorg-devel-ports-eb384524d18261e42f80deeb7cbe74523f1d49eb.zip |
- Move ports/branches/xorg-dev to ports/trunk/
git-svn-id: https://trillian.chruetertee.ch/svn/ports/trunk@388 058c260c-8361-11dd-a0ac-aa2bafec7d09
Diffstat (limited to 'x11-servers/xorg-server/files/patch-os-utils.c')
-rw-r--r-- | x11-servers/xorg-server/files/patch-os-utils.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/x11-servers/xorg-server/files/patch-os-utils.c b/x11-servers/xorg-server/files/patch-os-utils.c new file mode 100644 index 0000000..2980ded --- /dev/null +++ b/x11-servers/xorg-server/files/patch-os-utils.c @@ -0,0 +1,20 @@ +--- os/utils.c.orig 2010-05-04 02:48:00.000000000 +0200 ++++ os/utils.c 2011-10-18 20:08:10.000000000 +0200 +@@ -315,7 +315,7 @@ + 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(tmp, 0444); + (void) close(lfd); + + /* +@@ -336,7 +336,7 @@ + /* + * Read the pid from the existing file + */ +- lfd = open(LockFile, O_RDONLY); ++ lfd = open(LockFile, O_RDONLY|O_NOFOLLOW); + if (lfd < 0) { + unlink(tmp); + FatalError("Can't read lock file %s\n", LockFile); |