From 6033d3e5a8b06574ed93598552d3038f1b1cbcd4 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Tue, 6 Apr 2004 08:47:30 +0000 Subject: [PATCH] applied new MatchList_compare() interface git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1428 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/src/vunify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util-vserver/src/vunify.c b/util-vserver/src/vunify.c index f5f1ed1..4dd8edf 100644 --- a/util-vserver/src/vunify.c +++ b/util-vserver/src/vunify.c @@ -169,7 +169,7 @@ checkDirEntry(PathInfo const *path, // abort when it is not matching an allowed entry skip_reason.r = rsEXCL_DST; skip_reason.d.list = &info->dst_list; - if (!MatchList_compare(&info->dst_list, path->d)) return 0; + if (MatchList_compare(&info->dst_list, path->d)!=stINCLUDE) return 0; // Now, go through the reference vservers and do the lightweigt list-check // first and compare then the fstat's. @@ -177,7 +177,7 @@ checkDirEntry(PathInfo const *path, cache_stat = 0; skip_reason.r = rsEXCL_SRC; skip_reason.d.list = mlist; - if (MatchList_compare(mlist, path->d) && + if (MatchList_compare(mlist, path->d)==stINCLUDE && checkFstat(mlist, d_path, path, &cache_stat, dst_stat, src_stat)) { // Failed the check or is it a symlink which can not be handled -- 1.8.1.5