diff --git a/src/common.c b/src/common.c index 234d5ec..8e30772 100644 --- a/src/common.c +++ b/src/common.c @@ -92,7 +92,7 @@ char *compose_path(ctrl_t *ctrl, char *path) strlcat(rpath, name, sizeof(rpath)); } - if (!chrooted && strncmp(dir, home, strlen(home))) { + if (!chrooted && strncmp(rpath, home, strlen(home))) { DBG("Failed non-chroot dir:%s vs home:%s", dir, home); return NULL; }