[uClibc 0004314]: glob() fails to reset errno
bugs at busybox.net
bugs at busybox.net
Thu Jul 24 10:41:31 UTC 2008
The following issue has been SUBMITTED.
======================================================================
http://busybox.net/bugs/view.php?id=4314
======================================================================
Reported By: mpfj
Assigned To: uClibc
======================================================================
Project: uClibc
Issue ID: 4314
Category: Architecture Specific
Reproducibility: always
Severity: major
Priority: normal
Status: assigned
======================================================================
Date Submitted: 07-24-2008 03:41 PDT
Last Modified: 07-24-2008 03:41 PDT
======================================================================
Summary: glob() fails to reset errno
Description:
My setup is as follows:-
Atmel AVR32 NGW100 dev kit
buildroot (using uclibc 0.9.29)
The problem:-
The glob() function appears to get confused by any existing errno value,
rather than resetting it back to 0 and generating its own error value.
The attached code demonstrates the problem.
If the line "errno = 0;" is removed, then glob() appears to fail.
In fact, if errno is set to anything other than 0, then glob() returns
with error 2.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
07-24-08 03:41 mpfj New Issue
07-24-08 03:41 mpfj Status new => assigned
07-24-08 03:41 mpfj Assigned To => uClibc
07-24-08 03:41 mpfj File Added: globtest.c
======================================================================
More information about the uClibc-cvs
mailing list