Skip to content
Snippets Groups Projects
Commit 30391a1f authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Upon timeout opening a file, log the last errno value too

It should be either EACCESS or EAGAIN, but still, could be useful to know.
parent d4966806
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -169,8 +169,8 @@ int SMBCALL smb_open_fp(smb_t* smb, FILE** fp, int share)
else
if(time(NULL)-start>=(time_t)smb->retry_time) {
safe_snprintf(smb->last_error,sizeof(smb->last_error)
,"%s timeout opening %s (retry_time=%lu)", __FUNCTION__
,path, (ulong)smb->retry_time);
,"%s timeout opening %s (errno=%d, retry_time=%lu)", __FUNCTION__
,path, get_errno(), (ulong)smb->retry_time);
return(SMB_ERR_TIMEOUT);
}
SLEEP(smb->retry_delay);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment