From aec88f98bdc3bee0db6fe819deddb64a8e6a0461 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Fri, 20 Nov 1998 12:15:05 +0000 Subject: [PATCH] Don't use perror after ldbm_store() failure; errno is not set then. --- servers/slapd/tools/ldif2id2entry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/tools/ldif2id2entry.c b/servers/slapd/tools/ldif2id2entry.c index 226d8232db..e84ed64802 100644 --- a/servers/slapd/tools/ldif2id2entry.c +++ b/servers/slapd/tools/ldif2id2entry.c @@ -173,7 +173,8 @@ main( int argc, char **argv ) data.dsize = strlen( buf ) + 1; if ( ldbm_store( db->dbc_db, key, data, LDBM_INSERT ) != 0 ) { - perror( "id2entry ldbm_store" ); + fputs("id2entry ldbm_store failed\n", + stderr); exit( 1 ); } } -- 2.39.5