data->buffer_length = default_buffer_length;
data->buffer = calloc( 1, default_buffer_length );
assert( data->buffer != NULL );
- data->output = stderr;
+ data->output = stdout;
*display_datap = data;
return 0;
}
(void) fprintf( data->output,
"\r%-79s",
data->buffer );
+ (void) fflush( data->output );
data->need_eol = 1;
return 0;
}
/* default "000" */
csnsid = 0;
- if ( isatty (2) ) enable_meter = 1;
+ if ( isatty (1) ) enable_meter = 1;
slap_tool_init( progname, SLAPADD, argc, argv );
memset( &opbuf, 0, sizeof(opbuf) );
if ( !dryrun ) {
if ( enable_meter ) {
- fprintf( stderr, "Closing DB..." );
+ fprintf( stdout, "Closing DB..." );
}
if( be->be_entry_close( be ) ) {
rc = EXIT_FAILURE;
be->be_sync( be );
}
if ( enable_meter ) {
- fprintf( stderr, "\n" );
+ fprintf( stdout, "\n" );
}
}