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
9c9bd4d5
Commit
9c9bd4d5
authored
Aug 05, 2002
by
Kurt Zeilenga
Browse files
Set O_EXCL
parent
5972fb95
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/test.c
View file @
9c9bd4d5
...
...
@@ -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
);
...
...
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