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

netcfg is being removed, but shows up in the toybox roadmap.

github.com/landley/toybox - 8c4fdd827349de82b1ac2d277564ca4dfdfc7caf authored almost 10 years ago by Elliott Hughes <[email protected]>
Shameless meddling.

github.com/landley/toybox - 6434acef74318e8c3f7e68f4513112b95d2979e8 authored almost 10 years ago by Rob Landley <[email protected]>
Use $TMPDIR if set (necessary on Android, where there is no /tmp).

Include full template in error messages.
Don't report success on failure with -q.
Avoid unnecessa...

github.com/landley/toybox - 831a085a8d36cfb4fa064bdddb6bd0a434d4b3e1 authored almost 10 years ago by Elliot Hughes <[email protected]>
Build standalone commands where "depends on" config entries need to be switched on.

github.com/landley/toybox - 912b2be5e53f2656727beb3158c8d97ad6b1f6f2 authored almost 10 years ago by Rob Landley <[email protected]>
Clean up the output of "make change".

github.com/landley/toybox - 5eb4475bab76e81fd0119332d761b185a35944a5 authored almost 10 years ago by Rob Landley <[email protected]>
Remove xexec_optargs().

github.com/landley/toybox - fb4ae952a6d75ae74a84fc2599f58c3c5398af8b authored almost 10 years ago by Rob Landley <[email protected]>
Cleanup pass on env, removing exec_optargs().

github.com/landley/toybox - d57c23b2f33eb39cd4221b82ff6901a6e2a1ef2b authored almost 10 years ago by Rob Landley <[email protected]>
Make toy_exec() check if argc is in optargs and deal with it there so we don't need a separate xexec_optargs().

github.com/landley/toybox - c0045207a7cd3bc11aace920d895c69b027c16af authored almost 10 years ago by Rob Landley <[email protected]>
Merge unshare and nsenter (promoting and cleaning up nsenter).

Needs more testing, don't have a test environment set up for this yet...

github.com/landley/toybox - a48cfba9520a8ad9bf1308dcbac3fc6ee23894ba authored almost 10 years ago by Rob Landley <[email protected]>
In rm, init using to AT_REMOVEDIR in the dir case earlier.

(If you had a chmod 000 directory and did rm -r on it without -f, after the prompt it would comp...

github.com/landley/toybox - 459cab00f22c88ed64f56d9928baeba7a10789d5 authored almost 10 years ago by Rob Landley <[email protected]>
Alright, the Android guys agree with the musl guys: faccessat(AT_SYMLINK_NOFOLLOW) is not supported.

github.com/landley/toybox - bd6c3f35ae226125737503dddac48e7924425b49 authored almost 10 years ago by Rob Landley <[email protected]>
Commit 1061 said "this gets expand off my to-review list". Remove it from the list.

github.com/landley/toybox - 436a5c048e352fd6430de4376a083e5a2410c1a2 authored almost 10 years ago by Rob Landley <[email protected]>
Cleanup mountpoint and remove it from the pending README.

github.com/landley/toybox - afd712aabc1b5bb6782489e01b8228b9021232f0 authored almost 10 years ago by Rob Landley <[email protected]>
bootchartd: Removing wrong free call to non-malloc'ed string.

github.com/landley/toybox - b5e72209c79b3e181673d469c8e064ae8b409836 authored almost 10 years ago by Luis Felipe Strano Moraes <[email protected]>
Fix sed s//\[newline]/ line continuations.

The problem was that readline() was returning a newline at the end of each
string, which wasn't ...

github.com/landley/toybox - 4bb3a3529704989dd9112baece164b2f51b44e89 authored almost 10 years ago by Rob Landley <[email protected]>
fix hwclock's rtc selection

For systems using /dev/rtcN, /dev/rtc0 isn't necessarily the RTC
that's used to provide the syst...

github.com/landley/toybox - ef0546d4f536f42a57af4c32bd37f7fd752d10c2 authored almost 10 years ago by Elliott Hughes <[email protected]>
fix typo in printf

github.com/landley/toybox - 9d1d0ad1236d3c2d85e6c244d148f5ae8f589631 authored almost 10 years ago by Elliott Hughes <[email protected]>
Remove trailing whitespace.

github.com/landley/toybox - 2c1cf4a02783e2a570ddf7b7ea968c7bed781f91 authored almost 10 years ago by Rob Landley <[email protected]>
Lift the basename/libgen.h shenanigans back out of portability.c and make it a static inline in portability.h, and prototype dirname() while we're at it.

github.com/landley/toybox - 468f155ecefec275e6d2299470d35bd912f69a94 authored almost 10 years ago by Rob Landley <[email protected]>
fix non-glibc basename(3) usage

I considered a #else on the big #ifdef __GLIBC__ above, but that
seemed harder to follow.

github.com/landley/toybox - e910826c812fcde8d122990a1e43e17f46b6d03f authored almost 10 years ago by Elliott Hughes <[email protected]>
Move pty.h back to toys.h (under LSB 4.1 headers).

github.com/landley/toybox - 0a4bd4b89f9a17e4ba8c7873d1384fb04f79b14d authored almost 10 years ago by Rob Landley <[email protected]>
AOSP master has <pty.h> and builds netcat/nc.

github.com/landley/toybox - c2415d16a8991e2192bda002baab840bfa4d5d79 authored almost 10 years ago by Elliott Hughes <[email protected]>
id.c #ifdefectomy. (ifdefs belong in headers, not in C code.)

github.com/landley/toybox - 3b915991f8c8648f939498777f4d76aad04f2817 authored almost 10 years ago by Rob Landley <[email protected]>
This patch adds a TOYBOX_SELINUX configuration option to control both

the SELinux commands (such as chcon) and the SELinux-specific options
to regular commands (such a...

github.com/landley/toybox - 7e2af1c7489cbf974a57d482bb9d23c884d2aa49 authored almost 10 years ago by Elliott Hughes <[email protected]>
Added tag 0.5.1 for changeset 62a7d617e1ce

github.com/landley/toybox - 376a2579ec2d0a9bb64d30668b7e32ab220aa023 authored almost 10 years ago by Rob Landley <[email protected]>
Switch netcat to stop parsing command line at first nonoption argument instead of stopping after -l or -L.

Hyejin Kim tried "toyboxd nc nc -p 1234 -l rm mv ps" (which attempted to run
"nc rm mv ps") and ...

github.com/landley/toybox - f492fccc9cebbfa91083c345b9bb06d283f6fe93 authored almost 10 years ago by Rob Landley <[email protected]>
Make touch -d miliseconds work. (Still only 6 digits precision instead of 9, but it's a start.)

github.com/landley/toybox - a2fd3cedb28394bea7c84e4c785a61df8ccc92a9 authored almost 10 years ago by Rob Landley <[email protected]>
i found a few problems while manually smoke testing toybox chown versus toolbox (NetBSD) chown...

new test:

and here's the patch to fix "owner:" ":group" and the ":" special case:

github.com/landley/toybox - 50d320777a47132f07eb4e6707b7247f8db8861a authored almost 10 years ago by Elliott Hughes <[email protected]>
Let chown build standalone.

github.com/landley/toybox - 698a160868dba71766a8607b72a07eaa63d74da4 authored almost 10 years ago by Rob Landley <[email protected]>
sed bugfix: N or n at end of script would save the terminating NULL as the resume position, so the script would restart from beginning.

github.com/landley/toybox - 9d66c41d1d2c4ebbd4e7034145bf0143fa5e08b9 authored almost 10 years ago by Rob Landley <[email protected]>
sed s/// can have line continuations in the replacement part, with or without a \ escaping the newline.

github.com/landley/toybox - 3a4917a5bb131fbe358c1c33ca71296774881fe1 authored almost 10 years ago by Rob Landley <[email protected]>
Promote printf.

github.com/landley/toybox - d3d633ff13187c34c3a04ce20b9ffcfb85c2c383 authored almost 10 years ago by Rob Landley <[email protected]>
One more bugfix for printf.c, with test suite entry. (Make %-3d etc work.)

github.com/landley/toybox - d0dead30a53c0353fd1c31aa5183fdcc2b30491b authored almost 10 years ago by Rob Landley <[email protected]>
Cleanup pass on printf.

Alas, passing a union as the last argument to printf does not appear to work
reliably, and there...

github.com/landley/toybox - caa6b014ba15dea377e5f65fcac57afaa932fa64 authored almost 10 years ago by Rob Landley <[email protected]>
More half-finished cleanup of printf.c, and more test suite entries.

github.com/landley/toybox - 70cbfe8eda34df26cc91c51cd77098612e33fd80 authored almost 10 years ago by Rob Landley <[email protected]>
Since "printf" is a shell builtin, printf.test wasn't actually testing anything.

github.com/landley/toybox - dd2cc65fdffad9820b2c1ab1d16309a91af8f579 authored about 10 years ago by Rob Landley <[email protected]>
More printf cleanup, and test suite entries.

Fixes bug introduced last time where toys.optargs was both snapshotted and used
directly and the...

github.com/landley/toybox - cc39d95a344240bec8f0c74a02c74d54620b735d authored about 10 years ago by Rob Landley <[email protected]>
Fix sed backslash parsing in square bracket pattern sections.

github.com/landley/toybox - a8df744605cb95dfb4bdd45ff64f7932166cc907 authored about 10 years ago by Rob Landley <[email protected]>
Another cleanup pass on printf.

github.com/landley/toybox - 77c8d1a7d006e177bd0283b48530a3397b687b6c authored about 10 years ago by Rob Landley <[email protected]>
Move fflush() checking to xexit() and have exit paths in main() call that.

github.com/landley/toybox - aad492fd87d689c443e87561c23abc2e12b785a9 authored about 10 years ago by Rob Landley <[email protected]>
Cleanup pass on printf.

github.com/landley/toybox - 87fd25f20b86731dd01332ce828424e7047ef29d authored about 10 years ago by Rob Landley <[email protected]>
Need to update install.c for the changed OLDTOY() argument list.

github.com/landley/toybox - 4f53457205593c965fa31715652e678783a9b89d authored about 10 years ago by Rob Landley <[email protected]>
Tweak status.html

github.com/landley/toybox - 3c9940445e71d9b4701449cc0dc47f7ac32d5803 authored about 10 years ago by Rob Landley <[email protected]>
Switch a lot of strncpy() calls to xstrncpy().

github.com/landley/toybox - 82effc97f9f2d1c258ea50cb11b130753b8ba805 authored about 10 years ago by Rob Landley <[email protected]>
strncpy(optptr, hname, strlen(hname)) is really just strcpy().

github.com/landley/toybox - 5f53d130b1eae9041cc88c0ffb89e2b5823da393 authored about 10 years ago by Rob Landley <[email protected]>
strtol() doesn't return error indicator for overflow, it just sets errno. So add estrtol() (which clears errno first), and xstrtol() (which error_exit()s on overflow).

github.com/landley/toybox - 86c747a4493b2b1aabab9b20d1c4566fddeeb2ca authored about 10 years ago by Rob Landley <[email protected]>
Debris from flag handling rewrite: don't allow -^A to actually trigger.

github.com/landley/toybox - cf2516ab4bcf2c1d4cb571539dae794c6a40c5c6 authored about 10 years ago by Rob Landley <[email protected]>
typo fixes

github.com/landley/toybox - eeff24f941eee0696b36ec7115bb9e958e38ac10 authored about 10 years ago by Elliott Hughes <[email protected]>
Fix for mix from Isaac Dunham (who can actually test it). (I tweaked the curly brackets.)

He says:

In the channel selection loop, "if (TT.chan)" had been combined with
a strcmp; the els...

github.com/landley/toybox - 88fe31338f02f8d189e5bfb9164e97b5b7e23d62 authored about 10 years ago by Rob Landley <[email protected]>
Redo option parsing infrastructure so #define FORCE_FLAGS can unzero flag macros for a disabled command (needed when multiple commands share infrastructure with a common set of flags).

This means the flag space is no longer packed, but leaves gaps where the zeroes
go. (Actual flag...

github.com/landley/toybox - f3e56f4e4ff773de95fa2c9daf979734d826fc33 authored about 10 years ago by Rob Landley <[email protected]>
When CP_MORE was disabled, the d flag was still in the [-exclusion] list at the end and option parsing fell off the end looking for it (segfault) if DEBUG wasn't enabled to check for that.

github.com/landley/toybox - 5834ddd6df659d9c9dc7333284fc86762dea061a authored about 10 years ago by Rob Landley <[email protected]>
When you include the posix header libgen.h, glibc #defines basename to some random other symbol name (because gnu) and this screws up nontrivial macro expansions of NEWTOY(basename), so work around it in portability.h.

github.com/landley/toybox - de699accf6804e8b1d8042b46c85500ee8c672c6 authored about 10 years ago by Rob Landley <[email protected]>
Link to gmane web archive.

github.com/landley/toybox - 774c599c7979392f4ec95e9b48ac25f0353c0c47 authored about 10 years ago by Rob Landley <[email protected]>
Another random link for the design page.

github.com/landley/toybox - 5c419e377a146cb35cd5d4970d01fecac58d1ff3 authored about 10 years ago by Rob Landley <[email protected]>
Fluff out help text.

github.com/landley/toybox - 7f24174da2eb388168b0320cb095b834b57992e8 authored about 10 years ago by Rob Landley <[email protected]>
Promote mix

github.com/landley/toybox - 989f453e133962c711d360b6f2e87ee5b0e56b22 authored about 10 years ago by Rob Landley <[email protected]>
Cleanup mix.c.

github.com/landley/toybox - 73b8bb5adecf796c717749eeb309f7659c7089db authored about 10 years ago by Rob Landley <[email protected]>
Teach factor to accept whitespace separated arguments (reported by Robert Thompson).

(The diff looks bigger than it is because of reindenting.)

github.com/landley/toybox - 4391e57913ab84f1edea56157192692d2e41458c authored about 10 years ago by Rob Landley <[email protected]>
getenforce and setenforce

two more easy SELinux commands:

github.com/landley/toybox - d5c66a9fd36777f80ba05301dcfa6789b103e486 authored about 10 years ago by Elliott Hughes <[email protected]>
those of us who need to check in generated files find that 'tr' and

'traceroute' keep swapping places. self-inflicted, yes, but not much i
can do about it :-(

github.com/landley/toybox - 627cd0f0d974e9ba25d95cb8f5e23ac6c9c93aaf authored about 10 years ago by Elliott Hughes <[email protected]>
Merge catv back into cat as discussed on the list. Add comments about infrastructure upgrades needed to restore separate catv option.

github.com/landley/toybox - 677c1b5b4051288a75db1ec24ce38f0067ca80af authored about 10 years ago by Rob Landley <[email protected]>
Allocate space for null terminator.

github.com/landley/toybox - 9b5000c920f2ba44dea1ef45f3a23191d46489b8 authored about 10 years ago by Rob Landley <[email protected]>
sed 'r' didn't work right.

github.com/landley/toybox - ea8be3d41f1b818081012c79c0935f9c2173924d authored about 10 years ago by Rob Landley <[email protected]>
Another sed bug. (The e2fsprogs build uses multiple line continuations on the same command.)

github.com/landley/toybox - c09b79dc71d986213d37805131b89a135202263e authored about 10 years ago by Rob Landley <[email protected]>
Promote sed to posix.

github.com/landley/toybox - 1a1e0a9d325dd1ca7461a8e8203dd47bab6a8bc1 authored about 10 years ago by Rob Landley <[email protected]>
sed: implement 'l'

github.com/landley/toybox - 32cd2b770fe3ac8c419a29156162f3a037cf47a3 authored about 10 years ago by Rob Landley <[email protected]>
Add tizen section to roadmap.

github.com/landley/toybox - a136fa5704a789cf9ef93fb7987a0dc342b81898 authored about 10 years ago by Rob Landley <[email protected]>
More sed bugs.

1) Newline in -e after s/// was eaten as "whitespace before flags"
2) \\ needs to be passed thro...

github.com/landley/toybox - 95b76828d62afa87eec3d1b1544758a025521912 authored about 10 years ago by Rob Landley <[email protected]>
Decouple cp and mv so mv uses its own --help text.

MV still requires CP enabled until the flag generation logic gets updated.

github.com/landley/toybox - c2d6740a142f1e6b71b9bc320b09575e29867bc2 authored about 10 years ago by Rob Landley <[email protected]>
Give fstype its own config symbol (separate from blkid), and fix blkid not using more accurate ext3/ext4 filesystem sub-type.

github.com/landley/toybox - bce0e002dc5d25ae109e0b72da071986f211cf9c authored about 10 years ago by Rob Landley <[email protected]>
Fix yet another sed bug.

The s/// command would copy the \ of substitutions before deciding what to
do with them (general...

github.com/landley/toybox - a1ea6bb8ea8143cc18fa00703e58819929501654 authored about 10 years ago by Rob Landley <[email protected]>
Make sed a\ line continuations work properly for different pattern input modes.

github.com/landley/toybox - 807a50d89976e2de081d487a54e8e109d49f0a6d authored about 10 years ago by Rob Landley <[email protected]>
Fix bug in sed y/// where bytes in target but not in source were replaced by zeroes (nul terminator overwritten).

github.com/landley/toybox - 2c23705ab0e3038f0b5bfd3af742d07a3383ed54 authored about 10 years ago by Rob Landley <[email protected]>
Last sed bugfix broke 'b', fix it.

github.com/landley/toybox - 76ea44a623ba186a3c4662d54b71b60b358ae0ad authored about 10 years ago by Rob Landley <[email protected]>
Leftover variable from factoring out base64_init() caused an unused variable warning.

github.com/landley/toybox - 4e49a944da7a6816d126205c79700704708f4300 authored about 10 years ago by Rob Landley <[email protected]>
Oops. xfork() moved to portability.c and the config2help.c build wasn't including that. (Worked until I did a "make clean".)

github.com/landley/toybox - 79839a4f4f1430f4ddf4ec1d3b1836f8b91ff671 authored about 10 years ago by Rob Landley <[email protected]>
Forgot to check in a header file for base64.

github.com/landley/toybox - 5bec5ba825d07b7be73ff16b3d9c649248690783 authored about 10 years ago by Rob Landley <[email protected]>
Add "make help" entry for "make change".

github.com/landley/toybox - e72ea20cada3cf20864740caa99e7b099b5f7ec9 authored about 10 years ago by Rob Landley <[email protected]>
Add base64.

The tizen guys wanted this. Yeah, I know there's base64 code in
uuencode/uudecode, but that this...

github.com/landley/toybox - 0517eb7d604da454213e42d55f477401dc7f7ebf authored about 10 years ago by Rob Landley <[email protected]>
Remove more strncpy() calls.

The semantics of strncat() and strncpy() are non-obvious, so let's not use 'em.
Both zero all th...

github.com/landley/toybox - 87fbe12dbba8278d58d6581626e4cf4224dbca8d authored about 10 years ago by Rob Landley <[email protected]>
here's a patch that should let us replace toolbox's chcon.

(it also adds a feature, -R, because toybox makes that so easy.)

you'll probably want fancier co...

github.com/landley/toybox - e75b1d8d96ea104e5f4fa3f7d06e289cbbedc435 authored about 10 years ago by Elliott Hughes <[email protected]>
Make unescape_delimited_string() copy the string so error reporting isn't so messed up.

github.com/landley/toybox - ed053c0fa6ea2bb65be902d0ad437ab4f2031552 authored about 10 years ago by Rob Landley <[email protected]>
Fix some sed bugs and improve error reporting.

A newline after 'b' commands in -e command line patterns was being discarded
as whitespace, a si...

github.com/landley/toybox - acb2d0ed74312da548e2b209732b2f7e67a65c23 authored about 10 years ago by Rob Landley <[email protected]>
Work with buildroot's extensively patched uClibc, and for nommu support move xfork() to portability.h and #ifdef based on __uClinux__ (which seems to be the nommu compiler define).

github.com/landley/toybox - 50fc9ed007b084883fb09c64866c45c571e70a99 authored about 10 years ago by Rob Landley <[email protected]>
Implement xstrncat() and fix xstrndup().

github.com/landley/toybox - 2fb85a3588bf2271e0506c5ab3bcb6a84bf77255 authored about 10 years ago by Rob Landley <[email protected]>
Add shred.

github.com/landley/toybox - 0a7915624ea4d3a629879e6a6fd79f432ffde016 authored about 10 years ago by Rob Landley <[email protected]>
More gzip stuff: now creates -0 compression files (store only), and does so to stdout.

github.com/landley/toybox - 2ebbefb1a429022235c8db8b39e94ad01f03a8b6 authored about 10 years ago by Rob Landley <[email protected]>
Fix bug pointed out by Elliott Hughes ("vmstat 1" should repeat endlessly), and remove final delay (after all output) for "vmstat 2 3" case.

github.com/landley/toybox - fad2fb09b840ebfeb3612800eec0fdb4b7d8a795 authored about 10 years ago by Rob Landley <[email protected]>
Note posix mailing list posting correcting a bug in the web version of the standard.

github.com/landley/toybox - bce8a514aaf0a7e8b98ff20217c7a44a50aa46de authored about 10 years ago by Rob Landley <[email protected]>
Don't mount a filesystem over an existing one with the same /dev and /dir.

The OS mostly catches this for block devices, but calling "mount -a" twice
shouldn't overmount t...

github.com/landley/toybox - a03a0449e810c26f001cdfc56e5527f51577a639 authored about 10 years ago by Rob Landley <[email protected]>
Switching on fortify was not kind to the pending directory. Fix the actual build break (open(O_CREAT) without permissions).

github.com/landley/toybox - aebcdfa659679e5a1f92a9ad12e7c36621962988 authored about 10 years ago by Rob Landley <[email protected]>
Start of deflate compress-side code, mostly refactoring and stubs so far.

github.com/landley/toybox - 1ba12b427e84c5c6578aa767a096f5859e7283ce authored about 10 years ago by Rob Landley <[email protected]>
Ashwini Sharma pointed out that "mkdir sub; ln -s . sub/up; du -L sub" shouldn't loop endlessly.

github.com/landley/toybox - 10e0d86c088a3eccc27095b51d753e05f3f3cbc8 authored about 10 years ago by Rob Landley <[email protected]>
Refactor expr and add another test entry that works with TEST_HOST=1 but not with the one in pending.

github.com/landley/toybox - ef6a773198040a05a56dec2261516fb149823cf6 authored about 10 years ago by Rob Landley <[email protected]>
Tests for operator priority groupings.

github.com/landley/toybox - de211e0288bd2cd8e27ab23252ec2e4077b3d589 authored about 10 years ago by Rob Landley <[email protected]>
Remove the strncpy from mountpoint, and make a lot of other changes while I'm here (to be described on the mailing list).

github.com/landley/toybox - a92f4e1e2097fac6a5d35fc519861e92b39fbc8b authored about 10 years ago by Rob Landley <[email protected]>
The "re-exec to regain root permissions" logic broke the error message when calling root-only commands through the multiplexer.

It would say "no such command" when it should say "not root".

github.com/landley/toybox - dc11ed8d3bc9a3d5b3610db813b63f214d4932dd authored about 10 years ago by Rob Landley <[email protected]>
Minor whitespace cleanups.

github.com/landley/toybox - 7701bf9a35cf92e6bc6cf77bf28076c1d8181da9 authored about 10 years ago by Rob Landley <[email protected]>
expr.c: Added '==' sign into list of operations. Also added support for regex pattern match.

github.com/landley/toybox - c3657fd41199ca97b74e66e80734f5c4a9509da4 authored about 10 years ago by Ashwini Sharma <[email protected]>
Improve error reporting in parallel build. (On error, wait for all children to finish before exiting.)

github.com/landley/toybox - 42a36d6314e6ad7af6ab732ddc6d4e7577bb2c7b authored about 10 years ago by Rob Landley <[email protected]>