about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorGuillaumeGomez <guillaume1.gomez@gmail.com>2015-02-11 19:38:57 +0100
committerGuillaumeGomez <guillaume1.gomez@gmail.com>2015-02-11 19:38:57 +0100
commitd4985accb7ab03d1d08945a77b535bfeaf03186c (patch)
treebfd6b21916cdeb567248571208cbf0778fea00cf /src/libstd/sys
parent446bc899b28e988f4252beca0d1858e7f7d866b1 (diff)
downloadrust-d4985accb7ab03d1d08945a77b535bfeaf03186c.tar.gz
rust-d4985accb7ab03d1d08945a77b535bfeaf03186c.zip
Add read and write rights to group and other when creating file
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/unix/fs2.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstd/sys/unix/fs2.rs b/src/libstd/sys/unix/fs2.rs
index 070b3248349..06e59640b95 100644
--- a/src/libstd/sys/unix/fs2.rs
+++ b/src/libstd/sys/unix/fs2.rs
@@ -159,7 +159,9 @@ impl OpenOptions {
             flags: 0,
             read: false,
             write: false,
-            mode: libc::S_IRUSR | libc::S_IWUSR,
+            mode: libc::S_IRUSR | libc::S_IWUSR
+                | libc::S_IRGRP | libc::S_IWGRP
+                | libc::S_IROTH | libc::S_IWOTH,
         }
     }