diff options
Diffstat (limited to 'ports/unix/guts/chroot.c')
-rw-r--r-- | ports/unix/guts/chroot.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ports/unix/guts/chroot.c b/ports/unix/guts/chroot.c new file mode 100644 index 0000000..c5b6f2f --- /dev/null +++ b/ports/unix/guts/chroot.c @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2010 Wind River Systems; see + * guts/COPYRIGHT for information. + * + * static int + * wrap_chroot(const char *path) { + * int rc = -1; + */ + pseudo_debug(2, "chroot: %s\n", path); + if (!pseudo_client_op(OP_CHROOT, 0, -1, -1, path, 0)) { + pseudo_debug(1, "chroot failed: %s\n", strerror(errno)); + rc = -1; + } else { + rc = 0; + } + +/* return rc; + * } + */ |