[PATCH] fnmatch patch
Bernhard Fischer
rep.nop at aon.at
Tue Jun 20 19:54:56 UTC 2006
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?
More information about the busybox
mailing list