Skip to content

gstat fails, but return 0 error code with incorrect databases.conf #7191

@AlexeyMochalov

Description

@AlexeyMochalov

Hello,
I've got a minor but annoying bug. gstat utility fails if databases.conf contains erroneous lines, but at the same time exits with 0 error code. Affects on 3, 4 and master. I'm going to make a PR by myself.

aleksey@aleksey-ubuntu:~/dev/firebird/gen/Debug/firebird$ grep security5 databases.conf
#security.db = $(dir_secDb)/security5.fdb
= $(dir_secDb)/security5.fdb
aleksey@aleksey-ubuntu:~/dev/firebird/gen/Debug/firebird$ ./bin/gstat -u sysdba -p masterkey employee.fdb

/home/aleksey/dev/firebird/gen/Debug/firebird/databases.conf: illegal line <= $(dir_secDb)/security5.fdb>
aleksey@aleksey-ubuntu:~/dev/firebird/gen/Debug/firebird$ echo $?
0

Thank you for your time.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions