From: Eric Bollengier Date: Tue, 20 Mar 2007 22:41:08 +0000 (+0000) Subject: ebl update X-Git-Tag: Release-7.0.0~6747 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3d6b3a9b8730f22b2ed607033bddc954f17e5dbf;p=bacula%2Fbacula ebl update git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4374 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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) {