mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
ITS#6949 Save errno
This commit is contained in:
parent
2abbf6781d
commit
dc6b6276fc
1 changed files with 2 additions and 1 deletions
|
|
@ -123,8 +123,9 @@ logfile_open( const char *path )
|
|||
return errno;
|
||||
|
||||
if ( fstat( fd, &st ) ) {
|
||||
int saved_errno = errno;
|
||||
close( fd );
|
||||
return errno;
|
||||
return saved_errno;
|
||||
}
|
||||
|
||||
if ( !logfile_path[0] ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue