]> git.ipfire.org Git - thirdparty/pdns.git/commit
Fix zone2{sql,json} exit codes 1159/head
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Wed, 28 Aug 2013 19:12:08 +0000 (21:12 +0200)
committermind04 <mind04@monshouwer.org>
Sat, 7 Dec 2013 13:10:23 +0000 (14:10 +0100)
commit7538e56294da1a3c658f59cef3923ec6d8995480
tree8dd43387a9b45370b89b9b79640ccc14f72239dd
parent7593c405208f1ce1842d0eb8de705d86175ce166
Fix zone2{sql,json} exit codes

To be consistent with general practice, fix zone2{sql,json} to exit
with:
 * 0 on success
 * 1 on error

This also moves the catch block after the last line of main, so a
"theoretically" possible exception in ::arg().mustDo would get caught.
(Also, one level less of indent!)
pdns/backends/bind/zone2json.cc
pdns/backends/bind/zone2sql.cc