[nsd-users] nsd patch does not return proper failure code?
Matthijs Mekking
matthijs at NLnetLabs.nl
Tue Apr 6 08:02:03 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Paul,
do_patch() will return a non-zero error code, however, the echo "failed"
overrides that. I have added an explicit return 1 in this case (in trunk).
Thanks!
Matthijs
Paul Wouters wrote:
>
> -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
> _______________________________________________
> nsd-users mailing list
> nsd-users at NLnetLabs.nl
> http://open.nlnetlabs.nl/mailman/listinfo/nsd-users
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQEcBAEBAgAGBQJLuup5AAoJEA8yVCPsQCW5SbYH/0zAFfCqquJuffQGrzuI98x2
8eyuc0mu1L469+6yxSH4K4W2khb/h8xZSLyeAkEmqKr80gP/yNa0FTlNT5eZ7DeU
Hk5s1uDLb/T8ORlOtGizLyFoKiOO8wBZZwDFMksIhTZGcKV8rAh02GqSbGfAUyXt
BMVvycwY2z3OZXFCy/ZHf/0IgvYLh/kq3kxe5AFAauxMEXFgfbnQep2yLwHAGkuz
r5KTRB/tAzOVN/HlZsKIcbkd+dKPa+P7CnJNEupInumwiT4QvgvC+RBr16ycsPYf
g0jFRRt0KyuZBzSbKmOIJ7+ujUBnB8ivOtSNpOM7gUfGPGqthAVuKjf1qJh89IM=
=l3oH
-----END PGP SIGNATURE-----
More information about the nsd-users
mailing list