Watch
1
0
Fork
You've already forked RedFlag
0

helper: cast openat mode for darwin

mode_t is u16 on macOS and a variadic argument promotes to at least c_uint, so aarch64-apple-darwin failed E0617 while every Linux target built clean.

The cast is a no-op where mode_t is already u32.
This commit is contained in:
Fimeg 2026-09-03 18:49:08 -04:00
commit 1b307b08eb

View file

@ -885,7 +885,7 @@ fn open_agent_exchange_file(
directory.as_raw_fd(), directory.as_raw_fd(),
name.as_ptr(), name.as_ptr(),
flags | libc::O_NOFOLLOW | libc::O_CLOEXEC, flags | libc::O_NOFOLLOW | libc::O_CLOEXEC,
mode, mode as libc::c_uint,
) )
}; };
if descriptor < 0 { if descriptor < 0 {