fix: open args

This commit is contained in:
tqcq 2024-10-20 14:51:23 +00:00
parent 629bf5c15c
commit 686a3664d9

View File

@ -356,7 +356,7 @@ void rev_mc(size_t sets_cnt, size_t threshold, size_t rounds, size_t m_size, cha
fprintf(stderr, "[ERROR] - Missing export file name\n"); fprintf(stderr, "[ERROR] - Missing export file name\n");
exit(1); exit(1);
} }
if((o_fd = open(o_file, O_CREAT|O_RDWR)) == -1) { if((o_fd = open(o_file, O_CREAT|O_RDWR, 0644)) == -1) {
perror("[ERROR] - Unable to create export file"); perror("[ERROR] - Unable to create export file");
exit(1); exit(1);
} }