From 3d6b3a9b8730f22b2ed607033bddc954f17e5dbf Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 20 Mar 2007 22:41:08 +0000 Subject: [PATCH] ebl update git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4374 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/patches/testing/breg.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bacula/patches/testing/breg.c b/bacula/patches/testing/breg.c index 261424fd4c..88449991ed 100644 --- a/bacula/patches/testing/breg.c +++ b/bacula/patches/testing/breg.c @@ -99,6 +99,17 @@ void free_bregexps(alist *bregexps) } } +char *apply_bregexps(const char *fname, alist *bregexps) +{ + BREGEXP *elt; + char *ret = (char *) fname; + foreach_alist(elt, bregexps) { + ret = elt->replace(ret); + } + return ret; +} + + bool BREGEXP::extract_regexp(const char *motif) { -- 2.39.5