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 ...@@ -2,6 +2,7 @@ OpenLDAP 2.4 Change Log
OpenLDAP 2.4.9 Engineering OpenLDAP 2.4.9 Engineering
Fixed libldap_r tpool pause checks (ITS#5364, #5407) Fixed libldap_r tpool pause checks (ITS#5364, #5407)
Fixed slapcat error checking (ITS#5387)
Fixed slapd frontendDB backend selection (ITS#5419) Fixed slapd frontendDB backend selection (ITS#5419)
Fixed slapd delta-syncrepl resync (ITS#5378) Fixed slapd delta-syncrepl resync (ITS#5378)
Fixed slapd syncrepl hang on back-config (ITS#5407) Fixed slapd syncrepl hang on back-config (ITS#5407)
......
...@@ -84,6 +84,7 @@ slapcat( int argc, char **argv ) ...@@ -84,6 +84,7 @@ slapcat( int argc, char **argv )
char *data; char *data;
int len; int len;
Entry* e; Entry* e;
int writerc;
if ( gotsig ) if ( gotsig )
break; break;
...@@ -123,8 +124,21 @@ slapcat( int argc, char **argv ) ...@@ -123,8 +124,21 @@ slapcat( int argc, char **argv )
break; break;
} }
fputs( data, ldiffp->fp ); writerc = fputs( data, ldiffp->fp );
fputs( "\n", 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 ); 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