1 |
spock 09/03/22 07:56:01 |
2 |
|
3 |
Added: clara_open_mode.patch |
4 |
Log: |
5 |
Fix missing open() arguments (bug #260081, patch by Magnus Granberg). |
6 |
(Portage version: 2.1.6.9/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 app-text/clara/files/clara_open_mode.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/clara/files/clara_open_mode.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/clara/files/clara_open_mode.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: clara_open_mode.patch |
15 |
=================================================================== |
16 |
--- pgmblock.c 2002-04-29 14:26:13.000000000 +0000 |
17 |
+++ pgmblock.c 2009-03-05 02:51:43.000000000 +0000 |
18 |
@@ -161,7 +161,7 @@ |
19 |
|
20 |
printf("%d rare pixels (%1.4f)\n",t,((float)t)/(w*h)); |
21 |
|
22 |
- F = open("map",O_WRONLY|O_CREAT); |
23 |
+ F = open("map",O_WRONLY|O_CREAT, 0644); |
24 |
write(F,m,h*bpl); |
25 |
write(F,map,256); |
26 |
close(F); |
27 |
@@ -197,7 +197,7 @@ |
28 |
{ |
29 |
int i,j,F; |
30 |
|
31 |
- F = open("map",O_RDONLY|O_CREAT); |
32 |
+ F = open("map",O_RDONLY|O_CREAT, 0644); |
33 |
read(F,m,h*bpl); |
34 |
read(F,map,256); |
35 |
close(F); |