From 0d5cfeec924c0802d99af2ff7670a04d9c12b1c5 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Mon, 2 Feb 2015 15:47:23 +0000 Subject: [PATCH] tests: We can no longer open /bin/sh r/w due to PM for flock * Use /etc/passwd --- src/tests/system/libroot/posix/flock_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;