You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gfix is not returning an error code when the file is not a valid
database. Is it as designed? gbak is returning error code 1
[root@server1 firebird]# echo 1 > test.fdb
[root@server1 firebird]# gfix -v -full test.fdb
file /share/firebird/test.fdb is not a valid database
[root@server1 firebird]# echo $?
0
[root@server1 firebird]#
[root@server1 firebird]# gbak -b test.fdb test.fbk
gbak: ERROR:file /share/firebird/test.fdb is not a valid database
gbak:Exiting before completion due to errors
[root@server1 firebird]# echo $?
1
[root@server1 firebird]#
Submitted by: fabianobonin (fabianobonin)
gfix is not returning an error code when the file is not a valid
database. Is it as designed? gbak is returning error code 1
[root@server1 firebird]# echo 1 > test.fdb
[root@server1 firebird]# gfix -v -full test.fdb
file /share/firebird/test.fdb is not a valid database
[root@server1 firebird]# echo $?
0
[root@server1 firebird]#
[root@server1 firebird]# gbak -b test.fdb test.fbk
gbak: ERROR:file /share/firebird/test.fdb is not a valid database
gbak:Exiting before completion due to errors
[root@server1 firebird]# echo $?
1
[root@server1 firebird]#
Commits: 8711bd9
The text was updated successfully, but these errors were encountered: