aboutsummaryrefslogtreecommitdiffstats
path: root/guts/chroot.c
diff options
context:
space:
mode:
Diffstat (limited to 'guts/chroot.c')
-rw-r--r--guts/chroot.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/guts/chroot.c b/guts/chroot.c
new file mode 100644
index 0000000..5f68482
--- /dev/null
+++ b/guts/chroot.c
@@ -0,0 +1,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;
+ * }
+ */