Bug#1104270: marked as done (unblock: routino/3.4.3-1) (2/3)
From
Debian Bug Tracking System@21:1/5 to
Bas Couwenberg on Wed Apr 30 08:20:01 2025
[continued from previous message]
-int DeleteFile(const char *filename);
-
int RenameFile(const char *oldfilename,const char *newfilename);
/* Functions in files.h */
diff -Nru routino-3.4.2/src/logerror.c routino-3.4.3/src/logerror.c
--- routino-3.4.2/src/logerror.c 2015-08-15 14:52:59.000000000 +0200
+++ routino-3.4.3/src/logerror.c 2025-04-05 17:31:34.000000000 +0200
@@ -3,7 +3,7 @@
Part of the Routino routing software.
******************/ /******************
- This file Copyright 2013, 2015 Andrew M. Bishop
+ This file Copyright 2013, 2015, 2025 Andrew M. Bishop
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by @@ -75,11 +75,7 @@
errorlogfile=fopen(errorlogfilename,append?"a" :"w" );
#endif
- if(!errorlogfile)
- {
- fprintf(stderr,"Cannot open file '%s' for writing [%s].\n",errorlogfilename,strerror(errno));
- exit(EXIT_FAILURE);
- }
+ logassert_format(errorlogfile,("Cannot open file '%s' for writing [%s].",errorlogfilename,strerror(errno)));
/* Binary log file */
diff -Nru routino-3.4.2/src/logging.c routino-3.4.3/src/logging.c
--- routino-3.4.2/src/logging.c 2019-07-28 12:21:50.000000000