From 9bd13727327822292a0f9712596a0b3845de9cfe Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 24 Oct 2024 11:56:24 -0400 Subject: [PATCH] entry: Use our const for xattrs (#383) 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 --- src/entry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entry.rs b/src/entry.rs index cd26e6b4..b6b48b47 100644 --- a/src/entry.rs +++ b/src/entry.rs @@ -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()));