From: Hallvard Furuseth Date: Fri, 20 Nov 1998 12:15:05 +0000 (+0000) Subject: Don't use perror after ldbm_store() failure; errno is not set then. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~1068 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aec88f98bdc3bee0db6fe819deddb64a8e6a0461;p=openldap Don't use perror after ldbm_store() failure; errno is not set then. --- 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 ); } }