Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ustar: Provide devmajor and devminor in listing | Patrick McDermott | 2023-05-12 | 1 | -1/+14 |
| | |||||
* | ustar: Support writing device major and minor | Patrick McDermott | 2023-05-12 | 1 | -5/+8 |
| | |||||
* | dirent: Add trailing '/' to directories | Patrick McDermott | 2023-05-11 | 1 | -1/+1 |
| | |||||
* | ustar: Make mtime unsigned | Patrick McDermott | 2023-05-07 | 1 | -1/+1 |
| | |||||
* | 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 |
| | |||||
* | 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 | 1 | -4/+4 |
| | | | | | | 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. | ||||
* | ustar: Move SOURCE_DATE_EPOCH code to opk/write | Patrick McDermott | 2023-04-30 | 1 | -24/+2 |
| | | | | | | 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 |
| | |||||
* | uname: Fix written linkname | Patrick McDermott | 2023-04-30 | 1 | -3/+8 |
| | |||||
* | ustar: Add function to write trailer | Patrick McDermott | 2023-04-30 | 1 | -0/+13 |
| | |||||
* | ustar: Add functions to write data | Patrick McDermott | 2023-04-30 | 1 | -5/+36 |
| | | | | And rename record buffer. | ||||
* | ustar: Add function to write header | Patrick McDermott | 2023-04-29 | 1 | -0/+56 |
| | |||||
* | opk: Absorb seek list management from ustar | Patrick McDermott | 2023-04-28 | 1 | -117/+0 |
| | |||||
* | ustar: Don't read data after finding named header | Patrick McDermott | 2023-04-28 | 1 | -16/+7 |
| | |||||
* | ustar: Ensure listed linkname is NUL-terminated | Patrick McDermott | 2023-04-25 | 1 | -5/+5 |
| | | | | Also simplify uname and gname copying. | ||||
* | ustar: Eliminate static variables | Patrick McDermott | 2023-04-25 | 1 | -50/+53 |
| | |||||
* | ustar: Add a couple small comments | Patrick McDermott | 2023-04-19 | 1 | -0/+4 |
| | |||||
* | ustar: Make seek names struct opaque | Patrick McDermott | 2023-04-19 | 1 | -10/+38 |
| | | | | Simplify main() a little and fix memory leak on success. | ||||
* | ustar: Shorten macro name | Patrick McDermott | 2023-04-18 | 1 | -1/+1 |
| | |||||
* | ustar: Use linked list instead of varargs in seek | Patrick McDermott | 2023-04-18 | 1 | -13/+61 |
| | | | | Also indicate when all sought member files are found. | ||||
* | main, ustar: Add comments | Patrick McDermott | 2023-04-18 | 1 | -0/+18 |
| | |||||
* | ustar: Use char type | Patrick McDermott | 2023-04-18 | 1 | -32/+32 |
| | | | | | | POSIX requires header characters to be encoded in ISO/IEC 646, a 7-bit code, so the extra bit in (unsigned char) is unnecessary. So fix a bunch of warnings and get rid of casts. | ||||
* | ustar: Fix a couple warnings | Patrick McDermott | 2023-04-18 | 1 | -2/+2 |
| | |||||
* | ustar: Make size unsigned | Patrick McDermott | 2023-04-18 | 1 | -1/+1 |
| | |||||
* | ustar, main: Dynamically allocate member structs | Patrick McDermott | 2023-04-18 | 1 | -17/+26 |
| | | | | | TODO: Save max strlen()s in first loop and printf() and free() in second loop. | ||||
* | ustar, main: Show mode and mtime | Patrick McDermott | 2023-04-17 | 1 | -0/+11 |
| | |||||
* | ustar, main: Show type, uname, and gname | Patrick McDermott | 2023-04-17 | 1 | -0/+28 |
| | |||||
* | ustar: Verify typeflag | Patrick McDermott | 2023-04-17 | 1 | -4/+20 |
| | |||||
* | Revert "ustar: Verify full magic field" | Patrick McDermott | 2023-04-17 | 1 | -1/+1 |
| | | | | | | | This reverts commit 1203f44aa85a88cfdc3008e7f14818c85bfe46c3. POSIX requires "ustar\0" but BusyBox tar creates "ustar ". Again, standard? What standard? | ||||
* | ustar: Verify full magic field | Patrick McDermott | 2023-04-17 | 1 | -1/+1 |
| | |||||
* | Revert "ustar: Verify version" | Patrick McDermott | 2023-04-17 | 1 | -4/+0 |
| | | | | | | | This reverts commit 8858721eceff2d22099ed42bee049b35a0fc712c. POSIX requires "00" but BusyBox tar creates " \0". Apparently standards are irrelevant. | ||||
* | ustar: Verify version | Patrick McDermott | 2023-04-17 | 1 | -0/+4 |
| | |||||
* | ustar: Verify header checksums | Patrick McDermott | 2023-04-17 | 1 | -3/+25 |
| | |||||
* | ustar, main: Show size of member files | Patrick McDermott | 2023-04-17 | 1 | -1/+2 |
| | | | | Also fix integer type (maximum file size is 8^12-1 = 68719476735). | ||||
* | ustar: Search for multiple member names | Patrick McDermott | 2023-04-17 | 1 | -3/+12 |
| | |||||
* | ustar: Don't read sought file | Patrick McDermott | 2023-04-17 | 1 | -4/+4 |
| | |||||
* | ustar: Fix seeking | Patrick McDermott | 2023-04-15 | 1 | -10/+6 |
| | |||||
* | ustar: Fix read buffer | Patrick McDermott | 2023-04-15 | 1 | -19/+22 |
| | |||||
* | Eliminate magic numbers | Patrick McDermott | 2023-04-14 | 1 | -12/+14 |
| | |||||
* | gzip, ustar: Add *_free() functions | Patrick McDermott | 2023-04-14 | 1 | -1/+6 |
| | |||||
* | ustar: Rewrite | Patrick McDermott | 2023-04-14 | 1 | -36/+111 |
| | |||||
* | ustar: Improve end detection | Patrick McDermott | 2023-04-13 | 1 | -2/+7 |
| | |||||
* | ustar: Size field (and all other ints) is octal | Patrick McDermott | 2023-04-13 | 1 | -1/+1 |
| | |||||
* | ustar: Verify magic | Patrick McDermott | 2023-04-13 | 1 | -0/+5 |
| |