]> git.sur5r.net Git - openldap/commitdiff
Don't use perror after ldbm_store() failure; errno is not set then.
authorHallvard Furuseth <hallvard@openldap.org>
Fri, 20 Nov 1998 12:15:05 +0000 (12:15 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Fri, 20 Nov 1998 12:15:05 +0000 (12:15 +0000)
servers/slapd/tools/ldif2id2entry.c

index 226d8232db6dc4eb7a3621c4449876fce29a3bc7..e84ed64802673a30c627f9e0be6bbdeee476d0a2 100644 (file)
@@ -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 );
                                }
                        }