]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
Trbflash ignores if trbflash.log can not be written.
authorJan Michel <j.michel@gsi.de>
Tue, 18 Jul 2017 14:20:44 +0000 (16:20 +0200)
committerJan Michel <j.michel@gsi.de>
Tue, 18 Jul 2017 14:20:44 +0000 (16:20 +0200)
libtrbnet/trbflash.c

index e165be71df69829df17ff3cef23f48a8172d4fd0..8fade2c38123ce4c6e411d33081a167515833948 100644 (file)
@@ -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);