Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ustar: Support reading GNU long name/link records | Patrick McDermott | 2023-07-30 | 2 | -30/+105 |
| | |||||
* | opk/read: Only ignore analyzer warnings in new GCC | Patrick McDermott | 2023-07-30 | 1 | -14/+33 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://gcc.gnu.org/wiki/StaticAnalyzer Fixes the following warnings with older GCC versions: opkg-opk/opk/read.c: In function ‘_opkg_opk_opk_read_control’: opkg-opk/opk/read.c:159:5: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas] "-Wanalyzer-use-of-uninitialized-value" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ opkg-opk/opk/read.c:187:6: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas] "-Wanalyzer-use-of-uninitialized-value" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ opkg-opk/opk/read.c:198:5: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas] "-Wanalyzer-use-of-uninitialized-value" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ opkg-opk/opk/read.c:222:6: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas] "-Wanalyzer-use-of-uninitialized-value" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ opkg-opk/opk/read.c:265:5: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas] "-Wanalyzer-use-of-uninitialized-value" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ opkg-opk/opk/read.c:282:6: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas] "-Wanalyzer-use-of-uninitialized-value" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ opkg-opk/opk/read.c:290:35: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas] # pragma GCC diagnostic ignored "-Wanalyzer-file-leak" ^~~~~~~~~~~~~~~~~~~~~~ opkg-opk/opk/read.c:300:5: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas] "-Wanalyzer-use-of-uninitialized-value" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ opkg-opk/opk/read.c:313:4: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas] "-Wanalyzer-use-of-uninitialized-value" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||||
* | opk/read: Ignore another -Wmaybe-uninitialized | Patrick McDermott | 2023-07-30 | 1 | -0/+2 |
| | |||||
* | ustar: Add function to free member structure | Patrick McDermott | 2023-07-30 | 3 | -16/+30 |
| | |||||
* | ustar: s/=_/= _/ | Patrick McDermott | 2023-07-30 | 1 | -1/+1 |
| | |||||
* | dirent: Distinguish overflow from argument error | Patrick McDermott | 2023-07-30 | 1 | -11/+14 |
| | |||||
* | opk/write: Wrap a long line | Patrick McDermott | 2023-07-30 | 1 | -2/+2 |
| | |||||
* | main: Add option restrictions | Patrick McDermott | 2023-07-06 | 1 | -6/+38 |
| | |||||
* | tests: Update to use executables in subdirectories | Patrick McDermott | 2023-07-06 | 2 | -4/+4 |
| | |||||
* | tests: Update to use common code | Patrick McDermott | 2023-07-06 | 2 | -5/+7 |
| | |||||
* | m4: Update Git exclusions | Patrick McDermott | 2023-07-06 | 1 | -8/+10 |
| | |||||
* | opkg-opk: Use common error functions | Patrick McDermott | 2023-07-06 | 5 | -117/+98 |
| | | | | And translate a couple missing strings. | ||||
* | mknod: Factor out error functions into common code | Patrick McDermott | 2023-07-06 | 5 | -57/+124 |
| | |||||
* | Deduplicate defs.h under common/ | Patrick McDermott | 2023-07-06 | 10 | -37/+10 |
| | | | | And add `-I"$(top_srcdir)/common"` to CPPFLAGS. | ||||
* | Rename src/ to opkg-opk/ | Patrick McDermott | 2023-07-06 | 22 | -13/+12 |
| | |||||
* | build: Generate executables in subdirectories | Patrick McDermott | 2023-07-06 | 7 | -16/+17 |
| | |||||
* | TODO: Update | Patrick McDermott | 2023-07-05 | 1 | -2/+7 |
| | |||||
* | opk/write: Fix memory leaks | Patrick McDermott | 2023-07-05 | 1 | -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) | ||||
* | mknod: Deduplicate error cleanup | Patrick McDermott | 2023-07-05 | 1 | -24/+16 |
| | |||||
* | tests: Check specials file contents | Patrick McDermott | 2023-07-05 | 1 | -1/+7 |
| | |||||
* | mknod: Find path relative to pkg data dir | Patrick McDermott | 2023-07-05 | 2 | -3/+25 |
| | | | | All tests now pass. | ||||
* | mknod: Improve layout of specials file | Patrick McDermott | 2023-07-05 | 1 | -2/+2 |
| | |||||
* | tests: Remove node placeholder | Patrick McDermott | 2023-07-05 | 1 | -1/+2 |
| | |||||
* | mknod: Fix default mode | Patrick McDermott | 2023-07-05 | 1 | -1/+1 |
| | |||||
* | mknod: Print system error strings | Patrick McDermott | 2023-07-05 | 2 | -9/+21 |
| | |||||
* | mknod: Fix specials file writing | Patrick McDermott | 2023-07-05 | 2 | -24/+24 |
| | |||||
* | mknod: Factor getenv()/execve()/etc. out of main() | Patrick McDermott | 2023-07-05 | 1 | -28/+38 |
| | |||||
* | mknod: Share one buffer between two strings | Patrick McDermott | 2023-07-05 | 1 | -17/+4 |
| | |||||
* | mknod: Don't exit on unknown option | Patrick McDermott | 2023-07-05 | 1 | -1/+0 |
| | |||||
* | mknod: Factor out error printing | Patrick McDermott | 2023-07-05 | 2 | -55/+47 |
| | |||||
* | mknod: Factor strtol() out of main() | Patrick McDermott | 2023-07-05 | 1 | -36/+44 |
| | |||||
* | tests/build: Test mknod | Patrick McDermott | 2023-06-27 | 4 | -6/+18 |
| | | | | Currently doesn't work. | ||||
* | helpers/mode: Fix "t" perm | Patrick McDermott | 2023-06-27 | 1 | -7/+23 |
| | | | | Well that's ugly. | ||||
* | tests/mode: Test "s" and "t" perms | Patrick McDermott | 2023-06-27 | 1 | -1/+5 |
| | |||||
* | helpers/mode: Fix permcopy shifts | Patrick McDermott | 2023-06-27 | 1 | -6/+6 |
| | |||||
* | tests/mode: Add more test cases | Patrick McDermott | 2023-06-27 | 1 | -2/+10 |
| | | | | permcopy is broken. | ||||
* | helpers/mode: Fix new mode initialization | Patrick McDermott | 2023-06-27 | 1 | -1/+1 |
| | |||||
* | tests: Test helpers/mode | Patrick McDermott | 2023-06-27 | 4 | -0/+63 |
| | |||||
* | mknod: Parse mode option argument | Patrick McDermott | 2023-06-27 | 1 | -1/+12 |
| | |||||
* | helpers/mode: Parse | Patrick McDermott | 2023-06-27 | 4 | -1/+330 |
| | |||||
* | TODO: Update | Patrick McDermott | 2023-06-26 | 1 | -2/+5 |
| | |||||
* | po: Update POTFILES.in | Patrick McDermott | 2023-06-26 | 1 | -1/+2 |
| | | | | git grep -l -- '[^_]_("' | ||||
* | main: Make globals static const | Patrick McDermott | 2023-06-26 | 1 | -4/+4 |
| | |||||
* | build: Install helpers under libexecdir | Patrick McDermott | 2023-06-26 | 2 | -1/+27 |
| | |||||
* | mknod: New helper utility | Patrick McDermott | 2023-06-26 | 4 | -1/+312 |
| | |||||
* | build: Check for mknod funcs, prog | Patrick McDermott | 2023-06-26 | 1 | -4/+32 |
| | | | | | calloc(), execve(), fdopen(), mkfifo(), open(), rename(), sleep(), and mknod | ||||
* | main: Report failure to read specials file | Patrick McDermott | 2023-06-19 | 1 | -1/+9 |
| | |||||
* | Fix license notices | Patrick McDermott | 2023-06-18 | 20 | -45/+45 |
| | |||||
* | specials.txt: Remove temporary example file | Patrick McDermott | 2023-06-17 | 1 | -3/+0 |
| | | | | Now available at tests/pkg/specials | ||||
* | README: Explain chown and mknod without privs | Patrick McDermott | 2023-06-17 | 1 | -4/+11 |
| |