mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Set O_EXCL (ITS#2009)
This commit is contained in:
parent
d38d19edc1
commit
c673b651e8
@ -63,7 +63,7 @@ write_reject(
|
||||
if ( access( rejfile, F_OK ) < 0 ) {
|
||||
/* Doesn't exist - try to create */
|
||||
int rjfd;
|
||||
if (( rjfd = open( rejfile, O_RDWR | O_APPEND | O_CREAT,
|
||||
if (( rjfd = open( rejfile, O_RDWR|O_APPEND|O_CREAT|O_EXCL,
|
||||
S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP )) < 0 ) {
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG ( SLURPD, ERR, "write_reject: "
|
||||
|
Loading…
Reference in New Issue
Block a user