Ecosyste.ms: OpenCollective

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

github.com/landley/toybox

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

Add test for sed -e -f interleaving.

49329a11f775060f07f20a03b3c21c07e44098a8 authored about 2 years ago by Rob Landley <[email protected]>
Move num_cache from lib into its only user.

9ded40eda95737bb5dfcd9f94d78b4aa0e2868aa authored about 2 years ago by Rob Landley <[email protected]>
Have tar handle / and .. at / as ./ and let -P retain ..

39548a7712879446115dcf7621d2aa05b1ccdab3 authored about 2 years ago by Rob Landley <[email protected]>
Tomasz Sterna reports that NULL options annoy the syscall,

which happens loading dependency modules.

56d89e51ba9e57c2e9731c82399686cdb941c3d2 authored about 2 years ago by Rob Landley <[email protected]>
Linux kernel commit f8f0d06438e5 fixed the weird "allnoconfig has =y" issue.

a1f1cfdf0431c43939ef1295e0044f8fc8447e74 authored about 2 years ago by Rob Landley <[email protected]>
Implement -i option.

804abb28994ff613c729b2871d002e3540919d9d authored about 2 years ago by Rob Landley <[email protected]>
sendfile() can also return EXDEV, so fall back to read/write loop on any error.

ff3f93a3bae65a9a1478874b09758a85d50f6eb3 authored about 2 years ago by Rob Landley <[email protected]>
Fedora sticks \x09 style hex escapes into the dmesg output for some reason.

62f89088fdb1c63301b15ec3502fdf70990d17cd authored about 2 years ago by Rob Landley <[email protected]>
Fix comm - and make comm -123 detect missing files.

b5baa040128e8cc4cda5b5e982f03a0ed92acce3 authored about 2 years ago by Rob Landley <[email protected]>
Teach sed to parse interlaced -e and -f in order.

891c5520f493802a78c80ec20429eb107ce72241 authored about 2 years ago by Rob Landley <[email protected]>
Typo.

a09e7d899b9d61a8605a791bb3a04eb0a72e8763 authored about 2 years ago by Rob Landley <[email protected]>
Parallelize mkroot tests.

7c567c98ef4b45410d0d4bbfa538fdd124cf6c6c authored about 2 years ago by Rob Landley <[email protected]>
Fix bucket sort with -F

b26689f9506556e3236c103c1dca48971430ca66 authored about 2 years ago by Rob Landley <[email protected]>
Add test_mkroot.ssh and teach mkroot to call /mnt/init if present.

564dd81f2dcab492eb299b53730466193b617643 authored about 2 years ago by Rob Landley <[email protected]>
Kill process group (child processes too), and ignore SIGTTIN and friends.

ee37aaec97522b3d375c4a9f70c4020d78cf9833 authored about 2 years ago by Rob Landley <[email protected]>
Fix index.html display in directories.

b17dc8e111dd408db04ea7ae70c410fd3054a751 authored about 2 years ago by Rob Landley <[email protected]>
mkroot init: mount /dev/?da on /mnt if available (for qemu, not chroot).

cbbd864dcc0bb6c5f49ad7ce3f9e77fc43ab39b0 authored about 2 years ago by Rob Landley <[email protected]>
The mountpoint logic isn't the same as same_file(), and -q applies to

argument not existing.

0df9a26c7c844e088abd519cc6c5748b514695e9 authored about 2 years ago by Rob Landley <[email protected]>
Add mkroot "overlay" package that copies an $OVERLAY directory into the

target filesystem.

eb88ab8a0d8636f1f55964f3f8ccb65dd52720b5 authored about 2 years ago by Rob Landley <[email protected]>
E5ten's suggestion for not truncating output when redirected to a file.

10325745e3a32a51d4ae99713872230db6680151 authored about 2 years ago by Rob Landley <[email protected]>
Make skipnot and toyonly play nice together.

73bb9924a280e97f1f54be30e4b1cb600070210d authored about 2 years ago by Rob Landley <[email protected]>
Change tar/sed protocol to include file type. (Doesn't use it yet.)

902b120ee62a4e360ec8ff28a5a604a9b2df0935 authored about 2 years ago by Rob Landley <[email protected]>
Fix grep fast path logic to handle initial \ and '^$' pattern.

1930098552665575539f12744677bcc9acebb570 authored about 2 years ago by Rob Landley <[email protected]>
Convert testing -> testcmd

96ad49e30e148c69e9b699c7d1425fc3466c5df6 authored about 2 years ago by Rob Landley <[email protected]>
Add sed --tarxform mode to wrap a simple protocol around transforms,

and have tar --xform use it.

5262c5387426f645d9df9f0398ea77965d437112 authored about 2 years ago by Rob Landley <[email protected]>
Loop in xgetrandom() when asked to fetch more than 256 bytes at a time.

While we're there, eliminate the third argument so the xfunc() always
exits when it can't get ran...

331ecc9ae78726433afe941ee24fc1befb15b6ae authored about 2 years ago by Rob Landley <[email protected]>
MacOS sed remains sad.

8ed0bfe6e3b998a7bc74bdb131da194b65223509 authored about 2 years ago by Rob Landley <[email protected]>
Cleanup (use flag macros, remove unnecessary variable, etc).

57d6fec9aab7f0d2ce462945cb6ef1471bdef135 authored about 2 years ago by Rob Landley <[email protected]>
Fix some sed -z cases and add tests.

0ceee5c382fe8f5df49dee1b2f3a148740a280aa authored about 2 years ago by Rob Landley <[email protected]>
Speed up grep with large numbers of patterns.

Build on autodetecting -F: separate fixed patterns by first letter and
traverse string checking ...

a7e49c3c78605f782c2611fbd2900ce756517d9f authored about 2 years ago by Rob Landley <[email protected]>
Speed up base64.

ea7c1a7ab0d6fad60a5e2c0f994a0dbb71cfaa84 authored about 2 years ago by Rob Landley <[email protected]>
Teach grep to autodetect fixed patterns and run fixed and regex tests together.

2611693169c017a8c867c4c971a3246e4c985b99 authored over 2 years ago by Rob Landley <[email protected]>
Collate tests.

138378640fd1a6207a51eca384de683393312372 authored over 2 years ago by Rob Landley <[email protected]>
toys/lsb/mount: make "mount -a" can mount directory bind in /etc/fstab

Example:

/data/opt /opt none defaults,bind 0 0

Because of the "type" is "none", "if (!type)" w...

0fbebacdf1a377fb1351c60e65839bd376ed075a authored over 2 years ago by licheng <[email protected]>
Older versions of bash (such as the one in macos) don't understand &>>

and despite >& and &> being listed as synonyms in the bash man page,
>>& isn't supported even by ...

99bfe9da4142ae94ecd0a4b6210a614d2f454464 authored over 2 years ago by Rob Landley <[email protected]>
Make was listed twice (thanks mtsl8).

7677216b13b6e598ff7ff7e4aae7fa86ad014b25 authored over 2 years ago by Rob Landley <[email protected]>
Modernize xxd tests.

1135b848d42cc1415c0fda7edd13e6eed1384785 authored over 2 years ago by Rob Landley <[email protected]>
Make -c 0 disable columns and -g 0 disable groups.

Add a test that circa 1998 xxd doesn't pass, but newer ones should. Skip
on host for now, fix wh...

88fb25f0176b094da91385c02122aaf0497fe710 authored over 2 years ago by Rob Landley <[email protected]>
Show SKIP: messages. (Inverted test, oops.)

0d1965323afc501ad329c606905f0107ac2a2ae4 authored over 2 years ago by Rob Landley <[email protected]>
The ./configure of gmake 4.3 depends on -a not just meaning "and" but being

a synonym for -e. (I.E. meaning different things depending on position.)

7b9fb3ba4da007e2f12bee2589bc05bc4ade507a authored over 2 years ago by Rob Landley <[email protected]>
Trivial cleanup.

0e19322f39e066e3d547f5bbbeef0f705138ad07 authored over 2 years ago by Rob Landley <[email protected]>
Don't truncate log file when stderr redirected.

92252a20037533ef0b0af5f50c790a711ba72306 authored over 2 years ago by Rob Landley <[email protected]>
Fix spelling

26a945a6dea820b3d570059a8777c41968efd49c authored over 2 years ago by Antoni Villalonga <[email protected]>
fmt: Define GLOBALS 'width' as long, not int

This change fixes fmt toy for Linux/s390x.
Without that change width value is always 0 on that a...

d4ed83762519c16e01221e655741bb621a792602 authored over 2 years ago by Antoni Villalonga <[email protected]>
Move -Wno-string-plus-int to portability.sh and have it only apply to clang.

On gcc that spurious warning isn't generated so the -W to suppress it
isn't recognized. It doesn...

f492273712d780f4d90966952362743b85f4c8cf authored over 2 years ago by Rob Landley <[email protected]>
Debianize paths

630394b86985b0c728b1aa05731624b0a3165f88 authored over 2 years ago by Antoni Villalonga <[email protected]>
Some build environments no longer have PATH_MAX.

dea2ace53450488ad8da79cb4f8f1301e33a3cd0 authored over 2 years ago by Rob Landley <[email protected]>
modinfo: add scmversion to the list of tags

The scmversion tag is used by the Android kernel to store the SCM
version of external modules. S...

97100fe6de01ef823043cb8242afb4aa24a458b6 authored over 2 years ago by Daniel Mentz <[email protected]>
Change another SKIPNEXT to SKIP.

0fa628026cb331cae2c3b89b66589b7f4da08501 authored over 2 years ago by Rob Landley <[email protected]>
Cleanup cksum.

e9e7aad64d6d0547d734cf686b64c74bec1324dc authored over 2 years ago by Rob Landley <[email protected]>
Match another sed posix violation (l escapes \n), more tests, tweak docs.

4fe59859d4de24a0f820340e57a845a455bc1874 authored over 2 years ago by Rob Landley <[email protected]>
Fix sed -z P with test.

f2f35fe8293788d0e9a1bdbaa3a4805015c07a1e authored over 2 years ago by Rob Landley <[email protected]>
Fix sed -z and add test cases.

5147183a217a9dc9325764fba176d9db52d6e474 authored over 2 years ago by Rob Landley <[email protected]>
Make N at EOF do default print: Linux has never obeyed Posix here.

Red Hat 9 circa 2003 treated EOF as a blank line, so added an extra EOF,
but that got fixed long...

1724b3589a50b35b247707d6a093cdad4f9158a0 authored over 2 years ago by Rob Landley <[email protected]>
portability: Fix timer_settime_wrap for 32bit systems with 64bit time_t

glibc does not define SYS_timer_settime if the 32bit syscall is not
available, new architectures...

9c9d3fa7ead59ea5f97eca93921413e43106c390 authored over 2 years ago by Khem Raj <[email protected]>
Remove leftover uses of SKIPNEXT, indent skip groups so

they're more visually obvious, use a SKIP value that looks intentional and
not like file permissi...

5f7faac453633820837ff32f9534af81ca5e82a9 authored over 2 years ago by Rob Landley <[email protected]>
Minimal fix for the macOS tar.test breakage.

The "666" seems appropriate for such a contorted control structure,
and genuinely feels _less_ e...

5c9e8c77bc7619d747f88679411e1538f5053e13 authored over 2 years ago by Elliott Hughes <[email protected]>
More comments, collate macos-skipping, update root-only tests.

925b632ee4afcc7918d0b6520e9fee7f8b9a41c4 authored over 2 years ago by Rob Landley <[email protected]>
Test suite update.

Reorder functions to group helpers and API, eliminate SKIPNEXT and make
SKIP a count (with optio...

959bf3461909c09bdaaaf854f24a7fdc0bfee16c authored over 2 years ago by Rob Landley <[email protected]>
Remove dochroot and mkchroot (they require root access, which mkroot does not).

e70126eabef809fb0819a3a9a19dfadfacd312d4 authored over 2 years ago by Rob Landley <[email protected]>
Support tail +123

Old style of saying "tail -n +123".

Change-Id: Ifaf78eb1d8611536a9e3428081009a55aea4ce47

107996e296a559688f735b1d97eb86eb58fa8dd7 authored over 2 years ago by Yi-Yo Chiang <[email protected]>
tests.tar: fix tests for macOS.

macOS doesn't have a 'root' group (it uses 'wheel' instead), which
we can work around by using '...

4225f1a9d0155b119d091f61e4095a60767db31f authored over 2 years ago by Elliott Hughes <[email protected]>
Make all the tar tests look at archivers in the same order so people reading

the code aren't confused by seemingly different tests.

(This is the order they were historically...

413b7afdbfe2907aed7762472ff2f8a498a31453 authored over 2 years ago by Rob Landley <[email protected]>
Tar compression autodetect wasn't falling back to gzip -d without zcat

because fallback compressor name selection happened before autodetect.

3264774571cc1ae5fbb4dee29d4216e041cdd73d authored over 2 years ago by Rob Landley <[email protected]>
xwrap.c: fix build.

The last change was a bit mangled.

61503984792cad62dc667693220dc06c8ccea362 authored over 2 years ago by Elliott Hughes <[email protected]>
Some headers define stdin as a macro, avoid unnecessarily stepping on that.

3dae8ebfe590a1b3ae86d2dc9d3e206357fd2eba authored over 2 years ago by Rob Landley <[email protected]>
Cosmetic tweak.

(TT starts zeroed so we don't need to initialize fields to zero, while
touching it move that dow...

e4103b8183cfb9992badd3fbc9827e9bc4a74c38 authored over 2 years ago by Rob Landley <[email protected]>
timeout.c: fix for macOS.

I don't know why we get away with this on Linux, but macOS really
means business with the "value...

6b78f8de9edab04b520e6c6ed39bf7b36021d146 authored over 2 years ago by Elliott Hughes <[email protected]>
Fix the seq and sort tests on macOS and Android.

seq has a test that uses timeout (which isn't available on macOS),
and sort had tests that used ...

296a75aa8028f374730a495e83bb5c73518d4f9a authored over 2 years ago by Elliott Hughes <[email protected]>
losetup: Wait for ueventd to create loop device on Android

Android doesn't use devtmpfs. Instead device nodes under /dev are
created by userspace daemon ue...

51a43ad5225153582b40d3fd289701efc63c8f62 authored over 2 years ago by Yi-Yo Chiang <[email protected]>
mount: chomp() trailing '\n' off xrunread() return value

losetup -sf prints trailing newline, which confuses the mount command:

mount /mnt/test.img /m...

b003ee8d18fc5176ab6792a43ec3bed49f827c41 authored over 2 years ago by Yi-Yo Chiang <[email protected]>
If the kernel hasn't got sendfile() it can return ENOSYS, not just EINVAL.

63f787b602f73dd348b6bbf2df795390e5c7411f authored over 2 years ago by Rob Landley <[email protected]>
strace: fix 32-bit x86 build.

This doesn't work as well as x86-64 because I haven't implemented
decoding of any of the legacy ...

d627fa05d48004a795719d977fdd9a87d1f913c6 authored over 2 years ago by Elliott Hughes <[email protected]>
lsusb: remove unused variable.

d21c4c9fd16bee7db67f75627ea607dadf8bb5f3 authored over 2 years ago by Elliott Hughes <[email protected]>
Sort -c reported line number was off by one.

529a25a2eea4a6eea8c4e6420b15bd167d948a0a authored over 2 years ago by Rob Landley <[email protected]>
mkroot: build a kernel for big endian powerpc64 too.

b8fa90e341ee1b06df32a900c233e62f4e8df7b9 authored over 2 years ago by Rob Landley <[email protected]>
And fix powerpc block device (kernel commit b7fb14d3ac63 removed the previous driver.)

99cf0f2d68443f9a1bed6a92b9a4580ed0e77127 authored over 2 years ago by Rob Landley <[email protected]>
Add "./run-qemu.sh -hda file.img" support to m68k kernel.

5c7ac6618a0cfff87c281cda13b456851e84316b authored over 2 years ago by Rob Landley <[email protected]>
Use TOYFLAG_ARGFAIL() value for error_msg(), and add sort -C in passing.

41d43d8a53d0a44305005fca02f01bbf5e016800 authored over 2 years ago by Rob Landley <[email protected]>
Mollify mkstatus.py.

474b02ffdf42bf6bb02248a91657e924a738c81c authored over 2 years ago by Rob Landley <[email protected]>
Release 0.8.8.

0d536365ba6cc7b0881f61c4e60aba22ab61d73d authored over 2 years ago by Rob Landley <[email protected]>
Add loongarch's ELF value.

7768ecdf2a0d847097856988557de76a2af850f8 authored over 2 years ago by Elliott Hughes <[email protected]>
Fix fencepost error.

d1a5bf6a437147ce3dde29428a2c3b0811d55533 authored over 2 years ago by Rob Landley <[email protected]>
Make bind default to recursive, and have --bind/--rbind/-R toggle MS_REC.

1c6df98cb9dedaf0951459e4e830c88d7a544d9e authored over 2 years ago by Rob Landley <[email protected]>
Minor cleanup.

5afab26b9c981948ec6d8c4a0135760be36ec365 authored over 2 years ago by Rob Landley <[email protected]>
Error message tweak.

c9c702dc424fce993d514e36fb1b3b932643c1f3 authored over 2 years ago by Rob Landley <[email protected]>
We don't need ftpd in the airlock anymore: there are plenty of alternatives.

3e67551895d9f05ca9e10802302584f781929aac authored over 2 years ago by Rob Landley <[email protected]>
Tweak error handling so "kill 1" doesn't say unknown pid 1: not permitted.

25fdca73f1e1a681ab8505dcc475a5925b53b391 authored over 2 years ago by Rob Landley <[email protected]>
Add a few more characters that aren't friendly in shell "eval" context.

210bb0c1d08a1b086ec22c26c4a9e45858277ca7 authored over 2 years ago by Rob Landley <[email protected]>
The unquoted strings in -o escape were bothering me.

Things like volume labels are user-defined strings...

b32361cadac51603e12ab8f01c3f56337ee6ee3b authored over 2 years ago by Rob Landley <[email protected]>
portability: Add some FreeBSD cases

Use existing Apple or OpenBSD implementations.

3b7613a8cfd66ceae8d7b74ec253adc73d522ac8 authored over 2 years ago by Ed Maste <[email protected]>
timeout.test: use POSIX "trap" syntax.

This is failing on dash, which apparently can't cope with the "SIG"
prefix that everyone else ca...

503a66de8b0af71d186d132a83de7bab9aa7b013 authored over 2 years ago by Elliott Hughes <[email protected]>
Add blkid -o full/value/export

8ed78cf520d487923246d3785b2f293560c36439 authored over 2 years ago by Rob Landley <[email protected]>
Fix --longopt= empty argument and add tests.

658cdf4435b257633659ad8539e71eb471c11bea authored over 2 years ago by Rob Landley <[email protected]>
sysconf(NPROCESSORS_CONF) is broken on musl and they've been arguing about

it for years (https://www.openwall.com/lists/musl/2022/07/27/5) so just
inline the readdir glibc ...

e2b17f5e0cd37b2ca891401ab6074f454d093dab authored over 2 years ago by Rob Landley <[email protected]>
Don't STAYROOT for taskset.

ad5a54277b2c07bc4df0b61a95ccd72343f49c7c authored over 2 years ago by Rob Landley <[email protected]>
Minor cleanups.

689cd31101ad4d428af4a64b72fa012f1043e4d5 authored over 2 years ago by Rob Landley <[email protected]>
killall: fix a logic error in names_to_pid().

This broke a lot of tests in postsubmit, and even seems to have had the
effect of causing reboot...

00c97a06be66dfca3dc6f4cb7d604c74e1348bc3 authored over 2 years ago by Elliott Hughes <[email protected]>
Don't complain if /dev/shm or /dev/pts already exist in devtmpfs.

30077897433c9a4703f21bcfb90544cc7dd96a9c authored over 2 years ago by Rob Landley <[email protected]>
Fix "int and long are identical!" warnings on 32 bit targets.

LP64 says sizeof(pointer)==sizeof(long), so if gcc always returned "long" for
the difference bet...

767e2049f4d84297d52b64d056aa0a4b9a02c2fd authored over 2 years ago by Rob Landley <[email protected]>