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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user