ape: provide bogus chroot implementation

This commit is contained in:
spew 2018-06-20 22:19:37 -04:00
parent 8dd003eb04
commit 3b376b43af
3 changed files with 11 additions and 0 deletions

View file

@ -121,6 +121,7 @@ extern pid_t setsid(void);
/* files and directories */
extern int chdir(const char *);
extern int chroot(const char *);
extern int link(const char *, const char *);
extern char *getcwd(char *, size_t);
extern int unlink(const char *);

View file

@ -0,0 +1,9 @@
#include <unistd.h>
#include <errno.h>
int
chroot(const char*)
{
errno = EIO;
return -1;
}

View file

@ -22,6 +22,7 @@ OFILES=\
brk.$O\
cfgetospeed.$O\
chdir.$O\
chroot.$O\
chmod.$O\
chown.$O\
close.$O\