X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fgetvserverbyctx-compat.hc;fp=lib%2Fgetvserverbyctx-compat.hc;h=66acfa3886f30cdc03d2e2b6de823cdc323cee14;hb=2822ba293eb308225c50d346930c47bf98d9927b;hp=4c63738a4287f2e4bfa422a1905206d2be6d1c32;hpb=2894fc5a4c8335e4d7221311fed0556f33f8047c;p=util-vserver.git diff --git a/lib/getvserverbyctx-compat.hc b/lib/getvserverbyctx-compat.hc index 4c63738..66acfa3 100644 --- a/lib/getvserverbyctx-compat.hc +++ b/lib/getvserverbyctx-compat.hc @@ -1,4 +1,4 @@ -// $Id: getvserverbyctx-compat.hc 2182 2005-10-25 16:20:07Z ensc $ --*- c -*-- +// $Id: getvserverbyctx-compat.hc,v 1.3 2004/06/27 13:01:28 ensc Exp $ --*- c -*-- // Copyright (C) 2003 Enrico Scholz // @@ -67,8 +67,7 @@ handleLegacy(xid_t UNUSED xid) #endif static char * -vc_getVserverByCtx_compat(xid_t ctx, vcCfgStyle *style, char const *revdir, - bool validate_result) +vc_getVserverByCtx_compat(xid_t ctx, vcCfgStyle *style, char const *revdir) { if (revdir==0) revdir = DEFAULT_PKGSTATEREVDIR; @@ -93,10 +92,8 @@ vc_getVserverByCtx_compat(xid_t ctx, vcCfgStyle *style, char const *revdir, switch (cur_style) { case vcCFG_RECENT_SHORT : case vcCFG_RECENT_FULL : - // check if expected ctx == actual ctx (but only when this check is - // request) - if (validate_result && - vc_getVserverCtx(path, vcCFG_RECENT_FULL, false, 0)!=ctx) return 0; + // check if expected ctx == actual ctx + if (vc_getVserverCtx(path, vcCFG_RECENT_FULL, false, 0)!=ctx) return 0; if (style) *style = vcCFG_RECENT_FULL; return strdup(path);