Lines Matching refs:chrootdir
151 if(!(cfg->chrootdir = strdup(CHROOT_DIR))) goto error_exit;
258 free(cfg->chrootdir);
259 cfg->chrootdir = NULL;
414 else S_STR("chroot:", chrootdir)
691 else O_STR(opt, "chroot", chrootdir)
939 free(cfg->chrootdir);
1317 if(cfg->chrootdir && cfg->chrootdir[0] &&
1318 strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) == 0) {
1323 if(cfg->chrootdir && cfg->chrootdir[0]) {
1324 /* start with chrootdir */
1325 len += strlen(cfg->chrootdir);
1340 if(cfg->chrootdir && cfg->chrootdir[0] &&
1341 strncmp(cfg->chrootdir, cfg->directory,
1342 strlen(cfg->chrootdir)) == 0)
1343 len += strlen(cfg->directory)-strlen(cfg->chrootdir);
1364 if(cfg->chrootdir && cfg->chrootdir[0] &&
1365 strncmp(cfg->chrootdir, fname, strlen(cfg->chrootdir)) == 0) {
1372 if(cfg->chrootdir && cfg->chrootdir[0]) {
1373 /* start with chrootdir */
1374 (void)strlcpy(buf, cfg->chrootdir, len);
1390 if(cfg->chrootdir && cfg->chrootdir[0] &&
1391 strncmp(cfg->chrootdir, cfg->directory,
1392 strlen(cfg->chrootdir)) == 0)
1393 (void)strlcat(buf, cfg->directory+strlen(cfg->chrootdir),