hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit cb2477b032438a3f8a5f67773427f4a653d16eaf
parent 4e3586a1475f418ca7561ab79f160f112767dfc7
Author: Alexey Yerin <yyp@disroot.org>
Date:   Thu, 21 Sep 2023 14:03:38 +0300

os+freebsd: Do not invert CLOEXEC/CTTY twice

It's already inverted in fsflags_to_bsd and shouldn't be inverted once again in
open or create.

Signed-off-by: Alexey Yerin <yyp@disroot.org>

Diffstat:
Mos/+freebsd/dirfdfs.ha | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/os/+freebsd/dirfdfs.ha b/os/+freebsd/dirfdfs.ha @@ -174,7 +174,6 @@ fn fs_open_file( for (let i = 0z; i < len(flags); i += 1z) { oflags |= flags[i]; }; - oflags ^= fs::flag::CTTY | fs::flag::NOCLOEXEC; // invert NOCTTY/CLOEXEC return _fs_open(fs, path, fsflags_to_bsd(oflags), 0); }; @@ -197,7 +196,6 @@ fn fs_create_file( for (let i = 0z; i < len(flags); i += 1z) { oflags |= flags[i]; }; - oflags ^= fs::flag::CTTY | fs::flag::NOCLOEXEC; // invert NOCTTY/CLOEXEC oflags |= fs::flag::CREATE; return _fs_open(fs, path, fsflags_to_bsd(oflags), mode)?; };