about summary refs log tree commit diff
path: root/library/std/src/sys
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-24 01:22:06 +0100
committerGitHub <noreply@github.com>2023-03-24 01:22:06 +0100
commitcca2630bc9879c844e6891d68c38ee5627e4d9c7 (patch)
treee7cda75d6d9756915a5fdf97b60795d52348b0ab /library/std/src/sys
parent605a4fc7ab82c318dbacbc907286d4cc9a48228a (diff)
parent05542d9c67c9eee11ac85255d0abf18a4cba94b6 (diff)
downloadrust-cca2630bc9879c844e6891d68c38ee5627e4d9c7.tar.gz
rust-cca2630bc9879c844e6891d68c38ee5627e4d9c7.zip
Rollup merge of #109368 - hermitcore:typo, r=cuviper
fix typo in the creation of OpenOption for RustyHermit

Due to this typo we have to build a workaround for issue hermitcore/libhermit-rs#191.

RustyHermit is a tier 3 platform and backward compatibility does not have to be guaranteed.
Diffstat (limited to 'library/std/src/sys')
-rw-r--r--library/std/src/sys/hermit/fs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/hermit/fs.rs b/library/std/src/sys/hermit/fs.rs
index c966f217757..cf0b271761f 100644
--- a/library/std/src/sys/hermit/fs.rs
+++ b/library/std/src/sys/hermit/fs.rs
@@ -202,7 +202,7 @@ impl OpenOptions {
             create: false,
             create_new: false,
             // system-specific
-            mode: 0x777,
+            mode: 0o777,
         }
     }