X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fgetvserverbyctx-compat.hc;h=ac6076b0fe08f495cf67f16bca282018e173ae6f;hb=a741f6faf2baae1e823d334012f6a09e6a1bda51;hp=4c63738a4287f2e4bfa422a1905206d2be6d1c32;hpb=426a0d3a38995dc25a839aaa56d8642e6bdcbba5;p=util-vserver.git diff --git a/lib/getvserverbyctx-compat.hc b/lib/getvserverbyctx-compat.hc index 4c63738..ac6076b 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 2596 2007-08-25 16:56:12Z dhozac $ --*- c -*-- // Copyright (C) 2003 Enrico Scholz // @@ -48,7 +48,7 @@ handleLegacy(xid_t xid) if (l<=4 || strcmp(name+l-4, ".ctx")!=0) continue; name[l-4] = '\0'; - cur_xid = vc_getVserverCtx(name, vcCFG_LEGACY, false, 0); + cur_xid = vc_getVserverCtx(name, vcCFG_LEGACY, false, 0, vcCTX_XID); if (cur_xid!=xid) continue; result = strdup(name); @@ -96,7 +96,7 @@ vc_getVserverByCtx_compat(xid_t ctx, vcCfgStyle *style, char const *revdir, // 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; + vc_getVserverCtx(path, vcCFG_RECENT_FULL, false, 0, vcCTX_XID)!=ctx) return 0; if (style) *style = vcCFG_RECENT_FULL; return strdup(path);