added chroot

This commit is contained in:
qorg11 2020-08-12 23:54:59 +02:00
parent dfa79c963b
commit 7f4a6e2733
No known key found for this signature in database
GPG Key ID: 343FC20A4ACA62B9
1 changed files with 15 additions and 0 deletions

15
src/chroot.c Normal file
View File

@ -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]);
}