8000 minix/minix/tests/test46.c at v3.3.0 · cppfool/minix · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
348 lines (281 loc) · 10.3 KB

test46.c

File metadata and controls

348 lines (281 loc) · 10.3 KB
SET_CREDENTIALS;
res = rename("DIR_046/writetest", "DIR_046/renametest");
exit(res == 0);
}
void group_test_5() {
/* Test x bit for group access. Exit value is 1 when we were able to read from
* the directory and 0 otherwise. */
DIR *dirp = NULL;
SET_CREDENTIALS;
dirp = opendir("DIR_046/sub");
exit(dirp != NULL); /* If not NULL, we were able to access it */
}
0