[EMAIL PROTECTED] a écrit : > [EMAIL PROTECTED] 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? Regards, Jonathan -- Jonathan Clarke 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
