X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2Frpm-fake.c;fp=src%2Frpm-fake.c;h=5fc140aeda6fc8fc0063cbebf74f4fe8164db28c;hb=ec4370f7ebd7fb0ce7f002f5bf2c74f03acd3ec1;hp=619dfadf9773d75598e08523fd90b953d73d1968;hpb=9234e6a7cb48373edec38284ba54a819037b79b2;p=util-vserver.git diff --git a/src/rpm-fake.c b/src/rpm-fake.c index 619dfad..5fc140a 100644 --- a/src/rpm-fake.c +++ b/src/rpm-fake.c @@ -1,4 +1,4 @@ -// $Id: rpm-fake.c,v 1.32 2005/07/03 12:26:28 ensc Exp $ --*- c++ -*-- +// $Id: rpm-fake.c 2501 2007-02-20 17:33:35Z dhozac $ --*- c++ -*-- // Copyright (C) 2003 Enrico Scholz // @@ -66,10 +66,6 @@ int rpm_execcon(unsigned int verified, #undef _POSIX_SOURCE #include "capability-compat.h" -#ifndef CLONE_NEWNS -# define CLONE_NEWNS 0x00020000 -#endif - #define LIBNAME "rpm-fake.so" #define PLATFORM_FILE "/etc/rpm/platform" @@ -251,7 +247,7 @@ setupContext(xid_t xid, char const **xid_str) if ((xid==VC_DYNAMIC_XID || !vc_is_dynamic_xid(xid)) && (rc=vc_ctx_create(xid))==VC_NOCTX && errno!=EEXIST) { - perror(ENSC_WRAPPERS_PREFIX "vc_create_context()"); + perror(ENSC_WRAPPERS_PREFIX "vc_ctx_create()"); exit(255); } @@ -599,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);