service is non optional
This commit is contained in:
@@ -352,10 +352,7 @@ common_path_init(const char *service,
|
|||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
s->fd = -1;
|
s->fd = -1;
|
||||||
|
|
||||||
if (service[0] == '\0')
|
asprintf(&s->path, "/var/run/.heim_%s-%s", service, file);
|
||||||
asprintf(&s->path, "/var/run/.heim_%s", file);
|
|
||||||
else
|
|
||||||
s->path = strdup(service);
|
|
||||||
|
|
||||||
*ctx = s;
|
*ctx = s;
|
||||||
|
|
||||||
@@ -404,7 +401,7 @@ static int
|
|||||||
door_init(const char *service,
|
door_init(const char *service,
|
||||||
void **ctx)
|
void **ctx)
|
||||||
{
|
{
|
||||||
ret = common_path_init(context, service, name, "door", ctx);
|
ret = common_path_init(context, service, "door", ctx);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
ret = connect_door(*ctx);
|
ret = connect_door(*ctx);
|
||||||
|
Reference in New Issue
Block a user