Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ustar: Treat octets as unsigned in chksum | Patrick McDermott | 2023-05-03 | 1 | -6/+6 |
| | | | | | | Per POSIX. Complement of commit 619f09be066777b8296acf93bd6b51771ca64bd2. | ||||
* | ustar: Document assumptions and improve safety | Patrick McDermott | 2023-05-03 | 1 | -3/+14 |
| | |||||
* | opk/read: Separate error handling | Patrick McDermott | 2023-05-03 | 1 | -8/+20 |
| | | | | Only free member if opkg_opk_ustar_list() succeeds. | ||||
* | ustar: Improve compatibility of written headers | Patrick McDermott | 2023-05-02 | 1 | -10/+40 |
| | |||||
* | ustar: Treat octets as unsigned in chksum | Patrick McDermott | 2023-05-02 | 1 | -4/+4 |
| | | | | Per POSIX. | ||||
* | ustar: Fill header with zeroes before populating | Patrick McDermott | 2023-05-02 | 1 | -9/+4 |
| | |||||
* | gzip: Fix flushing | Patrick McDermott | 2023-05-02 | 3 | -8/+20 |
| | | | | | | deflate() apparently must be called with avail_in=0 and Z_FINISH after processing all input, not with Z_FINISH on the last non-empty input buffer. | ||||
* | Revert "gzip: Test code" | Patrick McDermott | 2023-05-02 | 1 | -103/+0 |
| | | | | This reverts commit 12277cad55c6d3910dbc24ab32baf405f8970d64. | ||||
* | gzip: Test code | Patrick McDermott | 2023-05-02 | 1 | -0/+103 |
| | |||||
* | gzip: Preserve gzip header | Patrick McDermott | 2023-05-02 | 1 | -9/+9 |
| | | | | | | zlib doesn't copy it anywhere between deflateSetHeader() and deflate(), so we need to make sure it doesn't get corrupted on the stack in the meantime. | ||||
* | ustar: Move SOURCE_DATE_EPOCH code to opk/write | Patrick McDermott | 2023-04-30 | 3 | -26/+30 |
| | | | | | | This way it runs only once (without resorting to static variables) across all headers in all ustar archives. Also, opk/write now prints an informative error message. | ||||
* | ustar: Set mtime in written header | Patrick McDermott | 2023-04-30 | 1 | -0/+23 |
| | |||||
* | ustar: Set magic+version+chksum in written header | Patrick McDermott | 2023-04-30 | 1 | -1/+17 |
| | |||||
* | ustar: Fix trailer writing | Patrick McDermott | 2023-04-30 | 1 | -1/+2 |
| | |||||
* | opk/write: Fix fwrite() | Patrick McDermott | 2023-04-30 | 1 | -2/+1 |
| | |||||
* | gzip: Fix write buffer | Patrick McDermott | 2023-04-30 | 1 | -2/+2 |
| | |||||
* | opk/write: Build mode (WIP) | Patrick McDermott | 2023-04-30 | 6 | -9/+197 |
| | |||||
* | uname: Fix written linkname | Patrick McDermott | 2023-04-30 | 1 | -3/+8 |
| | |||||
* | ustar: Add function to write trailer | Patrick McDermott | 2023-04-30 | 2 | -0/+16 |
| | |||||
* | dirent: Don't add leading "/" | Patrick McDermott | 2023-04-30 | 1 | -12/+29 |
| | |||||
* | gzip: Get write buffer after init | Patrick McDermott | 2023-04-30 | 2 | -15/+24 |
| | |||||
* | ustar: Add functions to write data | Patrick McDermott | 2023-04-30 | 2 | -5/+43 |
| | | | | And rename record buffer. | ||||
* | ustar: Add function to write header | Patrick McDermott | 2023-04-29 | 2 | -0/+63 |
| | |||||
* | dirent: Remove test code | Patrick McDermott | 2023-04-29 | 1 | -34/+0 |
| | |||||
* | dirent: Implement | Patrick McDermott | 2023-04-29 | 3 | -0/+189 |
| | |||||
* | opk/read: Rename static functions | Patrick McDermott | 2023-04-29 | 1 | -23/+23 |
| | |||||
* | opk: Split reading out into opk/read | Patrick McDermott | 2023-04-29 | 5 | -556/+613 |
| | |||||
* | opk: Strip leading "/" when checking names to print | Patrick McDermott | 2023-04-29 | 1 | -0/+4 |
| | |||||
* | opk: Ensure data file names begin with "/" | Patrick McDermott | 2023-04-29 | 1 | -6/+19 |
| | |||||
* | opk: Extract control files | Patrick McDermott | 2023-04-29 | 3 | -21/+128 |
| | |||||
* | main: Implement new -f, -F, -l, and -L options | Patrick McDermott | 2023-04-29 | 1 | -40/+103 |
| | |||||
* | opk: Print data files | Patrick McDermott | 2023-04-29 | 2 | -21/+99 |
| | |||||
* | opk: List control files | Patrick McDermott | 2023-04-29 | 2 | -3/+37 |
| | |||||
* | opk: Restore list error check | Patrick McDermott | 2023-04-29 | 1 | -2/+9 |
| | |||||
* | main: Free opk on -h and -V | Patrick McDermott | 2023-04-28 | 1 | -0/+2 |
| | |||||
* | opk: List missing control files | Patrick McDermott | 2023-04-28 | 1 | -5/+12 |
| | |||||
* | opk: Merge most of seek func into read func | Patrick McDermott | 2023-04-28 | 1 | -67/+34 |
| | |||||
* | opk: Remove found members from list | Patrick McDermott | 2023-04-28 | 1 | -31/+62 |
| | |||||
* | opk: Improve loop control | Patrick McDermott | 2023-04-28 | 1 | -10/+6 |
| | |||||
* | opk: Ignore leading "./" in requested member names | Patrick McDermott | 2023-04-28 | 1 | -1/+5 |
| | |||||
* | opk: Make version variables local | Patrick McDermott | 2023-04-28 | 1 | -4/+4 |
| | |||||
* | opk: Absorb seek list management from ustar | Patrick McDermott | 2023-04-28 | 3 | -209/+126 |
| | |||||
* | opk: Manage control file list and listing flag | Patrick McDermott | 2023-04-28 | 3 | -161/+184 |
| | | | | Instead of main() doing so. | ||||
* | ustar: Don't read data after finding named header | Patrick McDermott | 2023-04-28 | 1 | -16/+7 |
| | |||||
* | Revert "main: Test gzip writing" | Patrick McDermott | 2023-04-28 | 1 | -58/+222 |
| | | | | This reverts commit 261d5be6b02e73fc0c7973b7319e89af7e574fb0. | ||||
* | main: Test gzip writing | Patrick McDermott | 2023-04-28 | 1 | -222/+58 |
| | |||||
* | gzip: Add write direction | Patrick McDermott | 2023-04-28 | 3 | -19/+150 |
| | |||||
* | opk: Print linkname | Patrick McDermott | 2023-04-25 | 1 | -4/+11 |
| | |||||
* | ustar: Ensure listed linkname is NUL-terminated | Patrick McDermott | 2023-04-25 | 2 | -6/+6 |
| | | | | Also simplify uname and gname copying. | ||||
* | ustar: Eliminate static variables | Patrick McDermott | 2023-04-25 | 1 | -50/+53 |
| |