Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
c673b651
Commit
c673b651
authored
Aug 05, 2002
by
Kurt Zeilenga
Browse files
Set O_EXCL (ITS
#2009
)
parent
d38d19ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slurpd/reject.c
View file @
c673b651
...
...
@@ -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: "
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment