mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Use "human readable" file mode
This commit is contained in:
parent
afea0ad2c3
commit
dce51ceb6d
@ -440,8 +440,8 @@ static void test_encode_file_directory(void) {
|
|||||||
assert_zero(!ret, "CreateDirectory(%s) == 0\n", dirname);
|
assert_zero(!ret, "CreateDirectory(%s) == 0\n", dirname);
|
||||||
#else
|
#else
|
||||||
(void)rmdir(dirname); // In case junk hanging around
|
(void)rmdir(dirname); // In case junk hanging around
|
||||||
ret = mkdir(dirname, 0700);
|
ret = mkdir(dirname, S_IRWXU);
|
||||||
assert_zero(ret, "mkdir(%s, 0700) != 0 (%d: %s)\n", dirname, errno, strerror(errno));
|
assert_zero(ret, "mkdir(%s, S_IRWXU) != 0 (%d: %s)\n", dirname, errno, strerror(errno));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ret = ZBarcode_Encode_File(symbol, dirname);
|
ret = ZBarcode_Encode_File(symbol, dirname);
|
||||||
|
Loading…
Reference in New Issue
Block a user