[nsd-users] nsd patch does not return proper failure code?
Paul Wouters
paul at xelerance.com
Sun Mar 28 22:46:04 UTC 2010
-bash-3.2$ sudo /usr/sbin/nsdc -c /etc/nsd/nsd.conf patch
reading database
[1269816112] nsd-patch[12113]: error: cannot load database. Zone rfc4322.org. in db /var/lib/nsd/nsd.db, but not in config file (might happen if you edited the config file). Please rebuild database and start again.
could not read database: /var/lib/nsd/nsd.db
nsdc: patch failed.
-bash-3.2$ echo $?
0
I would expect a non-zero error code. I confirmed that sudo in other error cases
does return a proper error code.
Paul
More information about the nsd-users
mailing list