Bug 401087 - TCF agent errno_to_str() does not work correctly with POSIX errnos
Summary: TCF agent errno_to_str() does not work correctly with POSIX errnos
Status: RESOLVED FIXED
Alias: None
Product: TCF
Classification: Tools
Component: Agent (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 1.1   Edit
Assignee: Didier Brachet CLA
QA Contact: Eugene Tarassov CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-18 09:26 EST by Didier Brachet CLA
Modified: 2013-06-05 04:40 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Didier Brachet CLA 2013-02-18 09:26:50 EST
Build Identifier: 

Calling errno_to_str() does not work correctly with POSIX errnos; it will always return a NULL string. This is related to the latest changes done in tcf/framework/errors.c file.

Reproducible: Always

Steps to Reproduce:
Observe the posix_strerror() function source code and you will see that if a posix errno is set, we return an unitialized buffer (buf) instead of the result of strerror() call.
Comment 1 Didier Brachet CLA 2013-02-18 09:42:03 EST
Fixed posix_strerror() routine to correctly return error string.