Skip to content

Commit

Permalink
Fix image-create with ACLs. Fixes #1394.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhbaird committed Aug 7, 2023
1 parent 34ee825 commit 67c8c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rafs/src/metadata/layout/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ impl RafsXAttrs {
return Err(einval!("xattr key/value is too big"));
}
for p in RAFS_XATTR_PREFIXES {
if buf.len() > p.as_bytes().len() && &buf[..p.as_bytes().len()] == p.as_bytes() {
if buf.len() >= p.as_bytes().len() && &buf[..p.as_bytes().len()] == p.as_bytes() {
self.pairs.insert(name, value);
return Ok(());
}
Expand Down

0 comments on commit 67c8c88

Please sign in to comment.