Package: nss-updatedb
Version: 9-1
Severity: normal

I run "nss_updatedb ldap" from a cron job.  This call returns exit code 1 even 
if the call was successful.  This results in complaining mails from cron.

The cause is that returns the nss_status directly, which I see defined as:

enum nss_status
{
  NSS_STATUS_TRYAGAIN = -2,
  NSS_STATUS_UNAVAIL,
  NSS_STATUS_NOTFOUND,
  NSS_STATUS_SUCCESS,
  NSS_STATUS_RETURN
};

I think this should be fixed to return something along the lines

  (status == NSS_STATUS_SUCCESS ? 0 : 1)

Or at least the unusual exit codes should be mentioned in the man page.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to