patchGNU tar - Patches: patch #10100, Ignore size of directories with...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #10100: Ignore size of directories with regular type

Submitter:  Samanta Navarro <ferivoz>
Submitted:  Sat 28 Aug 2021 12:04:12 PM UTC
   
 
Category:  Operations on Archives Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open

Sat 28 Aug 2021 12:04:12 PM UTC, original submission:  

The ustar format allows regular entries to represent types. This
is specified in POSIX 2017 as backwards compatibility.

Listing the content of an archive and extracting the archive lead to
different results. All GNU Tar operations should interpret a file in
the same way.

Proof of Concept:

1. Create file
cat > poc.tar.xz.b64 << EOF
/Td6WFoAAATm1rRGAgAhARwAAAAQz1jM4Cf/AG1dADedyh4ubnxHHIi7Cen6orusgKqY3paKeQwp
3//HS9EIT7Hm+MsndXfRntXVt8mu8oDpLOfC+AB9VldyCtp2jqOfTwa455qfGAcONPn6WWDgsaAh
O2Y6ptXuaF/vdaNkub7SkOBME8jHYITT5QAAAAAAHtdcflb5Zw8AAYkBgFAAAPYgb0axxGf7AgAA
AAAEWVo=
EOF
base64 -d < poc.tar.xz.b64 > poc.tar.xz

2. One entry is listed with 't'
tar -tf poc.tar.xz
owo1/

3. Two directories are extracted with 'x'
tar -xvf poc.tar.xz
owo1/
owo2/

4. No directory is extracted when first entry is ignored with 'x'
tar -xvf poc.tar.xz --exclude owo1

Samanta Navarro <ferivoz>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #51826:  reg-dir.patch added by ferivoz (2KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ferivoz (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-08-28 ferivoz Attached File- Added reg-dir.patch, #51826

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code