[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Antiright-devel] antiright/libantiright pipe.c
From: |
Jeffrey Bedard |
Subject: |
[Antiright-devel] antiright/libantiright pipe.c |
Date: |
Thu, 17 May 2007 04:42:49 +0000 |
CVSROOT: /sources/antiright
Module name: antiright
Changes by: Jeffrey Bedard <jefbed> 07/05/17 04:42:49
Modified files:
libantiright : pipe.c
Log message:
Fixed file open flags, fixing segfault in case of read only file.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/antiright/libantiright/pipe.c?cvsroot=antiright&r1=1.11&r2=1.12
Patches:
Index: pipe.c
===================================================================
RCS file: /sources/antiright/antiright/libantiright/pipe.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- pipe.c 17 May 2007 04:32:20 -0000 1.11
+++ pipe.c 17 May 2007 04:42:49 -0000 1.12
@@ -52,7 +52,8 @@
gchar * contents;
- file=fopen(filename, "a+");
+ file=fopen(filename, g_file_test(filename, G_FILE_TEST_EXISTS)
+ ? "r" : "a+");
contents=antiright_read_file(file);
fclose(file);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Antiright-devel] antiright/libantiright pipe.c,
Jeffrey Bedard <=