Skip to content

Commit

Permalink
entry: Use our const for xattrs (#383)
Browse files Browse the repository at this point in the history
General code cleanup but the specific rationale here is I was
trying to find the places this was used in the code and
was surprising cross-referencing didn't turn up the unpacking code.

Signed-off-by: Colin Walters <walters@verbum.org>
  • Loading branch information
cgwalters authored Oct 24, 2024
1 parent a1fd011 commit 9bd1372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ impl<'a> EntryFields<'a> {
.filter_map(|e| e.ok())
.filter_map(|e| {
let key = e.key_bytes();
let prefix = b"SCHILY.xattr.";
let prefix = crate::pax::PAX_SCHILYXATTR.as_bytes();
key.strip_prefix(prefix).map(|rest| (rest, e))
})
.map(|(key, e)| (OsStr::from_bytes(key), e.value_bytes()));
Expand Down

0 comments on commit 9bd1372

Please sign in to comment.