source: MondoRescue/branches/stable/mindi-busybox/archival/libunarchive/find_list_entry.c@ 821

Last change on this file since 821 was 821, checked in by Bruno Cornec, 18 years ago

Addition of busybox 1.2.1 as a mindi-busybox new package
This should avoid delivering binary files in mindi not built there (Fedora and Debian are quite serious about that)

File size: 452 bytes
Line 
1/* vi: set sw=4 ts=4: */
2/*
3 * Copyright (C) 2002 by Glenn McGrath
4 *
5 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
6 */
7
8#include <fnmatch.h>
9#include <stdlib.h>
10#include "unarchive.h"
11
12/* Find a string in a list */
13const llist_t *find_list_entry(const llist_t *list, const char *filename)
14{
15 while (list) {
16 if (fnmatch(list->data, filename, 0) == 0) {
17 return (list);
18 }
19 list = list->link;
20 }
21 return(NULL);
22}
Note: See TracBrowser for help on using the repository browser.