[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#264887: marked as done (GLOB_APPEND ignored by glob() in at least one place)

Your message dated Mon, 16 Apr 2007 01:32:44 +0200 (CEST)
with message-id <20070415233244.4C6AE93B4@madism.org>
and subject line no news from submitter
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libc6
Version: 2.3.2.ds1-13
Tags: patch

When the GLOB_APPEND flag is passed to glob(), the call is supposed to
tack new results on to the ones already represented in the glob_t passed
in.  If there is an error, partial results may be added, but the
original glob_t should definitely be left alone.

This is not respected in at least one part of glibc's glob
implementation.  In this particular place, globfree() is called on the
glob_t regardless of the flags passed.  Since glob() is implemented
recursively with GLOB_APPEND added to the flags, this can affect the
results returned even from a call where GLOB_APPEND is not set.

The following patch fixes the one instance of this behavior I found.

Attachment: glob-respect-append.dpatch
Description: application/shellscript

--- End Message ---
--- Begin Message ---
+ no testcase + recent rewrite of significant portions of the code


--- End Message ---

Reply to: