From: Kurt Zeilenga Date: Mon, 5 Aug 2002 19:49:27 +0000 (+0000) Subject: Set O_EXCL X-Git-Tag: NO_SLAP_OP_BLOCKS~1284 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9c9bd4d5ab8dc85cd3d9d48d98c0749680b9bc3c;p=openldap Set O_EXCL --- diff --git a/libraries/libldap/test.c b/libraries/libldap/test.c index 05e9cf90f8..1300418abc 100644 --- a/libraries/libldap/test.c +++ b/libraries/libldap/test.c @@ -357,7 +357,7 @@ main( int argc, char **argv ) } if ( copyfname != NULL ) { - if ( ( ld->ld_sb->sb_fd = open( copyfname, O_WRONLY | O_CREAT, + if ( ( ld->ld_sb->sb_fd = open( copyfname, O_WRONLY|O_CREAT|O_EXCL, 0600 )) == -1 ) { perror( copyfname ); exit ( EXIT_FAILURE );