ITS#6949 Save errno

This commit is contained in:
Ondřej Kuzník 2021-09-08 14:20:31 +01:00 committed by Quanah Gibson-Mount
parent 2abbf6781d
commit dc6b6276fc

View File

@ -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] ) {