pushing to dev

This commit is contained in:
2018-02-18 12:51:10 -08:00
parent d62a8d3f0e
commit 9b69088b35
6 changed files with 8 additions and 5 deletions

View File

@@ -39,7 +39,9 @@ int main(int argc, char **argv)
close(out_fd);
}
out_fd = open(optarg, O_WRONLY | O_CREAT | O_TRUNC);
out_fd = open(optarg,
O_WRONLY | O_CREAT | O_TRUNC,
S_IRUSR | S_IWUSR);
if (out_fd < 0) {
fprintf(stderr, "failed to open output file %s\n", optarg);
exit(1);