X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fgetvserverbyctx-v13.hc;h=ad139b5fae2c159317e6776f1cd6ee9b85f7dee2;hb=95e2774070e989fe9cf9f48dae5fa054e55e2a3e;hp=faca702c18250842d1b17740dba9133ca61b6e92;hpb=3f3cf95f755f3ef1c31ad8e38153deb4ee214c66;p=util-vserver.git diff --git a/lib/getvserverbyctx-v13.hc b/lib/getvserverbyctx-v13.hc index faca702..ad139b5 100644 --- a/lib/getvserverbyctx-v13.hc +++ b/lib/getvserverbyctx-v13.hc @@ -1,4 +1,4 @@ -// $Id: getvserverbyctx-v13.hc,v 1.1 2004/03/11 04:39:59 ensc Exp $ --*- c -*-- +// $Id: getvserverbyctx-v13.hc 2589 2007-08-16 03:06:50Z dhozac $ --*- c -*-- // Copyright (C) 2004 Enrico Scholz // @@ -21,12 +21,14 @@ #endif static char * -vc_getVserverByCtx_v13(xid_t ctx, vcCfgStyle *style, char const UNUSED *revdir) +vc_getVserverByCtx_v13(xid_t ctx, vcCfgStyle *style, char const UNUSED *revdir, + bool validate_result) { char buf[128]; if (vc_get_vhi_name(ctx, vcVHI_CONTEXT, buf, sizeof buf)!=-1 && - vc_getVserverCtx(buf, vcCFG_RECENT_FULL, false, 0)==ctx) { + (!validate_result || + vc_getVserverCtx(buf, vcCFG_RECENT_FULL, false, 0, vcCTX_XID)==ctx)) { if (style) *style = vcCFG_RECENT_FULL; return strdup(buf); }