Skip to content

cpio-archive: weird chmod data #255

@mcandre

Description

@mcandre

Unlike other cpio crates, when I use cpio-archive to archive my Payload, then the resulting file exhibits strange chmod data.

% cpio -itv <Payload
drwxr-xr-x   0 root     wheel           0 Jan 23 13:29 .
drwxr-xr-x   0 root     wheel           0 Jan 23 13:29 ./Applications
drwxr-xr-x   0 root     wheel           0 Jan 23 13:29 ./Applications/bobsautoparts
drwxr-xr-x   0 root     wheel           0 Jan 23 13:29 ./Applications/bobsautoparts/bin
?rwxr-xr-x   0 root     wheel          31 Jan 23 13:29 ./Applications/bobsautoparts/bin/hello
2 blocks

Note the question mark (?) for the hello executable shell script.

I'm using append_file_from_path to generate the CPIO archive.

Perhaps append_file_from_path is accidentally neglecting to mark files as files in the CPIO metadata.

The directories were generating implicitly, so that part of the code appears to be setting the column correctly to d. Relates to #256

I believe this quirk contributes to the macOS installer bom copy operation failing when I try to install my package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions