1 |
mr_bones_ 09/02/24 19:08:23 |
2 |
|
3 |
Added: etswitch-0.1.14-glibc.patch |
4 |
Log: |
5 |
EAPI=2; fix building with newer glibc (patch submitted by Michał Górny via bug #260111) |
6 |
(Portage version: 2.1.6.7/cvs/Linux i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 games-util/etswitch/files/etswitch-0.1.14-glibc.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-util/etswitch/files/etswitch-0.1.14-glibc.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-util/etswitch/files/etswitch-0.1.14-glibc.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: etswitch-0.1.14-glibc.patch |
15 |
=================================================================== |
16 |
diff -dupr etswitch-old/src/etswitch.c etswitch-0.1.14/src/etswitch.c |
17 |
--- etswitch-old/src/etswitch.c 2009-02-24 11:20:29.594339029 +0100 |
18 |
+++ etswitch-0.1.14/src/etswitch.c 2009-02-24 11:28:12.100463404 +0100 |
19 |
@@ -461,7 +461,7 @@ int main(int argc, char *argv[]){ |
20 |
/* setup lock, fixme */ |
21 |
/* use temp var */ |
22 |
lock_file = "/tmp/.etswitch.pid"; /* now this isnt failsafe but at least something */ |
23 |
- lock_fd = open(lock_file, O_CREAT | O_RDWR); |
24 |
+ lock_fd = open(lock_file, O_CREAT | O_RDWR, 0600); |
25 |
if (lock_fd < 0) { |
26 |
#ifdef DEBUG |
27 |
fprintf(stdout, "'%s' allready exits, will try to open.\n",lock_file); |