From 10f3ade1bd2b94bed421e77601372d1b38213da4 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Tue, 18 Jul 2017 16:20:44 +0200 Subject: [PATCH] Trbflash ignores if trbflash.log can not be written. --- libtrbnet/trbflash.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libtrbnet/trbflash.c b/libtrbnet/trbflash.c index e165be7..8fade2c 100644 --- a/libtrbnet/trbflash.c +++ b/libtrbnet/trbflash.c @@ -1230,7 +1230,9 @@ static int openLog() fprintf(stderr, "Error > Could not open logFile %s: %s\n", logFileName, strerror(errno)); - return -1; + logFile = fopen("/dev/null","w+"); + if(logFile == NULL) + return -1; } datet = time(NULL); -- 2.43.0