File size: 342 Bytes
63f41a6
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
pub fn apply_pax(entry_type: u8, has_pax: bool) -> bool {
    let mut is_extension_header = false;
    if entry_type == b'L' || entry_type == b'K' || entry_type == b'x' || entry_type == b'g' {
        is_extension_header = true;
    }
    if has_pax {
        if is_extension_header { false } else { true }
    } else {
        false
    }
}