0
1
mirror of https://github.com/termux/proot.git synced 2024-09-22 08:31:06 +00:00
proot/tests/test-44444444.c
2016-08-21 07:42:00 -04: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);
}