Skip to content
Snippets Groups Projects
Commit a40243d9 authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Quanah Gibson-Mount
Browse files

ITS#6949 Save errno

parent eedd08fd
No related branches found
No related tags found
No related merge requests found
......@@ -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] ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment