X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Frpm-fake.c;h=d41e18135761f73371ab915751508cc1562403bc;hb=1cf33b33576848a1da7f3d43792e56f1c702459d;hp=380bf0722283ee5716445b03c68b34dbf43c0bc3;hpb=eea3d83e4d401f0a214721bf0438a484cbe5dd68;p=util-vserver.git diff --git a/src/rpm-fake.c b/src/rpm-fake.c index 380bf07..d41e181 100644 --- a/src/rpm-fake.c +++ b/src/rpm-fake.c @@ -245,9 +245,9 @@ setupContext(xid_t xid, char const **xid_str) xid_t rc=VC_NOCTX; if ((xid==VC_DYNAMIC_XID || !vc_is_dynamic_xid(xid)) && - (rc=vc_ctx_create(xid))==VC_NOCTX && + (rc=vc_ctx_create(xid, NULL))==VC_NOCTX && errno!=EEXIST) { - perror(ENSC_WRAPPERS_PREFIX "vc_create_context()"); + perror(ENSC_WRAPPERS_PREFIX "vc_ctx_create()"); exit(255); } @@ -595,7 +595,7 @@ execvWorker(char const *path, char * const argv[], char * const envp[]) int res = -1; if (vc_isSupported(vcFEATURE_MIGRATE)) - res = vc_ctx_migrate(ctx); + res = vc_ctx_migrate(ctx, 0); else { #ifdef VC_ENABLE_API_COMPAT res = vc_new_s_context(ctx,caps,flags);