logging: open application log file in append mode

It was being open in read/write mode, which was likely
a mistake with append mode being the intention.
pull/2414/head
Jason Ish 9 years ago committed by Victor Julien
parent 666fecc579
commit 73a1d04779

@ -689,7 +689,7 @@ static inline SCLogOPIfaceCtx *SCLogInitFileOPIface(const char *file,
iface_ctx->iface = SC_LOG_OP_IFACE_FILE;
iface_ctx->type = type;
if ( (iface_ctx->file_d = fopen(file, "w+")) == NULL) {
if ( (iface_ctx->file_d = fopen(file, "a")) == NULL) {
printf("Error opening file %s\n", file);
goto error;
}

Loading…
Cancel
Save