X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Flib%2Fgetvserverbyctx-v13.hc;h=d9f601b6f8f35c4d7c4842d02336b45c0e21fdce;hb=a5ef4fc8e8497819176da8ecf47c445e9227c0d8;hp=7cd90a899cd64064da11ca22056cdbff3e180d66;hpb=35beb69733795db31c422711ceabde45a2163ea7;p=util-vserver.git diff --git a/util-vserver/lib/getvserverbyctx-v13.hc b/util-vserver/lib/getvserverbyctx-v13.hc index 7cd90a8..d9f601b 100644 --- a/util-vserver/lib/getvserverbyctx-v13.hc +++ b/util-vserver/lib/getvserverbyctx-v13.hc @@ -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)==ctx)) { if (style) *style = vcCFG_RECENT_FULL; return strdup(buf); }