summaryrefslogtreecommitdiffstats
path: root/src/opk
Commit message (Collapse)AuthorAgeFilesLines
* Rename src/ to opkg-opk/Patrick McDermott2023-07-064-1286/+0
|
* build: Generate executables in subdirectoriesPatrick McDermott2023-07-061-1/+1
|
* opk/write: Fix memory leaksPatrick McDermott2023-07-051-2/+2
| | | | | | | | | | | | | opk->temp_file_name wasn't freed when either of the _opkg_opk_opk_build_inner_archive() calls failed. Fixes: Direct leak of 73 byte(s) in 1 object(s) allocated from: #0 0x7fde9c5c4d28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28) #1 0x563aeebbc4e8 in opkg_opk_opk_write src/opk/write.c:512 #2 0x563aeebb4351 in main src/main.c:357 #3 0x7fde9bc5b2e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)
* Fix license noticesPatrick McDermott2023-06-183-12/+12
|
* opk/read: Fix device number lengthsPatrick McDermott2023-06-171-0/+6
| | | | log10(1) == 0
* opk/write: Fix temporary archive file name bufferPatrick McDermott2023-06-171-1/+1
|
* opk/write: Handle specials overridesPatrick McDermott2023-05-281-0/+22
|
* opk/write: Simplify goto blocksPatrick McDermott2023-05-281-39/+23
| | | | Also fixes "warning: label ‘out0’ defined but not used".
* opk/write: Fix path length handling, add virt pathPatrick McDermott2023-05-282-40/+44
|
* opk/write: Clarify variable namesPatrick McDermott2023-05-281-15/+18
|
* opk: Read specials filePatrick McDermott2023-05-171-0/+1
|
* opk/read: Ignore -Wmaybe-uninitialized false posPatrick McDermott2023-05-121-0/+6
|
* opk/read: Indent other pragmasPatrick McDermott2023-05-121-3/+3
|
* opk/read: Make GCC 12 analyzer STFUPatrick McDermott2023-05-121-0/+40
| | | | | | What a mess. Fixes most of analyzer*.log (thousands of lines of error messages).
* opk/read: Only extract and/or print regular filesPatrick McDermott2023-05-121-0/+14
|
* opk/read: List device major and minor numbersPatrick McDermott2023-05-121-7/+41
|
* opk/write: Reflow some linesPatrick McDermott2023-05-121-7/+4
|
* opk/write: Write block, char, and FIFO headersPatrick McDermott2023-05-121-3/+35
|
* ustar: Support writing device major and minorPatrick McDermott2023-05-121-6/+6
|
* opk/read: Fix possible FD leakPatrick McDermott2023-05-111-0/+1
|
* opk/write: Error-check lstat() and rename varPatrick McDermott2023-05-111-15/+20
|
* opk/write: Add root directories to inner archivesPatrick McDermott2023-05-111-0/+20
|
* opk/write: Build control and data archivesPatrick McDermott2023-05-102-10/+369
|
* gzip: Separate last compression from freeingPatrick McDermott2023-05-081-0/+1
|
* opk/write: Store outer ustar uname/gname in varsPatrick McDermott2023-05-071-3/+7
|
* opk/write: Fix commentsPatrick McDermott2023-05-071-2/+2
|
* gzip: Write compressed output to file directlyPatrick McDermott2023-05-071-16/+1
|
* ustar: Make mtime unsignedPatrick McDermott2023-05-072-3/+3
|
* opk/read: Separate error handlingPatrick McDermott2023-05-031-8/+20
| | | | Only free member if opkg_opk_ustar_list() succeeds.
* ustar: Move SOURCE_DATE_EPOCH code to opk/writePatrick McDermott2023-04-301-1/+27
| | | | | | 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.
* opk/write: Fix fwrite()Patrick McDermott2023-04-301-2/+1
|
* opk/write: Build mode (WIP)Patrick McDermott2023-04-303-1/+122
|
* opk/read: Rename static functionsPatrick McDermott2023-04-291-23/+23
|
* opk: Split reading out into opk/readPatrick McDermott2023-04-293-0/+610