X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Flib_internal%2Fmatchlist-initbyvserver.c;h=20c3d64f69d6b577ddd5777504c0246ccb78458a;hb=42b935d9f56dcb957d81bc7b6e76734ca03379b6;hp=13b28288e4256d416ecdb53ee187864fd132cb96;hpb=5269e9607d89ac4dbd34f9adb5b14fb5dfc9b1a5;p=util-vserver.git diff --git a/util-vserver/lib_internal/matchlist-initbyvserver.c b/util-vserver/lib_internal/matchlist-initbyvserver.c index 13b2828..20c3d64 100644 --- a/util-vserver/lib_internal/matchlist-initbyvserver.c +++ b/util-vserver/lib_internal/matchlist-initbyvserver.c @@ -29,16 +29,17 @@ bool -MatchList_initByVserver(struct MatchList *list, char const *vserver, +MatchList_initByVserver(struct MatchList *list, + struct MatchVserverInfo const *vserver, char const **res_appdir) { vcCfgStyle style; char const *vdir; char const *appdir; - style = vc_getVserverCfgStyle(vserver); - vdir = vc_getVserverVdir( vserver, style, true); - appdir = vc_getVserverAppDir(vserver, style, "vunify"); + style = vc_getVserverCfgStyle(vserver->name); + vdir = vc_getVserverVdir( vserver->name, style, true); + appdir = vc_getVserverAppDir(vserver->name, style, "vunify"); if (vdir==0 || appdir==0) { free((char *)appdir);