1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2025-05-31 08:31:41 +05:30

reverse-ramdisk.c: tf_alloc: use permissions

This commit is contained in:
2024-07-30 17:34:14 +03:00
parent 1c7292526e
commit 044c7b892c

View File

@@ -106,7 +106,7 @@ int tf_alloc(size_t n, size_t type_size) {
}
#if IS_POSIX
int file = open(file_path, O_RDWR | O_CREAT);
int file = open(file_path, O_RDWR | O_CREAT, 0666);
if (file == -1) {
#else
FILE* file = fopen(file_path, "w+b");