Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/landley/toybox

toybox
https://github.com/landley/toybox

Toysh fixes/tests in respone to Eric Roshan-Eisner's fuzzing.

a468ba2df519362c3b178caa32ea346a511fbfa8 authored almost 2 years ago by Rob Landley <[email protected]>
Move sh.tests that don't use the $SH prefix to _after_ we swap $EVAL

so it's testing the right shell.

edf8968759f693dd40917270c714045d94a0a321 authored almost 2 years ago by Rob Landley <[email protected]>
sh: Call clearerr after running builtin command

When we run `echo foo > file` and `file` is a device file or FIFO,
writing to `file` can cause a...

dc109345f614497b2d9c24f577bc8cbcdb65ad5f authored almost 2 years ago by Koudai Iwahori <[email protected]>
Rename/move xmemcmp() (which doesn't exit) to smemcmp(), and add x prefix

to notstdio() while there.

e0ea4d471216103fcd85719e9539c47220b335e1 authored almost 2 years ago by Rob Landley <[email protected]>
Update a couple links and surrounding instructions.

2012ee53ec9dfb0ac6db88c80f18eb349d918e40 authored almost 2 years ago by Rob Landley <[email protected]>
portability.c: add newer (but common) file system types for `stat -f`.

ee5f81ec6dcb77eaa3ce4009032611c71438e594 authored almost 2 years ago by Elliott Hughes <[email protected]>
Further comment cleanup

6f6211c539296ff7824306b150432a4a5f9eab83 authored almost 2 years ago by Moritz C. Weber <[email protected]>
More cleanups and more (improved) comments

9aabf520b1cb7930b3c14698b872ecdd60ec8cb6 authored almost 2 years ago by Moritz C. Weber <[email protected]>
Remove uncommented code, added fetch master head to git fetch and corrected the authers mail address

d2b0e4549948cffdf25005432be5b31258d13b6d authored almost 2 years ago by Moritz C. Weber <[email protected]>
Fix help -ah to show nbd-client and nbd-server instead of "see hidden_alias".

0ec3ae72adba1d7bd165c316943deeceb72b6fed authored almost 2 years ago by Rob Landley <[email protected]>
Fix next ASAN issue in toysh.

If strchr("haystack", needle) gets 0 for needle, it matches the NUL
at the end of the string: st...

71da7f64e27e8b915e3544a8f0bb2ec384878c0e authored almost 2 years ago by Rob Landley <[email protected]>
Untangle brace expansion logic, add comments.

c8fc887b15bb037dcbf51b85b74f3f6557a81357 authored almost 2 years ago by Rob Landley <[email protected]>
Address two ASAN test failues.

e01c348df887c400d276b7aa70fff286e2928e9e authored almost 2 years ago by Rob Landley <[email protected]>
Math priority fixes, and &&/|| had assignment suppression reversed.

97c15e2a4e496fc2a95730c96dd414b3599c9ae3 authored almost 2 years ago by Rob Landley <[email protected]>
Use LP64 basic types instead of c99 ulongname37_t typedefs.

9dc62c6278ab15fb69a40733c93781d3f0eecb05 authored almost 2 years ago by Rob Landley <[email protected]>
Yet more whitespace cleanup.

46d80b1dc49652ac7100a0d1647f5c3b571680aa authored almost 2 years ago by Rob Landley <[email protected]>
More whitespace cleanup.

21d20fc87f023788fc191d8bbb3eaee02078c832 authored almost 2 years ago by Rob Landley <[email protected]>
Whitespace cleanup.

b45c8de31f459df57f543777b003c4d6a4f2f2c0 authored almost 2 years ago by Rob Landley <[email protected]>
git.c progress

I "solved" the issue, which made the git.c code not finding hashes and
returned NULL (I used a m...

86c47df073c8923e34c583df56fecb3a44c21f9f authored almost 2 years ago by Moritz Christian Weber <[email protected]>
Fully commented version of very small git clone.

It has 1 or more bugs (most likely memory-related) in the delta-resolving.
I am sure that it is ...

c897c515e749388d138db741ca1701fe6be15792 authored almost 2 years ago by Moritz Christian Weber <[email protected]>
Very small MVP of git clone

I have a small MVP. It clones version 0.0.1 of toybox and writes it to the
working directory. I ...

9bdf94d36294ec96e5eb94dbb658cb1af8b78d62 authored almost 2 years ago by Moritz Christian Weber <[email protected]>
Add simple nbd-server that works with nbd-client.

99133370bcfb2f69283383e8d77e4bcc72580ec0 authored almost 2 years ago by Rob Landley <[email protected]>
Add nbd_client -b

438f7053797848bff42eec1bbcdd23fb452829e0 authored almost 2 years ago by Rob Landley <[email protected]>
Teach help -ah to skip invisible command aliases, and "See command" for

OLDTOY() without independent help.

4f6157422f58cfed96aece5cc903616ec0fc758e authored almost 2 years ago by Rob Landley <[email protected]>
Cleanup pass on nbd-client: try to work with nommu, FLAG() macros,

cleanup when signaled.

Needs testing: the current nbd-server dropped support for this protocol.

bcd6d11fbe6f41ad392f0cab322cac2689d03543 authored almost 2 years ago by Rob Landley <[email protected]>
Placate ASAN by replacing memcmp() with xmemcmp().

50ed76deb2c88d37e506c2bca11556899b6c69df authored almost 2 years ago by Rob Landley <[email protected]>
Remove sed invocations replaced by (theoretically) upstreamable patches.

2a8ff58ce0cc2f1bb0bac223824fa101e6aaebd7 authored almost 2 years ago by Rob Landley <[email protected]>
Remove host airlock commands no longer needed by toybox or linux-6.1 build:

dd, diff, vi, xzcat, ar, and nm.

Also removes gcc and bc, which are patched out in
https://githu...

8e78e89a1d152392e630bbf01f738ffe969bb0bd authored almost 2 years ago by Rob Landley <[email protected]>
Script to put something browseable in https://landley.net/toybox/git

990e0e7a40e4509c7987a190febe5d867f412af6 authored almost 2 years ago by Rob Landley <[email protected]>
Fix handling of concatenated archives, add more tests.

8f8b49ffedde488df7d3e6ef690c69ec30bc8a9f authored almost 2 years ago by Rob Landley <[email protected]>
sntp: fix help inaccuracies.

The two IP addresses didn't match, and "default" in help text usually
means "toybox will use thi...

7b568c1f892800b664beedad852b3426966eeea3 authored about 2 years ago by Elliott Hughes <[email protected]>
Enable two more tests in "make tests".

8d6993bd61bb8d9dd4e7d27368593ae776fcaaaa authored about 2 years ago by Rob Landley <[email protected]>
Fix macos xabspath. (It did not like the linux definition of O_PATH.)

c3608db6ddce4a9c96bdcc304299f198488d1974 authored about 2 years ago by Rob Landley <[email protected]>
Mac doesn't allow chmod +s for normal users, so skip test group.

ea7a7fd3a1d2f437ddad2926c19e84977fc634c8 authored about 2 years ago by Rob Landley <[email protected]>
Package up test infrastructure in squashfs.

Doesn't use it yet, toysh needs more work to run the test suite.

7aaad82fdb4a9e02a267f0bb5e0e1ffbb3c34f81 authored about 2 years ago by Rob Landley <[email protected]>
More context for running test suite.

293c5cca33e9776c707985b570eb133cfa0f30bc authored about 2 years ago by Rob Landley <[email protected]>
Better error reporting.

3bba5802edfc5e7f5115ef58c43c0596e6c36fb4 authored about 2 years ago by Rob Landley <[email protected]>
Remove patch that got fixed upstream in the kernel (commit 3583521aabac).

b67b5cc5a6d4bf522f34b9da9ac3a361e538a410 authored about 2 years ago by Rob Landley <[email protected]>
Child process running recursive command shouldn't inherit SIGCHLD handler.

8e80ba2a19d7fd89c3e3848cc06f201c9a542a5a authored about 2 years ago by Rob Landley <[email protected]>
Tighten up option parsing and teach "sleep" to parse multiple args.

9a301232f3ed2fd9457d5ff9485b96857af08135 authored about 2 years ago by Rob Landley <[email protected]>
Fix "nohup --help" and friends.

481a19c4895916be9e6cde32cdc7630476451f19 authored about 2 years ago by Rob Landley <[email protected]>
Add just enough cgi plumbing to get the "unused variable" warning to stop.

8529a79da18ae1112932adcfb68a2203332ebdea authored about 2 years ago by Rob Landley <[email protected]>
Add bash -c wrapper around run-qemu.sh call.

Timeout doesn't know how to exec a shell script that doesn't start
with #!/bin/sh but I don't wa...

32ae87933247989fab75245f51c5b53f34d17d73 authored about 2 years ago by Rob Landley <[email protected]>
Missed two.

Dunno how useful CONFIG_DEVMEM would be, but it compiles which is all I'm
filtering for here.

b9d040bc9837605c5651003fc7ef3a770eb687c7 authored about 2 years ago by Rob Landley <[email protected]>
Add more things that build on freebsd 13 and remove one that broke.

2c7057c8c626ef2ce6be6e4bbf046af73c809cef authored about 2 years ago by Rob Landley <[email protected]>
Match guard symbols to command names, and yank duplicate initialization.

467ce2a07a43d1a8b0d43560a3e97b96c295d0c3 authored about 2 years ago by Rob Landley <[email protected]>
Almost the same macros, but not quite.

9de12e89cf34da15ae4b3031d8375eea65564c28 authored about 2 years ago by Rob Landley <[email protected]>
Add httpd -v, fix ? in static URLs, and very start of CGI plumbing.

626b32402c82674d69d23e1f68e4ee19e65940f3 authored about 2 years ago by Rob Landley <[email protected]>
Fix FreeBSD 13 build.

5d7b5c2505f061767f0d8aab9dd7d5cab06ecc74 authored about 2 years ago by Rob Landley <[email protected]>
modprobe: Make /proc/modules optional

Currently, /proc/modules is a strong requirement for loading modules.
This is problematic as pro...

361d5950b2c7884295122a782b668edf6bae429a authored about 2 years ago by Vincent Donnefort <[email protected]>
Make newlines go to stdout/stderr matching most recent output.

092b691892718569b281ac0b123e4633d1ba0081 authored about 2 years ago by Rob Landley <[email protected]>
ls -b and -N and -q aren't conflict errors, they just switch each other off.

820deb2bda129370479df1e563580578644b8e54 authored about 2 years ago by Rob Landley <[email protected]>
Always use 64 bit type for FLAG_ macros so &= ~FLAG_x doesn't

blank top 32 bits.

167dfdf99c0cab5dee54a6df0a2b44d8e1a93369 authored about 2 years ago by Rob Landley <[email protected]>
ls -N.

Not everyone wants -b, but that's the default for a tty, and we don't
currently have an opt out....

dbb6bbbae327d8abe740dec7d83788f8806f9a80 authored about 2 years ago by Elliott Hughes <[email protected]>
Move a header #include to the only command that will ever use it.

87cc33289b0956c154f8e0c7bf9e80e369c35b72 authored about 2 years ago by Rob Landley <[email protected]>
Fix assignment suppression and &&/|| parsing.

Assignment suppression needs to be inherited by all recursive calls
so is a persistent flag, and...

6277fc4d31286112b4b75099d2eed800ceb5399a authored about 2 years ago by Rob Landley <[email protected]>
Update relative path plumbing and extend realpath. More tests.

2154953362265eb53d3d58de47c47e08fb88440f authored about 2 years ago by Rob Landley <[email protected]>
Fix ASAN=1 with make test_command.

Test-built binaries were stripped even when ASAN was enabled (thus
the stack dump couldn't give ...

04c395d51e73abdef3c26f1ae939a08e9a531fce authored about 2 years ago by Rob Landley <[email protected]>
Use $CC instead of cc in probes, and don't add $ASAN to $HOSTCC.

(Yes I know kconfig is funky and needs to be replaced, but it doesn't ship.)

87b6d3f3026917501ac4cd71af8f70db5fae7c9a authored about 2 years ago by Rob Landley <[email protected]>
Expanding readlink and realpath (in progress).

bec57325b5a681c56c1cc2bfed723016776cc410 authored about 2 years ago by Rob Landley <[email protected]>
Fix xabspath() in keep symlinks mode.

838e68d574dc7bd399160287c4c5ede104cd1b56 authored about 2 years ago by Rob Landley <[email protected]>
Call function that works like strstart() but on a char chrstart().

9600642ba4c86950fe3c6ac27e0fda814481ee1d authored about 2 years ago by Rob Landley <[email protected]>
Use testcmd instead of manual workaround for shell builtin.

70c5ed4d95dc995eabc64c67b1a1d084f12bf4b4 authored about 2 years ago by Rob Landley <[email protected]>
Add test for last char of -f bug.

4209607a724c607f68dc96c81eb152b85f35f750 authored about 2 years ago by Rob Landley <[email protected]>
Fix broken test due to directory symlink

/vendor/lib/modules is a symlink directory, when running
`find /vendor/lib/modules` , find just ...

9dbb3bb6bd2df5ae24513eb157dcfd006412f8f1 authored about 2 years ago by Kelvin Zhang <[email protected]>
Fix grep to not truncate last character of file provided by -f argument

The command line argument -f allows a user to specify a file that lists
multiple regular express...

5ed3c33417d35be2bfc2336c2b29bf1f1bc8509e authored about 2 years ago by Daniel Mentz <[email protected]>
Fix up host.c a bit more.

"host -t ANY landley.net" now prints a useful message but
"host -t TXT cnn.com" does not.

76369dd193304dc4103b068008f3dae56842e4ea authored about 2 years ago by Rob Landley <[email protected]>
sh: add a test for x=${x//y}

3b4a95a52b6ef5a01160c612ce2088c6d13d46a3 authored about 2 years ago by Alexander Holler <[email protected]>
sh: fix bug in parameter substitution (pattern replacement)

Avoid a core dump on the following snippet:
V="a.b"; V=${V//./}

da5a1e5801f23ed4def642aa89799988d3676e2b authored about 2 years ago by Alexander Holler <[email protected]>
sh: add a test for x=${x%y}

76834a1a5862c5e338d405e8dc946fedf4208bcb authored about 2 years ago by Alexander Holler <[email protected]>
sh: fix bug in parameter substitution (with shortest path removal)

Avoid a core dump on the following snippet:
V="a.b"; V=${V%.*}

3bc85530e160db269ec8ba5304c5d9c1899d94d7 authored about 2 years ago by Alexander Holler <[email protected]>
su: do not require /etc/shadow or a password there if called as root

0bb61e3aefc32940d8578eb174bf6e39dca17c35 authored about 2 years ago by Alexander Holler <[email protected]>
Bug report from nomas2000: inverted test in check for trailing rubbish.

149bc75a9b72f6495933819e09de7cf98a407a19 authored about 2 years ago by Rob Landley <[email protected]>
More specific sed to hit just the one config symbol.

0866cdd2a087b8e5858beafef5592ebb9f563e76 authored about 2 years ago by Rob Landley <[email protected]>
We don't need Apple Desktop Bus support in m68k, and /dev/?db hits adb.

35de50117e8f80f2059d176b54e6109ca2c1a8a5 authored about 2 years ago by Rob Landley <[email protected]>
patch --dry-run should not create or delete files.

f02f67de63bf8781cd8a48f9ae9f17189909914f authored about 2 years ago by Rob Landley <[email protected]>
Add one more patch the kernel guys ignored, and fix typo in module build.

Patch was sent to kernel at
https://lkml.iu.edu/hypermail/linux/kernel/2202.0/01505.html

a249f56843ee4c406c0e09d91590a645f4f05461 authored about 2 years ago by Rob Landley <[email protected]>
Various --longopts Antoni Villalonga says are used in package builds.

19f16d98258b8d94147ab0d9885069fa8a089cec authored about 2 years ago by Rob Landley <[email protected]>
Remove redundant longopt variant that's now handled as an abbreviation.

94c2a5243ce1d2048086b05440f596c8d487cb82 authored about 2 years ago by Rob Landley <[email protected]>
Trivial cleanup.

3a88a23df62bd8be2633aeda8f81e42751641d75 authored about 2 years ago by Rob Landley <[email protected]>
Antoni Villalonga requested uname -p because some package builds need it,

so add undocumented option that prints "uknown".

On debian it says "uknown", on Fedora it's a no...

a9bd5923aa1ad06cbb07c6f2a19e64b11ea12a9d authored about 2 years ago by Rob Landley <[email protected]>
Add swapoff -a -v and move octal_deslash() to lib for fstab parsing.

2dbf0fe532a66ac5f689901b44ce6e96d342d857 authored about 2 years ago by Rob Landley <[email protected]>
Another workaround for mksh not being bash.

1c7412199a7e87a303c1faeb294400c2aac378d1 authored about 2 years ago by Rob Landley <[email protected]>
Actually fix netcat server mode. (Helps to have -u in the test.)

Only implemented -l not -L and without -W a UDP server will never exit.
Design issue: other netc...

1cd2c07f94c33805a52fb4fc7a08c1f9666883a0 authored about 2 years ago by Rob Landley <[email protected]>
A pointer is not a reference.

3d097856ed3b15a29c17acf9aa7139698357a486 authored about 2 years ago by Rob Landley <[email protected]>
Fix netcat -u server mode.

Tested with "netcat -s 127.0.0.1 -p 9876 -l" talking to "netcat 127.0.0.1 9876"
and yes, they ca...

91fad2cdaa17477a38a3878a78a4bffad9dc4d51 authored about 2 years ago by Rob Landley <[email protected]>
Add netcat -n to prevent DNS lookup.

8388551b678cf44110b0ef9bf5ac70d3020dacb3 authored about 2 years ago by Rob Landley <[email protected]>
Add module support to mkroot, and start of "tests" package.

57ee7b26489c2bcebc5b2f0856ec8d1d3ee66edb authored about 2 years ago by Rob Landley <[email protected]>
Not sure if this test should be toyonly or not?

51f687c5fbcc54739dfe42e7e7d4dbf7d7f9a377 authored about 2 years ago by Rob Landley <[email protected]>
Tar --xform extract side.

Note: we accept --show-transformed as a NOP, it's always on. (Happy to
disable it if someone can...

26446d37f171fd22144f442f2faa0b5e4132cfa4 authored about 2 years ago by Rob Landley <[email protected]>
Tests run as child processes now, remove old cleanup.

b04b2f8af4782226552b37088f2ad560954b799f authored about 2 years ago by Rob Landley <[email protected]>
Couple more sed tests.

05069bdf6a419cb69fbef91f552a772a7b0799c3 authored about 2 years ago by Rob Landley <[email protected]>
Once again, mksh is missing bash features.

51815ade0b9750efbd0fbbb8fd0555b8390f8945 authored about 2 years ago by Rob Landley <[email protected]>
Fix grep to pass recently added test, and add a couple more tests.

fd8ef8cac003da8f894e0fb799169690acc95915 authored about 2 years ago by Rob Landley <[email protected]>
Make --xform work on archive creation side, with some tests.

f2edc776dc6e87330780fdf1e31940fe0b19e74f authored about 2 years ago by Rob Landley <[email protected]>
First stab at making sed --tarxform support transformation scope flags.

At least attempts to parse flags= and trailing s/// scope flags, and
that 's#^.+/##x' special ca...

2be65f70d2d823bd6433a6a9c9d7c305343c25ad authored about 2 years ago by Rob Landley <[email protected]>
Ahem, make that _exit_status_ 127 (what you get when you run a command

that doesn't exist at the command line), not killed by signal 127.

61daed9c2e1f6e305893fac894c2831803658ddb authored about 2 years ago by Rob Landley <[email protected]>
Some waitpid() failures (such as bad PID) don't set status, so return 127.

a83d1d59bf40ce9282bc347ddcd3cec585c3d254 authored about 2 years ago by Rob Landley <[email protected]>
Test that -z doesn't apply to the \n in input patterns.

d1093d670f0ba2eb7f0f9d1222e4a6b941a350e4 authored about 2 years ago by Rob Landley <[email protected]>
Support diff -f

AKA --show-function-line

64952cee7002bc6f5c110d9979b3e6a2c33b62b8 authored about 2 years ago by James Farrell <[email protected]>