summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* opk/read: Only ignore analyzer warnings in new GCCPatrick McDermott2023-07-301-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-uninitializedPatrick McDermott2023-07-301-0/+2
|
* ustar: Add function to free member structurePatrick McDermott2023-07-303-16/+30
|
* ustar: s/=_/= _/Patrick McDermott2023-07-301-1/+1
|
* dirent: Distinguish overflow from argument errorPatrick McDermott2023-07-301-11/+14
|
* opk/write: Wrap a long linePatrick McDermott2023-07-301-2/+2
|
* main: Add option restrictionsPatrick McDermott2023-07-061-6/+38
|
* tests: Update to use executables in subdirectoriesPatrick McDermott2023-07-062-4/+4
|
* tests: Update to use common codePatrick McDermott2023-07-062-5/+7
|
* m4: Update Git exclusionsPatrick McDermott2023-07-061-8/+10
|
* opkg-opk: Use common error functionsPatrick McDermott2023-07-065-117/+98
| | | | And translate a couple missing strings.
* mknod: Factor out error functions into common codePatrick McDermott2023-07-065-57/+124
|
* Deduplicate defs.h under common/Patrick McDermott2023-07-0610-37/+10
| | | | And add `-I"$(top_srcdir)/common"` to CPPFLAGS.
* Rename src/ to opkg-opk/Patrick McDermott2023-07-0622-13/+12
|
* build: Generate executables in subdirectoriesPatrick McDermott2023-07-067-16/+17
|
* TODO: UpdatePatrick McDermott2023-07-051-2/+7
|
* 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)
* mknod: Deduplicate error cleanupPatrick McDermott2023-07-051-24/+16
|
* tests: Check specials file contentsPatrick McDermott2023-07-051-1/+7
|
* mknod: Find path relative to pkg data dirPatrick McDermott2023-07-052-3/+25
| | | | All tests now pass.
* mknod: Improve layout of specials filePatrick McDermott2023-07-051-2/+2
|
* tests: Remove node placeholderPatrick McDermott2023-07-051-1/+2
|
* mknod: Fix default modePatrick McDermott2023-07-051-1/+1
|
* mknod: Print system error stringsPatrick McDermott2023-07-052-9/+21
|
* mknod: Fix specials file writingPatrick McDermott2023-07-052-24/+24
|
* mknod: Factor getenv()/execve()/etc. out of main()Patrick McDermott2023-07-051-28/+38
|
* mknod: Share one buffer between two stringsPatrick McDermott2023-07-051-17/+4
|
* mknod: Don't exit on unknown optionPatrick McDermott2023-07-051-1/+0
|
* mknod: Factor out error printingPatrick McDermott2023-07-052-55/+47
|
* mknod: Factor strtol() out of main()Patrick McDermott2023-07-051-36/+44
|
* tests/build: Test mknodPatrick McDermott2023-06-274-6/+18
| | | | Currently doesn't work.
* helpers/mode: Fix "t" permPatrick McDermott2023-06-271-7/+23
| | | | Well that's ugly.
* tests/mode: Test "s" and "t" permsPatrick McDermott2023-06-271-1/+5
|
* helpers/mode: Fix permcopy shiftsPatrick McDermott2023-06-271-6/+6
|
* tests/mode: Add more test casesPatrick McDermott2023-06-271-2/+10
| | | | permcopy is broken.
* helpers/mode: Fix new mode initializationPatrick McDermott2023-06-271-1/+1
|
* tests: Test helpers/modePatrick McDermott2023-06-274-0/+63
|
* mknod: Parse mode option argumentPatrick McDermott2023-06-271-1/+12
|
* helpers/mode: ParsePatrick McDermott2023-06-274-1/+330
|
* TODO: UpdatePatrick McDermott2023-06-261-2/+5
|
* po: Update POTFILES.inPatrick McDermott2023-06-261-1/+2
| | | | git grep -l -- '[^_]_("'
* main: Make globals static constPatrick McDermott2023-06-261-4/+4
|
* build: Install helpers under libexecdirPatrick McDermott2023-06-262-1/+27
|
* mknod: New helper utilityPatrick McDermott2023-06-264-1/+312
|
* build: Check for mknod funcs, progPatrick McDermott2023-06-261-4/+32
| | | | | calloc(), execve(), fdopen(), mkfifo(), open(), rename(), sleep(), and mknod
* main: Report failure to read specials filePatrick McDermott2023-06-191-1/+9
|
* Fix license noticesPatrick McDermott2023-06-1820-45/+45
|
* specials.txt: Remove temporary example filePatrick McDermott2023-06-171-3/+0
| | | | Now available at tests/pkg/specials
* README: Explain chown and mknod without privsPatrick McDermott2023-06-171-4/+11
|
* opk/read: Fix device number lengthsPatrick McDermott2023-06-171-0/+6
| | | | log10(1) == 0