Commit dc6b6276 authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Quanah Gibson-Mount
Browse files

ITS#6949 Save errno

parent 2abbf678
......@@ -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] ) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment