[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#5387) slapcat ignores errors while writing output (no space left on device, etc)



jclarke@linagora.com writes:
> When slapcat is writing it's output to disk, it ignores any errors
> (with slapcat -l output_file or slapcat > output_file). If an error is
> encountered, such as "No space left on device", slapcat then exits
> normally with a return code of 0.

Eh.  API design bug.  ldif_tool_entry_first()/ldif_tool_entry_next()
have no way to return error.  At best they can set an "error" flag
in the internal database structure, and API calls which are able
to return errors can react to that.

-- 
Hallvard