k9core

Unnamed repository
Log | Files | Refs | LICENSE

commit 7f4a6e2733a3fb90269519a4d122a87aa3737570
parent dfa79c963b87b691c42066d8578b4f5e7c019a87
Author: qorg11 <qorg@vxempire.xyz>
Date:   Wed, 12 Aug 2020 23:54:59 +0200

added chroot

Diffstat:
Asrc/chroot.c | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/src/chroot.c b/src/chroot.c @@ -0,0 +1,15 @@ +#include <stdio.h> +#include <unistd.h> + +/* UNTESTED */ + +int +main(int argc, char *argv[]) +{ + if(argc == 1) + { + fprintf(stderr,"Missing operand\n"); + return 1; + } + chroot(argv[1]); +}