This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: fnmatch() behaves oddly with *s and FNM_LEADING_DIR


Paul Eggert <eggert@twinsun.com> writes:

> The glibc 2.1.3 manual documents FNM_LEADING_DIR to behave the way
> that GNU tar uses it.  Has it been withdrawn recently?  If so, why?
> GNU tar has been using that flag ever since it was added to glibc in 1992.

Tar is probably using it the way it is intended.  But look at the
implementation and you'll see that it handles only a few cases.
Making it general usable (which is not necessary in the first place
IMO) only slows down normal use.  Not changing anything is therefore
also in the best interest of tar.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]