Module: sip-router
Branch: janakj/flatstore
Commit: f76abca257eaa22829bc2f99275d5c0dc5b6156c
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f76abca…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Thu Oct 28 11:02:55 2004 +0000
- Open files for appending instead of overwriting
---
modules/db_flatstore/flat_con.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/db_flatstore/flat_con.c b/modules/db_flatstore/flat_con.c
index cd5b5c9..8d375ec 100644
--- a/modules/db_flatstore/flat_con.c
+++ b/modules/db_flatstore/flat_con.c
@@ -98,7 +98,7 @@ struct flat_con* flat_new_connection(struct flat_id* id)
fn = get_name(id);
- res->file = fopen(fn, "w");
+ res->file = fopen(fn, "a");
if (!res->file) {
LOG(L_ERR, "flat_new_connection: %s\n", strerror(errno));
pkg_free(res);
@@ -140,7 +140,7 @@ int flat_reopen_connection(struct flat_con* con)
fn = get_name(con->id);
- con->file = fopen(fn, "w");
+ con->file = fopen(fn, "a");
if (!con->file) {
LOG(L_ERR, "flat_reopen_connection: Invalid parameter value\n");
return -1;