]> git.ipfire.org Git - thirdparty/pdns.git/commit
Fix zone2{sql,json} exit codes 979/head
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Wed, 28 Aug 2013 19:12:08 +0000 (21:12 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Wed, 28 Aug 2013 19:12:08 +0000 (21:12 +0200)
commit5761d098ffd2fc03907b0d38d7ac6dd65c429ee8
treefc39c8d107c544eb08802c81bc2d4f26fbd3a566
parentf3e72503cbf7d8980239dea29f3f8a1b015d2242
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