Ecosyste.ms: OpenCollective

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

github.com/landley/toybox

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

Fix typo in the xexec tweak.

4fe080d418333afeb486f478c332bbcdace37f1b authored almost 4 years ago
Add cp -u

2a6f03eb088b21a68ee4f5fa45b7cd4f7c7bc558 authored almost 4 years ago
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...

cecc41a3c52519ac1d65989b266fec32a2bd6ff7 authored almost 4 years ago
Fix the next test.

6a73a3c9ee4b9e17704c368c27d0af34d785fa53 authored almost 4 years ago
Add a missing pop_block().

4e2a912dac1f4a94ac81ea9c894de3d385563a2a authored almost 4 years ago
Typo

8f75eed7d5fe88434872172694bdbecf6e0e5e56 authored almost 4 years ago
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 ...

aa16e0e2ccb366835c2aec0cb2f6e0e52497ede5 authored almost 4 years ago
Fix system calls and get rid of tempfile

6a9b81b7e36d106ce017289206f4569c2c5b4df5 authored almost 4 years ago
More cleanup of chsh.c

0202865a1d8d5ffb8f312bf700d74fb4f43f14f5 authored almost 4 years ago
chsh cleanup: Reindent and tweak help text.

b82dd46f4d756158c2ceaa219d54d51465f53dd3 authored almost 4 years ago
Create (lsb) chsh command

89f0b987a4d330daf656e9bcbd24b93a2ee20133 authored almost 4 years ago
Fix install -t

3cde24138ac06e384965db2944e858d2110ecacb authored almost 4 years ago
Nir Lichtman pointed out that rm -p shouldn't try to rmdir / at the end.

855eca3eaf8ea849599662900a3de18f6ebab9ef authored almost 4 years ago
Fix another sh regression.

3aaf63f6d908eea164111791ec90fd608000dfe1 authored almost 4 years ago
Fix some more sh regressions.

7a4524c989c2702b0c86ebe210aa6315da3a1a77 authored almost 4 years ago
Fix first few testsuite regressions from function/local plumbing.

37731bc3ec6376f0dbcfb8bdf392696d87af881f authored almost 4 years ago
telnetd: don't exit if waitpid() returns 0.

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

81908f2ff28c6e131bfd81ff3c5d1b9ee93ef038 authored almost 4 years ago
init: fix waitforpid().

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

1cc17b2f2fe93fdf71ffb650c6013b7560dd2d2f authored almost 4 years ago
Tighten up parse_word() a bit and and teach it to read empty ${}

(fixes up some test suite tests).

620eeaf2fca0ebeb1179ffdc9bdf5d923691558c authored almost 4 years ago
vi: various fixes.

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

0b6757da5d84a7cdd903099aefd2ff7fe668705c authored almost 4 years ago
Add local variables and basic function() support plumbing.

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

935217e6d470b0819f2970a4408cedca52fd9525 authored almost 4 years ago
Add more shell tests, and teach txpect to do regex matches (RO and RE).

8c7af93bde1798da7d59182201b3599158bf926d authored almost 4 years ago
chmod: fix +X.

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

e63c9967423b5b9c6fc48d2b31a04e3c030bc16a authored almost 4 years ago
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...

8e9d7aaa838ed58b7b354a3b378cda1bd84f8dc5 authored almost 4 years ago
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...

4ff131ff958e2bbe7f1cc8a3d0e0acdd4a48c7ee authored almost 4 years ago
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...

56ef8fcedc48bed353e3ccc694a8db3f322fae6f authored almost 4 years ago
df: Allow -P + -k together as defined in POSIX

8c2825c496ae4fb91483dee68d5c171ba6c0fd77 authored almost 4 years ago
Minor tweaks: #define -> inlineable function, while() -> for(;;)

5f9d1f5bb59b1f129596bccb1928ce22d351f7c9 authored almost 4 years ago
tar: fix base-256 output.

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

5c6628e724e9d3625f161db077b15b232e2ca096 authored almost 4 years ago
Some more shell tests.

668572a8650f3d4ff0fbe54ea07499b941244bdb authored almost 4 years ago
Yi-yo Chiang wants cpio -u implemented, and sent some tests.

f1be076b52adcad7b2419315cc148009a1bc2fec authored almost 4 years ago
Tar should remove empty directories where it wants to put a non-directory.

50f604f415d77b3679df1f8d9d3856f9840998be authored almost 4 years ago
dd: simplify signal handling and fix status output.

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

1ba53eead1ab9787e77dc43196b8402ec96e7fd4 authored almost 4 years ago
Add df to the macOS default configuration.

"Works for me".

d57dddaf264c57df6e7efdcd294d39060ae3e199 authored almost 4 years ago
Remove ifdefs from stat.

1f9e37e36117c51a17f017143f1b68787d913979 authored almost 4 years ago
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...

e2ad5c6c155ef63833f6d3774b607c314fbe8987 authored almost 4 years ago
Nope, marshalling install -D to cp caused regressions.

4e9837a7ca0f1ee570245bf6df505ef84a5a5ed5 authored almost 4 years ago
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

6817e114bb320f197727740d7905a5cb2849bdfa authored almost 4 years ago
Fix df on macOS.

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

47b9f6a12d471086ceb11c8e2893450074e50543 authored almost 4 years ago
Ethan Sommer pointed out that install -Dt needs -D marshalled to cp.

e6207d5e0f42452e96c66a9173b3d17468629beb authored almost 4 years ago
Fix cp -t with one argument and make --parents work with -t.

c42089fed7adbf3ae1a0fd73b3a7b1e4f10e31db authored almost 4 years ago
Teach df /dev/node to reliably show rdev even when devtmpfs is mounted

more recently than the resulting mount point.

9c7085f484dba1e14f47fc05e249c18922b8db5d authored almost 4 years ago
Only error once for each "df nonexistent"

b26587fb956c4145d67518ea295cd058ef21c4f9 authored almost 4 years ago
Let df -a show overmounted filesystems.

4d3bf8b61e2158856572ca927cd831b9461a03a4 authored almost 4 years ago
Fix mount.test command string quoting

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

Change-Id: ...

086356b88e237941eecc78b33b84af969bec0fbe authored almost 4 years ago
Redo df plumbing a bit.

5f5f97f215bb5d398bb7b0027d8e9ab84668e07a authored almost 4 years ago
cpio: Guard free() with CFG_TOYBOX_FREE

0678d2c1e6561960704817722f41d33ee851730f authored almost 4 years ago
Add find -executable

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

5c73305f0e4bb5e16aae798e177ec9213f853eec authored almost 4 years ago
Cleanup pass on df.

06b1d9e24e82e2919fd673fe5f63bd30c43a1e33 authored almost 4 years ago
Minor cleanup.

1bd9528453c2f0cecf60e7975ab5b3c1eada8e56 authored almost 4 years ago
Add -t to cp and mv.

6d615c73b321a2f3a337d5d9a949f159d436375b authored almost 4 years ago
Switch sha3sum on in defconfig, and document -b (it's same as sha2sum).

7ea411beed603f57ee1fb4bb9dcc10736f1285aa authored almost 4 years ago
Add install -t

3d5cb06e8b5cfcd4226375ff435b1725399fda13 authored almost 4 years ago
ulimit: include descriptions and units.

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

477553572fe670d88959c4fd909aad8dd4e5ed5b authored almost 4 years ago
Yi-Yo Chiang reported that readlink() failures could corrupt archive

by not writing as much payload as the header promised.

8828d9cf77ec57604925753eeac45d0463a5b74f authored almost 4 years ago
Have xclose() perform the fd != -1 test.

a079039934311f64a48e1010a97492a22126042e authored almost 4 years ago
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...

bdb0e5fd6e031f9b3fae95d8180cf6bba32384c8 authored almost 4 years ago
Remove unused function.

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

a4b84d92d9016dc8460255b954ffbd04d5ff6b92 authored almost 4 years ago
Add lots of "static" annotations, make a couple things use FLAG() macros, etc.

664c417af5d16e217557468ba747a369e8e1ab6b authored almost 4 years ago
netcat.test: reduce flake.

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

9f7f62615f3963591af33fcc7582867f7063efd2 authored almost 4 years ago
netstat: various fixes.

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

859764984485fd0d7f92b0f49430832c3d95888e authored almost 4 years ago
Cleanup pass on netstat.

7ed7ff8386cc982ec9e334332f853e9e1f0bcfc6 authored almost 4 years ago
Cleanup pass on modprobe.

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

6e3f2fdb2bf11e2f49130436fa8ca7d3ad9c52ee authored about 4 years ago
Minor tweak.

551f355d248c52c867399dcfcda6abe174c940c9 authored about 4 years ago
rm: Add testcase for "rm -f <readonly_filesystem>/missing_file"

40fbe7eb5e3b41504947d942bf39471fff8df1b7 authored about 4 years ago
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...

a8d8fbfa659b1e7e68110e6468de1bcf6a61fe34 authored about 4 years ago
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...

fdbdcc2ea1ab813f1fb9302f9a0e47d94ce33108 authored about 4 years ago
Yank TODO note-to-self accidentally checked in, and fix "make test" standalone.

3e889781acfc83f74ce5dc7f70321db204177f79 authored about 4 years ago
Elliott wants the test->[ symlink back. Enable when either sh or test enabled.

a577b476e45f9185ecfcc185f8d283a2e77caeee authored about 4 years ago
Fix a couple of test regressions from last commit adding function() plumbing.

ff1b4ae050ab3ee12038f1bf91174732c4dcd040 authored about 4 years ago
toysh: start of function call logic.

f280c752cfb02b411e1288acd235305d8ad97353 authored about 4 years ago
Shut gcc's "is not actually used uninitialized" false positive warnings up.

2d48d13735a7b532d76fe7da8afe8244b3224c50 authored about 4 years ago
A few more getty cleanups.

e6d103ce23000a326065bd11a708e69b08d3d1e5 authored about 4 years ago
getty/telnet/tftpd: minor cleanup.

Remove STDIN_FILENO and use FLAG().

Use xsetspeed() rather than have a duplicate table.

Inline...

612ad45d51ca39df671c4b50906cd9606117fc53 authored about 4 years ago
Fix bug pointed out by asm89 and add test.

2b4abd05efcc96061eaa87a6fdbc3f7121fd2c08 authored about 4 years ago
Fix grep bug where -f /dev/null added "" regex matching everything,

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

76d3160cfabe15568f006ad530c105b9ad6fdcdd authored about 4 years ago
Remove redundant blake2 mention and move base32 into the implemented list.

054d82ff46e236a7238c73d3dadfe446a6de4ff3 authored about 4 years ago
Cleanup base32 slightly.

af50278fc92ce5846d727eaa2b66b85063f53cae authored about 4 years ago
A few more shell tests.

b3910f4871f05ed3c90dab7aa7e9cc25abae2c91 authored about 4 years ago
Fix "date -I" segfault and teach lib/args.c that "I(opt):;" short opt with

no argument returns NULL same as --opt without =

e7c86f7d79f641ab8a0e542d32e857494e943389 authored about 4 years ago
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...

661130b38cbf74056430e4b280512369dfcd9fe9 authored about 4 years ago
new toy: base32

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

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

b6b5becf359370c7f32d8419bcf8f50a47fbe933 authored about 4 years ago
seq: always xwrite.

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

824de078e4bdc752da9559cc64df627028310cc3 authored about 4 years ago
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...

4786fd610362501c2f8c70fef1d8fb66efd0996c authored about 4 years ago
Fix comma regression reported by Denys Nykula.

32eed40a14c1f550e366741f0a2e7aa69093dc3d authored about 4 years ago
toysh: fix break/continue

3bd2e82dac075cd5a79a99e3ca31dc3f9a812b08 authored about 4 years ago
toysh fixes and tests

390fa7bbf39eaf86d53c6842ad99ed7829a51cf8 authored about 4 years ago
Add MacOS 11.0 to CI Builds

3e535f2f31226f225ad4335c678dcd13c6295950 authored about 4 years ago
Fix (( )) quote termination.

d7a2436cea81168078c7fdfc65114749abcbf9c6 authored about 4 years ago
FS_ENCRYPT_FL introduced too recently to depend on, use constant.

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

4b78acc7bc1af2e7e02bf07538c3f3a14c5e97ce authored about 4 years ago
Add seq INT_MIN test.

c0f0b967a81156e781ebe335eebe9932ceb10ce2 authored about 4 years ago
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...

2eacf3843380344ea7cfdbf49167ed0d293430a1 authored about 4 years ago
Andy Hu wants mount -tnomsdos,smbfs to work.

b74d4319dcbf173e596bc422796058091e7e07b8 authored about 4 years ago
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...

e474cf80c37f7c91d01c2c5b81cbc54444f47cc9 authored about 4 years ago
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 ...

fbc2252f4f5260d616d6929351aa9cac5d227124 authored about 4 years ago
Speed up count: use 64k block size, update display at most 4x/second.

83326334d5bda7fefbd174630c23eae3b5f41604 authored about 4 years ago
Implement set, trace support, and function call context stack.

b25f04996cfd4700fd3ee164168d9737c010908c authored about 4 years ago
main.c: fix UTF-8 on macOS.

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

bec202875d27950ed64ce54e6b9a10a9a2e5720e authored about 4 years ago
Add test for FEXTRA flag on gunzip

640b1bea8b2ffafab024b5966f618a9de56a44f2 authored about 4 years ago
Follow RFC1952 when consuming gzip header

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

74461ba2eeb0d77205c732419ab5ce5832b1caca authored about 4 years ago