Skip to content

Commit d4985ac

Browse files
Add read and write rights to group and other when creating file
1 parent 446bc89 commit d4985ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libstd/sys/unix/fs2.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ impl OpenOptions {
159159
flags: 0,
160160
read: false,
161161
write: false,
162-
mode: libc::S_IRUSR | libc::S_IWUSR,
162+
mode: libc::S_IRUSR | libc::S_IWUSR
163+
| libc::S_IRGRP | libc::S_IWGRP
164+
| libc::S_IROTH | libc::S_IWOTH,
163165
}
164166
}
165167

0 commit comments

Comments
 (0)