Commit 74cc16ce authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#5387

parent 7f604a69
......@@ -2,6 +2,7 @@ OpenLDAP 2.4 Change Log
OpenLDAP 2.4.9 Engineering
Fixed libldap_r tpool pause checks (ITS#5364, #5407)
Fixed slapcat error checking (ITS#5387)
Fixed slapd frontendDB backend selection (ITS#5419)
Fixed slapd delta-syncrepl resync (ITS#5378)
Fixed slapd syncrepl hang on back-config (ITS#5407)
......
......@@ -84,6 +84,7 @@ slapcat( int argc, char **argv )
char *data;
int len;
Entry* e;
int writerc;
if ( gotsig )
break;
......@@ -123,8 +124,21 @@ slapcat( int argc, char **argv )
break;
}
fputs( data, ldiffp->fp );
fputs( "\n", ldiffp->fp );
writerc = fputs( data, ldiffp->fp );
if ( writerc == EOF ) {
fprintf(stderr, "%s: error writing output.\n",
progname);
rc = EXIT_FAILURE;
break;
}
writerc = fputs( "\n", ldiffp->fp );
if ( writerc == EOF ) {
fprintf(stderr, "%s: error writing output.\n",
progname);
rc = EXIT_FAILURE;
break;
}
}
be->be_entry_close( be );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment