X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fsrc%2Fvunify.c;h=4dd8edfa3cd068fa78436b96130d3e4f7a9f7166;hb=a917f24ef7b003dcef54a3db2644cf9cb4bc2db2;hp=f5f1ed1f312e3aed6d955a51d39f91c0d2710372;hpb=d1f6700736a2d4a29515e883ddd741b0580ec066;p=util-vserver.git 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