Ecosyste.ms: OpenCollective

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

Toybox

Toybox provides common Linux command line utilities together in a single BSD-licensed executable that's simple, small, fast, and reasonably standards-compliant.
Collective - Host: opensource - https://opencollective.com/toybox - Website: https://landley.net/toybox/about.html - Code: https://github.com/landley/toybox

Fix typo in the xexec tweak.

github.com/landley/toybox - 4fe080d418333afeb486f478c332bbcdace37f1b authored almost 4 years ago by Rob Landley <[email protected]>
Add cp -u

github.com/landley/toybox - 2a6f03eb088b21a68ee4f5fa45b7cd4f7c7bc558 authored almost 4 years ago by Rob Landley <[email protected]>
Any / in string makes it a path, not just absolute path.

Note: toy_exec() does an exact name match so fails given a path anyway,
it's just an optimizatio...

github.com/landley/toybox - cecc41a3c52519ac1d65989b266fec32a2bd6ff7 authored almost 4 years ago by Rob Landley <[email protected]>
Fix the next test.

github.com/landley/toybox - 6a73a3c9ee4b9e17704c368c27d0af34d785fa53 authored almost 4 years ago by Rob Landley <[email protected]>
Add a missing pop_block().

github.com/landley/toybox - 4e2a912dac1f4a94ac81ea9c894de3d385563a2a authored almost 4 years ago by Rob Landley <[email protected]>
Typo

github.com/landley/toybox - 8f75eed7d5fe88434872172694bdbecf6e0e5e56 authored almost 4 years ago by Rob Landley <[email protected]>
Toysh: adding function logic screwed up pipe/block logic. Fix it.

Remove cached blk/pout/urd and make TT.ff->blk always be populated instead
(like TT.ff, list is ...

github.com/landley/toybox - aa16e0e2ccb366835c2aec0cb2f6e0e52497ede5 authored almost 4 years ago by Rob Landley <[email protected]>
Fix system calls and get rid of tempfile

github.com/landley/toybox - 6a9b81b7e36d106ce017289206f4569c2c5b4df5 authored almost 4 years ago by Michael Christensen <[email protected]>
More cleanup of chsh.c

github.com/landley/toybox - 0202865a1d8d5ffb8f312bf700d74fb4f43f14f5 authored almost 4 years ago by Rob Landley <[email protected]>
chsh cleanup: Reindent and tweak help text.

github.com/landley/toybox - b82dd46f4d756158c2ceaa219d54d51465f53dd3 authored almost 4 years ago by Rob Landley <[email protected]>
Create (lsb) chsh command

github.com/landley/toybox - 89f0b987a4d330daf656e9bcbd24b93a2ee20133 authored almost 4 years ago by Michael Christensen <[email protected]>
Fix install -t

github.com/landley/toybox - 3cde24138ac06e384965db2944e858d2110ecacb authored almost 4 years ago by Ethan Sommer <[email protected]>
Nir Lichtman pointed out that rm -p shouldn't try to rmdir / at the end.

github.com/landley/toybox - 855eca3eaf8ea849599662900a3de18f6ebab9ef authored almost 4 years ago by Rob Landley <[email protected]>
Fix another sh regression.

github.com/landley/toybox - 3aaf63f6d908eea164111791ec90fd608000dfe1 authored almost 4 years ago by Rob Landley <[email protected]>
Fix some more sh regressions.

github.com/landley/toybox - 7a4524c989c2702b0c86ebe210aa6315da3a1a77 authored almost 4 years ago by Rob Landley <[email protected]>
Fix first few testsuite regressions from function/local plumbing.

github.com/landley/toybox - 37731bc3ec6376f0dbcfb8bdf392696d87af881f authored almost 4 years ago by Rob Landley <[email protected]>
telnetd: don't exit if waitpid() returns 0.

Noticed while using telnetd to manually test some telnet fixes: telnetd
would sometimes exit whe...

github.com/landley/toybox - 81908f2ff28c6e131bfd81ff3c5d1b9ee93ef038 authored almost 4 years ago by Elliott Hughes <[email protected]>
init: fix waitforpid().

The kill(2) should be checking whether `pid` still exists, not the
process that wait(2) just tol...

github.com/landley/toybox - 1cc17b2f2fe93fdf71ffb650c6013b7560dd2d2f authored almost 4 years ago by Elliott Hughes <[email protected]>
Tighten up parse_word() a bit and and teach it to read empty ${}

(fixes up some test suite tests).

github.com/landley/toybox - 620eeaf2fca0ebeb1179ffdc9bdf5d923691558c authored almost 4 years ago by Rob Landley <[email protected]>
vi: various fixes.

I've been using toybox vi as a makeshift "less" lately. This patch
contains all the fixes I've m...

github.com/landley/toybox - 0b6757da5d84a7cdd903099aefd2ff7fe668705c authored almost 4 years ago by Elliott Hughes <[email protected]>
Add local variables and basic function() support plumbing.

Not fully wired up yet, probably a bunch of regressions.

github.com/landley/toybox - 935217e6d470b0819f2970a4408cedca52fd9525 authored almost 4 years ago by Rob Landley <[email protected]>
Add more shell tests, and teach txpect to do regex matches (RO and RE).

github.com/landley/toybox - 8c7af93bde1798da7d59182201b3599158bf926d authored almost 4 years ago by Rob Landley <[email protected]>
chmod: fix +X.

I broke this when I added the masking out of the S_IFMT bits for macOS,
because string_to_mode n...

github.com/landley/toybox - e63c9967423b5b9c6fc48d2b31a04e3c030bc16a authored almost 4 years ago by Elliott Hughes <[email protected]>
Commit 3b9cfa70db needed some cleanup I forgot to do, oops. Elliott stumbled

across one of the issues I forgot to fix. Added a couple comments and
renamed a variable to try t...

github.com/landley/toybox - 8e9d7aaa838ed58b7b354a3b378cda1bd84f8dc5 authored almost 4 years ago by Rob Landley <[email protected]>
Elliott spotted that errno==EAGAIN usually goes with an rc of -1, not 0.

(I hit 0 paired with EAGAIN causing premature pipeline end many years
ago when a pipeline was Ct...

github.com/landley/toybox - 4ff131ff958e2bbe7f1cc8a3d0e0acdd4a48c7ee authored almost 4 years ago by Rob Landley <[email protected]>
Fix grep bug testing errno before check status

It's legal for a system call to set non-zero errno and return a good
status. The caller (grep) s...

github.com/landley/toybox - 56ef8fcedc48bed353e3ccc694a8db3f322fae6f authored almost 4 years ago by Robin Hsu <[email protected]>
df: Allow -P + -k together as defined in POSIX

github.com/landley/toybox - 8c2825c496ae4fb91483dee68d5c171ba6c0fd77 authored almost 4 years ago by Daniel Santana <[email protected]>
Minor tweaks: #define -> inlineable function, while() -> for(;;)

github.com/landley/toybox - 5f9d1f5bb59b1f129596bccb1928ce22d351f7c9 authored almost 4 years ago by Rob Landley <[email protected]>
tar: fix base-256 output.

A tar file created by toybox tar with values large enough to need
base-256 rather than ASCII oct...

github.com/landley/toybox - 5c6628e724e9d3625f161db077b15b232e2ca096 authored almost 4 years ago by Elliott Hughes <[email protected]>
Some more shell tests.

github.com/landley/toybox - 668572a8650f3d4ff0fbe54ea07499b941244bdb authored almost 4 years ago by Rob Landley <[email protected]>
Yi-yo Chiang wants cpio -u implemented, and sent some tests.

github.com/landley/toybox - f1be076b52adcad7b2419315cc148009a1bc2fec authored almost 4 years ago by Rob Landley <[email protected]>
Tar should remove empty directories where it wants to put a non-directory.

github.com/landley/toybox - 50f604f415d77b3679df1f8d9d3856f9840998be authored almost 4 years ago by Rob Landley <[email protected]>
dd: simplify signal handling and fix status output.

Other dd implementations always show the status on exit, whether success
or failure. Fix that by...

github.com/landley/toybox - 1ba53eead1ab9787e77dc43196b8402ec96e7fd4 authored almost 4 years ago by Elliott Hughes <[email protected]>
Add df to the macOS default configuration.

"Works for me".

github.com/landley/toybox - d57dddaf264c57df6e7efdcd294d39060ae3e199 authored almost 4 years ago by Elliott Hughes <[email protected]>
Remove ifdefs from stat.

github.com/landley/toybox - 1f9e37e36117c51a17f017143f1b68787d913979 authored almost 4 years ago by Rob Landley <[email protected]>
stat: fix macOS build and behavior.

My patch to fix df behavior on macOS broke the stat build on macOS.

First off, we had %s and %S...

github.com/landley/toybox - e2ad5c6c155ef63833f6d3774b607c314fbe8987 authored almost 4 years ago by Elliott Hughes <[email protected]>
Nope, marshalling install -D to cp caused regressions.

github.com/landley/toybox - 4e9837a7ca0f1ee570245bf6df505ef84a5a5ed5 authored almost 4 years ago by Rob Landley <[email protected]>
Teach -o to print ranges that produce zero length matches.

And fix one test for NUL that should be a length test for -z support

github.com/landley/toybox - 6817e114bb320f197727740d7905a5cb2849bdfa authored almost 4 years ago by Rob Landley <[email protected]>
Fix df on macOS.

On Linux, struct statvfs' f_bsize and f_frsize seem to be
interchangeable. On macOS, they're wil...

github.com/landley/toybox - 47b9f6a12d471086ceb11c8e2893450074e50543 authored almost 4 years ago by Elliott Hughes <[email protected]>
Ethan Sommer pointed out that install -Dt needs -D marshalled to cp.

github.com/landley/toybox - e6207d5e0f42452e96c66a9173b3d17468629beb authored almost 4 years ago by Rob Landley <[email protected]>
Fix cp -t with one argument and make --parents work with -t.

github.com/landley/toybox - c42089fed7adbf3ae1a0fd73b3a7b1e4f10e31db authored almost 4 years ago by Rob Landley <[email protected]>
Teach df /dev/node to reliably show rdev even when devtmpfs is mounted

more recently than the resulting mount point.

github.com/landley/toybox - 9c7085f484dba1e14f47fc05e249c18922b8db5d authored almost 4 years ago by Rob Landley <[email protected]>
Only error once for each "df nonexistent"

github.com/landley/toybox - b26587fb956c4145d67518ea295cd058ef21c4f9 authored almost 4 years ago by Rob Landley <[email protected]>
Let df -a show overmounted filesystems.

github.com/landley/toybox - 4d3bf8b61e2158856572ca927cd831b9461a03a4 authored almost 4 years ago by Rob Landley <[email protected]>
Fix mount.test command string quoting

Use "" instead of '' to quote command as the command contains expandable
variables.

Change-Id: ...

github.com/landley/toybox - 086356b88e237941eecc78b33b84af969bec0fbe authored almost 4 years ago by Yo Chiang <[email protected]>
Redo df plumbing a bit.

github.com/landley/toybox - 5f5f97f215bb5d398bb7b0027d8e9ab84668e07a authored almost 4 years ago by Rob Landley <[email protected]>
cpio: Guard free() with CFG_TOYBOX_FREE

github.com/landley/toybox - 0678d2c1e6561960704817722f41d33ee851730f authored almost 4 years ago by Yi-Yo Chiang <[email protected]>
Add find -executable

Requested by aheirman on github: uses access(X_OK) which checks access
control lists as well as ...

github.com/landley/toybox - 5c73305f0e4bb5e16aae798e177ec9213f853eec authored almost 4 years ago by Rob Landley <[email protected]>
Cleanup pass on df.

github.com/landley/toybox - 06b1d9e24e82e2919fd673fe5f63bd30c43a1e33 authored almost 4 years ago by Rob Landley <[email protected]>
Minor cleanup.

github.com/landley/toybox - 1bd9528453c2f0cecf60e7975ab5b3c1eada8e56 authored almost 4 years ago by Rob Landley <[email protected]>
Add -t to cp and mv.

github.com/landley/toybox - 6d615c73b321a2f3a337d5d9a949f159d436375b authored almost 4 years ago by Rob Landley <[email protected]>
Switch sha3sum on in defconfig, and document -b (it's same as sha2sum).

github.com/landley/toybox - 7ea411beed603f57ee1fb4bb9dcc10736f1285aa authored almost 4 years ago by Rob Landley <[email protected]>
Add install -t

github.com/landley/toybox - 3d5cb06e8b5cfcd4226375ff435b1725399fda13 authored almost 4 years ago by Rob Landley <[email protected]>
ulimit: include descriptions and units.

Also reorder the --help output to separate the "whats" from the "hows",
as with other commands t...

github.com/landley/toybox - 477553572fe670d88959c4fd909aad8dd4e5ed5b authored almost 4 years ago by Elliott Hughes <[email protected]>
Yi-Yo Chiang reported that readlink() failures could corrupt archive

by not writing as much payload as the header promised.

github.com/landley/toybox - 8828d9cf77ec57604925753eeac45d0463a5b74f authored almost 4 years ago by Rob Landley <[email protected]>
Have xclose() perform the fd != -1 test.

github.com/landley/toybox - a079039934311f64a48e1010a97492a22126042e authored almost 4 years ago by Rob Landley <[email protected]>
Yi-Yo Chiang pointed out install -D was broken when the target file exists.

Add a test, with comment that "make install_test" doesn't currently exist...

github.com/landley/toybox - bdb0e5fd6e031f9b3fae95d8180cf6bba32384c8 authored almost 4 years ago by Rob Landley <[email protected]>
Remove unused function.

Ethan Sommer noticed that chown is using chgrp_main() due to OLDTOY, so
the wrapper function isn...

github.com/landley/toybox - a4b84d92d9016dc8460255b954ffbd04d5ff6b92 authored almost 4 years ago by Rob Landley <[email protected]>
Add lots of "static" annotations, make a couple things use FLAG() macros, etc.

github.com/landley/toybox - 664c417af5d16e217557468ba747a369e8e1ab6b authored almost 4 years ago by Rob Landley <[email protected]>
netcat.test: reduce flake.

Starting two netcats at the same time and expecting them to be able to
talk to each is a little ...

github.com/landley/toybox - 9f7f62615f3963591af33fcc7582867f7063efd2 authored almost 4 years ago by Elliott Hughes <[email protected]>
netstat: various fixes.

Avoid fgets() into toybuf other than to skip header lines, preferring
fscanf() or xgetline() ins...

github.com/landley/toybox - 859764984485fd0d7f92b0f49430832c3d95888e authored almost 4 years ago by Elliott Hughes <[email protected]>
Cleanup pass on netstat.

github.com/landley/toybox - 7ed7ff8386cc982ec9e334332f853e9e1f0bcfc6 authored almost 4 years ago by Rob Landley <[email protected]>
Cleanup pass on modprobe.

I need to set up a test environment for this...

github.com/landley/toybox - 6e3f2fdb2bf11e2f49130436fa8ca7d3ad9c52ee authored almost 4 years ago by Rob Landley <[email protected]>
Minor tweak.

github.com/landley/toybox - 551f355d248c52c867399dcfcda6abe174c940c9 authored almost 4 years ago by Rob Landley <[email protected]>
rm: Add testcase for "rm -f <readonly_filesystem>/missing_file"

github.com/landley/toybox - 40fbe7eb5e3b41504947d942bf39471fff8df1b7 authored almost 4 years ago by Yi-Yo Chiang <[email protected]>
rm: Check file existence with lstat() explicitly if "-f" is specified

Instead of unlink() && check errno, call lstat() explicitly to check
file existence if "-f" is s...

github.com/landley/toybox - a8d8fbfa659b1e7e68110e6468de1bcf6a61fe34 authored almost 4 years ago by Yi-Yo Chiang <[email protected]>
The new TEST_GLUE config symbol for [ ] can't have TOYBOX prefix

or else singlemake enables it for all commands. (I was trying to
move it out of the command names...

github.com/landley/toybox - fdbdcc2ea1ab813f1fb9302f9a0e47d94ce33108 authored almost 4 years ago by Rob Landley <[email protected]>
Yank TODO note-to-self accidentally checked in, and fix "make test" standalone.

github.com/landley/toybox - 3e889781acfc83f74ce5dc7f70321db204177f79 authored almost 4 years ago by Rob Landley <[email protected]>
Elliott wants the test->[ symlink back. Enable when either sh or test enabled.

github.com/landley/toybox - a577b476e45f9185ecfcc185f8d283a2e77caeee authored almost 4 years ago by Rob Landley <[email protected]>
Fix a couple of test regressions from last commit adding function() plumbing.

github.com/landley/toybox - ff1b4ae050ab3ee12038f1bf91174732c4dcd040 authored almost 4 years ago by Rob Landley <[email protected]>
toysh: start of function call logic.

github.com/landley/toybox - f280c752cfb02b411e1288acd235305d8ad97353 authored almost 4 years ago by Rob Landley <[email protected]>
Shut gcc's "is not actually used uninitialized" false positive warnings up.

github.com/landley/toybox - 2d48d13735a7b532d76fe7da8afe8244b3224c50 authored almost 4 years ago by Rob Landley <[email protected]>
A few more getty cleanups.

github.com/landley/toybox - e6d103ce23000a326065bd11a708e69b08d3d1e5 authored almost 4 years ago by Rob Landley <[email protected]>
getty/telnet/tftpd: minor cleanup.

Remove STDIN_FILENO and use FLAG().

Use xsetspeed() rather than have a duplicate table.

Inline...

github.com/landley/toybox - 612ad45d51ca39df671c4b50906cd9606117fc53 authored almost 4 years ago by Elliott Hughes <[email protected]>
Fix bug pointed out by asm89 and add test.

github.com/landley/toybox - 2b4abd05efcc96061eaa87a6fdbc3f7121fd2c08 authored almost 4 years ago by Rob Landley <[email protected]>
Fix grep bug where -f /dev/null added "" regex matching everything,

and address TODO where -z was still splitting patterns on \n

github.com/landley/toybox - 76d3160cfabe15568f006ad530c105b9ad6fdcdd authored almost 4 years ago by Rob Landley <[email protected]>
Remove redundant blake2 mention and move base32 into the implemented list.

github.com/landley/toybox - 054d82ff46e236a7238c73d3dadfe446a6de4ff3 authored almost 4 years ago by Rob Landley <[email protected]>
Cleanup base32 slightly.

github.com/landley/toybox - af50278fc92ce5846d727eaa2b66b85063f53cae authored almost 4 years ago by Rob Landley <[email protected]>
A few more shell tests.

github.com/landley/toybox - b3910f4871f05ed3c90dab7aa7e9cc25abae2c91 authored almost 4 years ago by Rob Landley <[email protected]>
Fix "date -I" segfault and teach lib/args.c that "I(opt):;" short opt with

no argument returns NULL same as --opt without =

github.com/landley/toybox - e7c86f7d79f641ab8a0e542d32e857494e943389 authored almost 4 years ago by Rob Landley <[email protected]>
chmod.test: fix the tests to work on mksh as well as bash.

mksh doesn't support the {a..b} bashism or the ${!name} bashism, causing
the tests to fail on An...

github.com/landley/toybox - 661130b38cbf74056430e4b280512369dfcd9fe9 authored about 4 years ago by Elliott Hughes <[email protected]>
new toy: base32

Add new toy `base32`. Add tests for `base32`.

base32 is added by adapting the base64 encode/dec...

github.com/landley/toybox - b6b5becf359370c7f32d8419bcf8f50a47fbe933 authored about 4 years ago by Moritz Röhrich <[email protected]>
seq: always xwrite.

Pointed out by the compiler combined with glibc's use of
__attribute__((__warn_unused_result__))...

github.com/landley/toybox - 824de078e4bdc752da9559cc64df627028310cc3 authored about 4 years ago by Elliott Hughes <[email protected]>
main.c: construct a combination locale to add UTF-8.

We need <xlocale.h> for newlocale(3) on macOS, despite it being in POSIX 2008's <locale.h>. musl...

github.com/landley/toybox - 4786fd610362501c2f8c70fef1d8fb66efd0996c authored about 4 years ago by Elliott Hughes <[email protected]>
Fix comma regression reported by Denys Nykula.

github.com/landley/toybox - 32eed40a14c1f550e366741f0a2e7aa69093dc3d authored about 4 years ago by Rob Landley <[email protected]>
toysh: fix break/continue

github.com/landley/toybox - 3bd2e82dac075cd5a79a99e3ca31dc3f9a812b08 authored about 4 years ago by Rob Landley <[email protected]>
toysh fixes and tests

github.com/landley/toybox - 390fa7bbf39eaf86d53c6842ad99ed7829a51cf8 authored about 4 years ago by Rob Landley <[email protected]>
Add MacOS 11.0 to CI Builds

github.com/landley/toybox - 3e535f2f31226f225ad4335c678dcd13c6295950 authored about 4 years ago by Eric Molitor <[email protected]>
Fix (( )) quote termination.

github.com/landley/toybox - d7a2436cea81168078c7fdfc65114749abcbf9c6 authored about 4 years ago by Rob Landley <[email protected]>
FS_ENCRYPT_FL introduced too recently to depend on, use constant.

Note: can't put in portability.h because it's a linux/ include.

github.com/landley/toybox - 4b78acc7bc1af2e7e02bf07538c3f3a14c5e97ce authored about 4 years ago by Rob Landley <[email protected]>
Add seq INT_MIN test.

github.com/landley/toybox - c0f0b967a81156e781ebe335eebe9932ceb10ce2 authored about 4 years ago by Rob Landley <[email protected]>
seq.c: fix itoa for INT_MIN in case itoa gets used elsewhere.

It can't actually be used for INT_MIN in the current context because the
`dd += increment` on li...

github.com/landley/toybox - 2eacf3843380344ea7cfdbf49167ed0d293430a1 authored about 4 years ago by Elliott Hughes <[email protected]>
Andy Hu wants mount -tnomsdos,smbfs to work.

github.com/landley/toybox - b74d4319dcbf173e596bc422796058091e7e07b8 authored about 4 years ago by Rob Landley <[email protected]>
Elliott said that chmod 000 debris was confusing host rm -rf, and macos

couldn't handle chmod +s in /tmp. Try to make test_chmod clear out debris
and teach make clean to...

github.com/landley/toybox - e474cf80c37f7c91d01c2c5b81cbc54444f47cc9 authored about 4 years ago by Rob Landley <[email protected]>
chmod.c: mask out the file type bits.

The kernel will do this for us on both Linux and macOS, but error
messages are a bit misleading ...

github.com/landley/toybox - fbc2252f4f5260d616d6929351aa9cac5d227124 authored about 4 years ago by Elliott Hughes <[email protected]>
Speed up count: use 64k block size, update display at most 4x/second.

github.com/landley/toybox - 83326334d5bda7fefbd174630c23eae3b5f41604 authored about 4 years ago by Rob Landley <[email protected]>
Implement set, trace support, and function call context stack.

github.com/landley/toybox - b25f04996cfd4700fd3ee164168d9737c010908c authored about 4 years ago by Rob Landley <[email protected]>
main.c: fix UTF-8 on macOS.

Unfortunately neither "C.UTF-8" nor "UTF-8" works on *both* OSes...

github.com/landley/toybox - bec202875d27950ed64ce54e6b9a10a9a2e5720e authored about 4 years ago by Elliott Hughes <[email protected]>
Add test for FEXTRA flag on gunzip

github.com/landley/toybox - 640b1bea8b2ffafab024b5966f618a9de56a44f2 authored about 4 years ago by Puck Meerburg <[email protected]>
Follow RFC1952 when consuming gzip header

The FEXTRA field, indicated by bit 2 of the flag byte, contains
arbitrary extra data, prefixed b...

github.com/landley/toybox - 74461ba2eeb0d77205c732419ab5ce5832b1caca authored about 4 years ago by Puck Meerburg <[email protected]>