[ZBX-3747] Always print error number in strerror_from_module and strerror_from_system Created: 2011 Apr 20  Updated: 2017 May 30  Resolved: 2011 May 12

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Proxy (P), Server (S)
Affects Version/s: None
Fix Version/s: 1.8.6, 1.9.4 (alpha)

Type: Incident report Priority: Major
Reporter: Rudolfs Kreicbergs Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Currently only the message is returned, causing problems when debugging logs from different languages



 Comments   
Comment by Rudolfs Kreicbergs [ 2011 May 05 ]

Fixed/available in dev branch: svn://svn.zabbix.com/branches/dev/ZBX-3747
Fixed include:
>added error codes to strerror_from_system(), strerror_from_module() and replaced strerror() with zbx_strerror() which also has the error code in output
>replaced vsnprintf() calls zbx_svnprintf() calls which defines to vsnprintf_s() for Windows
>replaced strcpy() calls with zbx_strlcpy() calls
>no compiler warnings for Win32

Comment by Rudolfs Kreicbergs [ 2011 May 12 ]

Fixed/available in pre-1.8.6 r19527 and pre-1.9.4 r19531.

Generated at Sat Apr 27 06:39:15 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.