cpio icon indicating copy to clipboard operation
cpio copied to clipboard

Go package providing CPIO Readers and Writers.

Results 9 cpio issues
Sort by recently updated
recently updated
newest added

I don't know if you're interested in this one. I have to deal with cpio archives which sometimes have corruption. I need to gracefully go to the next intact file...

Hard-codes little-endian machine order for now. It would be nice to generalize the header reading across the two supported formats, as much of the logic is the same. This changeset...

Ref: https://www.freebsd.org/cgi/man.cgi?query=cpio&sektion=5

The `Header.Links` field should reflect the number of inbound hard and symbolic links for a file in an archive.

From the cpio manual: > The device and inode numbers from the disk. These are used by programs that read cpio archives to determine when two entries refer to the...

The latest tagged version https://github.com/cavaliergopher/cpio/releases/tag/v1.0.1 points to https://github.com/cavaliergopher/cpio/commit/58eb672abb5d7b40736da44ceb943e09e0b9f9e5 Which is not in the repo: `This commit does not belong to any branch on this repository, and may belong to a...

Fixes #15 `writeSVR4Header()` currently omits the following for files with mode Symlink: - The file's Size must match the link target (Linkname) - The link target must be written after...

The library is able to deserialize `Header` structs from Symlink files: https://github.com/cavaliergopher/cpio/blob/b4d3577d12deb76a6d52f184acd341f875574785/svr4.go#L90-L101 However, it completely ignores the `Linkname` attribute while _writing_ the header, resulting in zero-sized files without target. Note...