buggrep - Bugs: bug #12187, old lib/error.c garbles error...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #12187: old lib/error.c garbles error messages on some systems

Submitted by:  None
Submitted on:  Wed 02 Mar 2005 03:22:48 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri 04 Dec 2009 07:31:38 PM UTC, comment #1:

Fixed by gnulibification.

Thank you for the bug report. This bug has been fixed in the
development sources, which can be downloaded using git from
git://git.sv.gnu.org/grep.git

Paolo Bonzini <bonzini>
Wed 02 Mar 2005 03:22:48 AM UTC, original submission:

lib/error.c contains old configuration checks for strerror_r, and it assumes that strerror_r should return char*, while now the standard is to return int.

This conjunction can cause a conflict with the strerror_r provided by the host, and error messages printed through the error() function can get garbled, because the return value of strerror_r is passed to printf to fill a %s.

The quick solution is to remove references to lib/error.c and lib/error.h in the package, and use the functions already available in the system.

A better solution for the long term would be to fix the configure script and update from gnulib.

Claudio

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bonzini (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 04 Dec 2009 07:31:38 PM UTCbonziniOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1