Skip to content

Commit

Permalink
Auto merge of rust-lang#2654 - anp:fuchsia-dt-unknown, r=Amanieu
Browse files Browse the repository at this point in the history
Define DT_UNKNOWN on Fuchsia.

It looks like this constant is relied on in the new `remove_dir_all` logic and we need to reference it to be able to use the CVE fix correctly on Fuchsia.
  • Loading branch information
bors committed Jan 26, 2022
2 parents a79788f + af30859 commit 3063aa1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/fuchsia/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1313,6 +1313,7 @@ pub const SIG_DFL: sighandler_t = 0 as sighandler_t;
pub const SIG_IGN: sighandler_t = 1 as sighandler_t;
pub const SIG_ERR: sighandler_t = !0 as sighandler_t;

pub const DT_UNKNOWN: u8 = 0;
pub const DT_FIFO: u8 = 1;
pub const DT_CHR: u8 = 2;
pub const DT_DIR: u8 = 4;
Expand Down

0 comments on commit 3063aa1

Please sign in to comment.