Lines Matching defs:rootdir
866 char *motd, *dir, rootdir[PATH_MAX];
1004 snprintf(rootdir, sizeof(rootdir), "%s/%s",
1006 if (stat(rootdir, &ts) == -1) {
1007 snprintf(rootdir, sizeof(rootdir), "%s/%s",
1011 strlcpy(rootdir, pw->pw_dir, sizeof(rootdir));
1019 if (chroot(rootdir) == -1 || chdir("/") == -1) {
1029 if (chroot(rootdir) == -1 || chdir("/") == -1) {