From dce51ceb6d9bd3250252e703c2b7e3ca8829019e Mon Sep 17 00:00:00 2001 From: Schaich Date: Thu, 10 Jun 2021 21:01:34 +0900 Subject: [PATCH] Use "human readable" file mode --- backend/tests/test_library.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/tests/test_library.c b/backend/tests/test_library.c index 48f8184e..ab683fe7 100644 --- a/backend/tests/test_library.c +++ b/backend/tests/test_library.c @@ -440,8 +440,8 @@ static void test_encode_file_directory(void) { assert_zero(!ret, "CreateDirectory(%s) == 0\n", dirname); #else (void)rmdir(dirname); // In case junk hanging around - ret = mkdir(dirname, 0700); - assert_zero(ret, "mkdir(%s, 0700) != 0 (%d: %s)\n", dirname, errno, strerror(errno)); + ret = mkdir(dirname, S_IRWXU); + assert_zero(ret, "mkdir(%s, S_IRWXU) != 0 (%d: %s)\n", dirname, errno, strerror(errno)); #endif ret = ZBarcode_Encode_File(symbol, dirname);