Fix write-out file permissions

This commit is contained in:
K. Lange 2018-07-17 16:27:16 +09:00
parent 689f94f889
commit 338c3bc11c
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
#include <stdio.h>
int main(int argc, char * argv[]) {
int fd = open(argv[1], O_WRONLY | O_CREAT);
int fd = open(argv[1], O_WRONLY | O_CREAT, 0666);
while (1) {
char buf[1024];