1 |
patrick 09/03/01 23:48:09 |
2 |
|
3 |
Added: io_compile.patch |
4 |
Log: |
5 |
Bump to alpha16. Closes #243246 and #258752 |
6 |
(Portage version: 2.2_rc23/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 app-cdr/xcdroast/files/io_compile.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-cdr/xcdroast/files/io_compile.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-cdr/xcdroast/files/io_compile.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: io_compile.patch |
15 |
=================================================================== |
16 |
--- src/io.c.org 2009-02-24 09:38:27.000000000 +0100 |
17 |
+++ src/io.c 2009-02-24 09:45:18.000000000 +0100 |
18 |
@@ -1903,7 +1903,8 @@ |
19 |
} |
20 |
|
21 |
strcpy(str,""); |
22 |
- fgets(str,MAXLINE,fpin); |
23 |
+ if (fgets(str,MAXLINE,fpin) == NULL) |
24 |
+ g_error("fgets error\n"); |
25 |
|
26 |
if (pclose(fpin) == -1) { |
27 |
g_error("pclose error\n"); |
28 |
@@ -4720,7 +4721,7 @@ |
29 |
dolog(3, "Saving extended output to %s\n", fname); |
30 |
|
31 |
/* write to file */ |
32 |
- fd = open(fname,O_WRONLY | O_CREAT); |
33 |
+ fd = open(fname, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR); |
34 |
if (fd < 0) { |
35 |
g_warning("Can't open file %s for writing\n",fname); |
36 |
return 1; |