Mask is not required and will be generated by the system if it is required and missing

This commit is contained in:
Fabian Stamm 2024-08-18 12:22:08 +02:00
parent dfad5cc74c
commit 82b96cbb88
3 changed files with 2 additions and 7 deletions

2
Cargo.lock generated
View File

@ -31,7 +31,7 @@ checksum = "a5f43f184355eefb8d17fc948dbecf6c13be3c141f20d834ae842193a448c72a"
[[package]]
name = "posix-acl"
version = "0.1.3"
version = "0.1.4"
dependencies = [
"acl-sys",
"anyhow",

View File

@ -1,6 +1,6 @@
[package]
name = "posix-acl"
version = "0.1.3"
version = "0.1.4"
edition = "2021"
[dependencies]

View File

@ -245,11 +245,6 @@ impl PosixACL {
return Err(anyhow!("Other entry is required"));
}
let has_mask = self.entries.iter().any(|x| matches!(x.0, Qualifier::Mask));
if !has_mask {
return Err(anyhow!("Mask entry is required"));
}
for acl_entry in &self.entries {
let mut entry = null_mut();
check_return(