Logs: no ODBC user and password in messages about a log

A log string is shown only up to its first comma, where an ODBC string
goes on with the user and the password: in the message on a log which
failed, and in the errors on a log or -l which cannot be opened.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Vladimir DubrovinandClaude Opus 5.5 committed 2026-10-23 11:47:23 +03:00
1 parent d613750b94
commit e87ffcd7e1
4 files changed
+16 -3

No files matched your search

+2 -1
View File
@@ -322,7 +322,8 @@ static int srvprepare(struct srvstart *s, int argc, char **argv){
/* the same log the log command, or another service,
opened is shared with it */
if(!(lg = logget((unsigned char *)argv[i] + 2, NONE))){
perror(argv[i] + 2);
fprintf(stderr, "Unable to open log %.*s: %s\n",
(int)logselen((unsigned char *)argv[i] + 2), argv[i] + 2, strerror(errno));
return 1;
}
logput(srv->logger);