summaryrefslogtreecommitdiffstats
path: root/old-tests/regex/matcher_t.c
diff options
context:
space:
mode:
authorJoe Thornber <thornber@redhat.com>2001-10-19 18:20:37 +0000
committerJoe Thornber <thornber@redhat.com>2001-10-19 18:20:37 +0000
commit291ec3b6c0cc22e368534075310c1d8c868ed826 (patch)
tree8e3ce7d1a8ae1f41adf05fb726306d3044054114 /old-tests/regex/matcher_t.c
parentd1b28647ed4d17d22155a9da061a551572c39d2b (diff)
downloadlvm2-291ec3b6c0cc22e368534075310c1d8c868ed826.tar.gz
lvm2-291ec3b6c0cc22e368534075310c1d8c868ed826.tar.xz
lvm2-291ec3b6c0cc22e368534075310c1d8c868ed826.zip
o Filter for the dev cache that takes values from config file:
devices { # first match is final, eg. /dev/ide/cdrom # get's rejected due to the first pattern filter=["r/cdrom/", # don't touch the music ! "a/hd[a-d][0-9]+/", "a/ide/", "a/sd/", "a/md/", "a|loop/[0-9]+|", # accept devfs style loop back "r/loop/", # and reject old style "a/dasd/", "a/dac960/", "a/nbd/", "a/ida/", "a/cciss/", "a/ubd/", "r/.*/"] # reject all others } Alasdair this is ready to roll into the tools now.
Diffstat (limited to 'old-tests/regex/matcher_t.c')
-rw-r--r--old-tests/regex/matcher_t.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/old-tests/regex/matcher_t.c b/old-tests/regex/matcher_t.c
index 00deea94..6b8b24d8 100644
--- a/old-tests/regex/matcher_t.c
+++ b/old-tests/regex/matcher_t.c
@@ -87,7 +87,7 @@ static void _scan_input(struct matcher *m, char **regex)
if ((ptr = strchr(buffer, '\n')))
*ptr = '\0';
- r = matcher_run(m, buffer, buffer + strlen(buffer));
+ r = matcher_run(m, buffer);
if (r >= 0)
printf("%s : %s\n", buffer, regex[r]);