git://git.onelab.eu
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sync to 0.30.212
[util-vserver.git]
/
lib
/
getvserverbyctx.c
diff --git
a/lib/getvserverbyctx.c
b/lib/getvserverbyctx.c
index
9896ae8
..
9371f94
100644
(file)
--- a/
lib/getvserverbyctx.c
+++ b/
lib/getvserverbyctx.c
@@
-1,4
+1,4
@@
-// $Id: getvserverbyctx.c
,v 1.6 2004/03/11 04:40:29 ensc Exp
$ --*- c -*--
+// $Id: getvserverbyctx.c
2182 2005-10-25 16:20:07Z ensc
$ --*- c -*--
// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
//
// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
//
@@
-31,11
+31,21
@@
#include "getvserverbyctx-compat.hc"
#include "getvserverbyctx-v13.hc"
#include "getvserverbyctx-compat.hc"
#include "getvserverbyctx-v13.hc"
+
char *
char *
-vc_getVserverByCtx(xid_t ctx, vcCfgStyle *style, char const *revdir)
+vc_getVserverByCtx_Internal(xid_t ctx, /*@null@*/vcCfgStyle *style,
+ /*@null@*/char const *revdir,
+ bool validate_result)
{
if (vc_isSupported(vcFEATURE_MIGRATE))
{
if (vc_isSupported(vcFEATURE_MIGRATE))
- return vc_getVserverByCtx_v13(ctx, style, revdir);
+ return vc_getVserverByCtx_v13(ctx, style, revdir
, validate_result
);
else
else
- return vc_getVserverByCtx_compat(ctx, style, revdir);
+ return vc_getVserverByCtx_compat(ctx, style, revdir, validate_result);
+}
+
+char *
+vc_getVserverByCtx(xid_t ctx, vcCfgStyle *style, char const *revdir)
+{
+ return vc_getVserverByCtx_Internal(ctx, style, revdir, true);
+
}
}