summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Rename src/ to opkg-opk/Patrick McDermott2023-07-0619-3230/+0
|
* build: Generate executables in subdirectoriesPatrick McDermott2023-07-063-2/+3
|
* 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)
* main: Make globals static constPatrick McDermott2023-06-261-4/+4
|
* main: Report failure to read specials filePatrick McDermott2023-06-191-1/+9
|
* Fix license noticesPatrick McDermott2023-06-1815-39/+39
|
* opk/read: Fix device number lengthsPatrick McDermott2023-06-171-0/+6
| | | | log10(1) == 0
* main: Add -s optionPatrick McDermott2023-06-171-2/+15
|
* 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-283-40/+47
|
* opk/write: Clarify variable namesPatrick McDermott2023-05-281-15/+18
|
* opk: Read specials filePatrick McDermott2023-05-173-0/+27
|
* specials: Read and search special files listPatrick McDermott2023-05-173-0/+171
| | | | specials.txt is a temporary example file.
* 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
|
* ustar: Provide devmajor and devminor in listingPatrick McDermott2023-05-122-1/+16
|
* 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-123-11/+15
|
* opk/read: Fix possible FD leakPatrick McDermott2023-05-111-0/+1
|
* gzip: Add pure attributePatrick McDermott2023-05-111-1/+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
|
* dirent: Add trailing '/' to directoriesPatrick McDermott2023-05-113-14/+18
|
* dirent: Remove test codePatrick McDermott2023-05-101-29/+0
|
* dirent: Fix separators and length limitsPatrick McDermott2023-05-101-29/+48
|
* dirent: Re-add and update test codePatrick McDermott2023-05-101-0/+30
| | | | This reverts commit 50f9ee989f89fd47a5f554d9967e8abedd6bd938.
* opk/write: Build control and data archivesPatrick McDermott2023-05-102-10/+369
|
* gzip: Separate last compression from freeingPatrick McDermott2023-05-083-3/+19
|
* gzip: Count and report bytes writtenPatrick McDermott2023-05-072-0/+12
|
* opk/write: Store outer ustar uname/gname in varsPatrick McDermott2023-05-071-3/+7
|
* opk/write: Fix commentsPatrick McDermott2023-05-071-2/+2
|
* Revert "gzip: Test code"Patrick McDermott2023-05-071-82/+0
| | | | This reverts commit 075f39b18619274bd5ae78a516a93df268b9ef7e.
* gzip: Test codePatrick McDermott2023-05-071-0/+82
|
* gzip: Write compressed output to file directlyPatrick McDermott2023-05-073-54/+22
|
* gzip: Split init functionsPatrick McDermott2023-05-072-46/+47
|
* ustar: Make mtime unsignedPatrick McDermott2023-05-074-6/+6
|
* ustar: Add linkname size macroPatrick McDermott2023-05-071-7/+8
|
* dirent: Handle NULL buffers, remove functionPatrick McDermott2023-05-042-53/+6
|
* ustar: Treat octets as unsigned in chksumPatrick McDermott2023-05-031-6/+6
| | | | | | Per POSIX. Complement of commit 619f09be066777b8296acf93bd6b51771ca64bd2.
* ustar: Document assumptions and improve safetyPatrick McDermott2023-05-031-3/+14
|
* opk/read: Separate error handlingPatrick McDermott2023-05-031-8/+20
| | | | Only free member if opkg_opk_ustar_list() succeeds.
* ustar: Improve compatibility of written headersPatrick McDermott2023-05-021-10/+40
|
* ustar: Treat octets as unsigned in chksumPatrick McDermott2023-05-021-4/+4
| | | | Per POSIX.
* ustar: Fill header with zeroes before populatingPatrick McDermott2023-05-021-9/+4
|