Mask is not required and will be generated by the system if it is required and missing
This commit is contained in:
parent
dfad5cc74c
commit
82b96cbb88
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -31,7 +31,7 @@ checksum = "a5f43f184355eefb8d17fc948dbecf6c13be3c141f20d834ae842193a448c72a"
|
||||
|
||||
[[package]]
|
||||
name = "posix-acl"
|
||||
version = "0.1.3"
|
||||
version = "0.1.4"
|
||||
dependencies = [
|
||||
"acl-sys",
|
||||
"anyhow",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "posix-acl"
|
||||
version = "0.1.3"
|
||||
version = "0.1.4"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user