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
dc6b6276
Commit
dc6b6276
authored
Sep 08, 2021
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
Sep 08, 2021
Browse files
ITS#6949 Save errno
parent
2abbf678
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/logging.c
View file @
dc6b6276
...
@@ -123,8 +123,9 @@ logfile_open( const char *path )
...
@@ -123,8 +123,9 @@ logfile_open( const char *path )
return
errno
;
return
errno
;
if
(
fstat
(
fd
,
&
st
)
)
{
if
(
fstat
(
fd
,
&
st
)
)
{
int
saved_errno
=
errno
;
close
(
fd
);
close
(
fd
);
return
errno
;
return
saved_
errno
;
}
}
if
(
!
logfile_path
[
0
]
)
{
if
(
!
logfile_path
[
0
]
)
{
...
...
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