Skip to content

Commit

Permalink
lib: correct formatting for a debug message
Browse files Browse the repository at this point in the history
This fixes a SIGSEGV if for example an permission error is thrown and the debug logging is enabled.
  • Loading branch information
bluecmd committed Jul 9, 2021
1 parent 570d9cb commit 3a7905b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/lib/bsys.cc
Expand Up @@ -627,7 +627,7 @@ void WriteStateFile(const char* dir, const char* progname, int port)
} catch (const std::system_error& e) {
BErrNo be;
Dmsg3(100, "Could not seek filepointer. ERR=%s - %s\n",
sizeof(StateFileHeader), be.bstrerror(), e.code().message().c_str());
be.bstrerror(), e.code().message().c_str());
return;
} catch (const std::exception& e) {
Dmsg0(100, "Could not seek filepointer. Some error occurred: %s\n",
Expand Down

0 comments on commit 3a7905b

Please sign in to comment.