1
0
mirror of https://github.com/proot-me/proot.git synced 2024-11-23 17:06:18 +00:00
proot/test/test-44444444.c
2019-12-19 15:37:02 -05:00

22 lines
345 B
C

#include <unistd.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char buffer[2 * PATH_MAX];
if (!getcwd(buffer, sizeof(buffer))) {
perror("getcwd");
exit(EXIT_FAILURE);
}
if (readlink("/bin/abs-true", buffer, sizeof(buffer)) < 0) {
perror("readlink");
exit(EXIT_FAILURE);
}
exit(EXIT_SUCCESS);
}