(lseek(fd, 0, SEEK_SET)==-1))
return VC_NOCTX;
- BS;
+ {
char buf[len+1];
char *errptr;
xid_t res;
if (*errptr!='\0' && *errptr!='\n') return VC_NOCTX;
return res;
- BE;
+ }
}
xid_t
vc_getVserverCtx(char const *id, vcCfgStyle style, bool honor_static, bool *is_running)
{
size_t l1 = strlen(id);
- char buf[sizeof(CONFDIR "//") + l1 + sizeof("/run")];
+ char buf[sizeof(CONFDIR "//") + l1 + sizeof("/context")];
if (style==vcCFG_NONE || style==vcCFG_AUTO)
style = vc_getVserverCfgStyle(id);