mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 15:49:34 -05:00
Set O_EXCL
This commit is contained in:
parent
5972fb95f4
commit
9c9bd4d5ab
1 changed files with 1 additions and 1 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue