From: Enrico Scholz Date: Wed, 23 Mar 2005 02:05:23 +0000 (+0000) Subject: fixed initialization of 'vserver' X-Git-Tag: IPSENTINEL_VERSION_0_12~32 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66dd3cbfcc1ce8d2d4b92d92ec29f3bc989ede29;p=util-vserver.git fixed initialization of 'vserver' git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1962 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/lib_internal/matchlist-initrefserverlist.c b/util-vserver/lib_internal/matchlist-initrefserverlist.c index 2656671..5ed9997 100644 --- a/util-vserver/lib_internal/matchlist-initrefserverlist.c +++ b/util-vserver/lib_internal/matchlist-initrefserverlist.c @@ -69,14 +69,14 @@ MatchList_initRefserverList(struct MatchList **lst, size_t *cnt, .use_pkgmgmt = true }; + memcpy(vname, "./", 2); + memcpy(vname+2, tmp, l+1); + if (!MatchVserverInfo_init(&vserver)) { WRITE_MSG(2, "failed to initialize unification of reference vserver\n"); exit(1); } - memcpy(vname, "./", 2); - memcpy(vname+2, tmp, l+1); - if (!MatchList_initByVserver((*lst)+i, &vserver)) { WRITE_MSG(2, "unification for reference vserver not configured\n"); exit(1);