[PATCH] fnmatch patch
Rob Landley
rob at landley.net
Tue Jun 20 21:46:11 UTC 2006
On Tuesday 20 June 2006 3:54 pm, Bernhard Fischer wrote:
> On Tue, Jun 20, 2006 at 03:54:22PM -0400, Rich Felker wrote:
> >On Tue, Jun 20, 2006 at 03:28:47PM -0400, Robert P. J. Day wrote:
> >> i had submitted this once upon a time to deal with an inconsistency
> >> in tar filenames. should it still be applied?
> >>
> >> rday
> >> diff -pru busybox/archival/libunarchive/find_list_entry.c
> >> busybox.new/archival/libunarchive/find_list_entry.c ---
> >> busybox/archival/libunarchive/find_list_entry.c 2006-04-13
> >> 09:35:19.000000000 -0400 +++
> >> busybox.new/archival/libunarchive/find_list_entry.c 2006-04-13
> >> 10:50:36.000000000 -0400 @@ -13,7 +13,7 @@
> >> const llist_t *find_list_entry(const llist_t *list, const char
> >> *filename) {
> >> while (list) {
> >> - if (fnmatch(list->data, filename, 0) == 0) {
> >> + if (fnmatch(list->data, filename, FNM_LEADING_DIR) == 0) {
> >
> >FNM_LEADING_DIR is a gnu extension. Can you provide equivalent
> >functionality in the case where it's not defined?
>
> See platform.h; TODO. Takers?
I don't actually see this in TODO. Is it in there, or just a comment in
platform.h?
Rob
--
Never bet against the cheap plastic solution.
More information about the busybox
mailing list