[nsd-users] nsd-xfer returning 1 on success?

Arnt Gulbrandsen arnt at gulbrandsen.priv.no
Fri Jul 17 12:33:32 UTC 2009


Matthijs Mekking writes:
> These particular lines where last touched 5 years ago, but my guess is 
> that a way to differentiate between "zone up to date" (0) and 
> "transfer succeeded" (1) was needed. Since both are not errors (but 
> not both return the same value), more success return codes are 
> needed.
>
> Do you think it make more sense to switch these two numbers?

IMNSHO this is a case where the users' needs do vary, so the default 
could be to return 0 for all varieties of success, and return extra 
error-like success codes if a command-line option like 
--return-different-success-codes is specified.

Awful little problem.

Arnt



More information about the nsd-users mailing list