aboutsummaryrefslogtreecommitdiffstats
path: root/guts/chroot.c
blob: 5f684822aea02bfac07502b55b8f2513165f416e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* 
 * static int
 * wrap_chroot(const char *path) {
 *	int rc = -1;
 */
	pseudo_debug(2, "chroot: %s\n", path);
	if (!pseudo_client_op(OP_CHROOT, -1, -1, path, 0)) {
		pseudo_debug(1, "chroot failed: %s\n", strerror(errno));
		rc = -1;
	} else {
		rc = 0;
	}

/*	return rc;
 * }
 */