mirror of
https://github.com/starr-dusT/tzdb_to_nx
synced 2024-03-05 21:18:52 -08:00
main: Fix file creation bug
This commit is contained in:
parent
e359040558
commit
e2eec38882
@ -129,7 +129,7 @@ int main(int argc, char *argv[]) {
|
||||
f = STDOUT_FILENO;
|
||||
if (argc > 2) {
|
||||
filename = argv[2];
|
||||
f = open(filename, O_WRONLY | O_CREAT | O_TRUNC);
|
||||
f = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0664);
|
||||
|
||||
if (f == -1) {
|
||||
const int err = errno;
|
||||
|
Loading…
Reference in New Issue
Block a user