Skip to content

Commit 157bcec

Browse files
committed
Auto merge of #2646 - atopia:uclibc-constants, r=Amanieu
add O_NOFOLLOW flag to uclibc This is needed by the fix for CVE-2022-21658 in the standard library.
2 parents 3dd6150 + df9df78 commit 157bcec

File tree

1 file changed

+1
-0
lines changed
  • src/unix/linux_like/linux/uclibc/x86_64

1 file changed

+1
-0
lines changed

src/unix/linux_like/linux/uclibc/x86_64/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ pub const O_CLOEXEC: ::c_int = 0x80000;
317317
pub const O_CREAT: ::c_int = 0100;
318318
pub const O_DIRECTORY: ::c_int = 0200000;
319319
pub const O_EXCL: ::c_int = 0200;
320+
pub const O_NOFOLLOW: ::c_int = 0x20000;
320321
pub const O_NONBLOCK: ::c_int = 04000;
321322
pub const O_TRUNC: ::c_int = 01000;
322323
pub const NCCS: usize = 32;

0 commit comments

Comments
 (0)