diff --git a/src/tests/system/libroot/posix/flock_test.cpp b/src/tests/system/libroot/posix/flock_test.cpp index 9eeaa83227..50acf255dc 100644 --- a/src/tests/system/libroot/posix/flock_test.cpp +++ b/src/tests/system/libroot/posix/flock_test.cpp @@ -61,7 +61,7 @@ try_to_lock(void *_fd) int main(int argc, char **argv) { - intptr_t fd = open("/bin/sh", O_RDONLY); + intptr_t fd = open("/etc/passwd", O_RDONLY); if (fd < 0) { fprintf(stderr, "could not open file: %s\n", strerror(errno)); return -1; @@ -92,7 +92,7 @@ main(int argc, char **argv) close(fd); - fd = open("/bin/sh", O_RDWR); + fd = open("/etc/passwd", O_RDWR); if (fd < 0) { fprintf(stderr, "could not open file: %s\n", strerror(errno)); return -1;