Use GT_RUNDIR for local sockets

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2018-03-14 07:06:25 +00:00
parent 66cdcf2ee3
commit b0a589b792
5 changed files with 9 additions and 5 deletions

View File

@@ -127,7 +127,7 @@ gt_set(int argc, char **argv)
if (argz(pathz, argc, argv))
return 1;
int fd = ctl_connect("/run/" PACKAGE_NAME, dev);
int fd = ctl_connect(GT_RUNDIR, dev);
if (fd == -1) {
perror("set");