mirror of
https://github.com/troglobit/libite.git
synced 2026-10-01 21:42:28 +07:00
20 lines
304 B
C
20 lines
304 B
C
#include "check.h"
|
|
|
|
int main(void)
|
|
{
|
|
int result = 0;
|
|
size_t i;
|
|
struct { char *path; int fail; } arr[] = {
|
|
{ "/etc/passwd", -1 },
|
|
{ "/dev", 0 },
|
|
{ "/sbin", 0 },
|
|
};
|
|
|
|
for (i = 0; i < NELEMS(arr); i++) {
|
|
if (tree(arr[i].path, 1) != arr[i].fail)
|
|
result++;
|
|
}
|
|
|
|
return result;
|
|
}
|