[Date Prev][Date Next]
Re: (ITS#5387) slapcat ignores errors while writing output (no space left on device, etc)
firstname.lastname@example.org a Ã©crit :
> email@example.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.
Hmmm. I may have misunderstood, but it seems this concerns internal
errors, whereas I was referring to the output (writing the data to
stdout or to a file) errors.
The patch I attached addresses this issue, is there any chance of seeing
it included in OpenLDAP, or does it need some more work?
Cellule OSSA - Groupe LINAGORA
27 rue de Berri, 75008 Paris
TÃ©l: 01 58 18 68 28, fax: 01 58 18 68 29
http://www.linagora.com - http://www.08000linux.com