Skip to content

Tags: lfelipe/toybox

Tags

0.5.1

Toggle 0.5.1's commit message
Make md5sum and sha1sum work on big endian systems.

0.5.0

Toggle 0.5.0's commit message
Workaround for musl's faccessat bug (the rm -r "error: is a directory…

…" thing).

The Linux man page says I can use AT_SYMLINK_NOFOLLOW. It works in glibc,
uclibc, and klibc, but musl returns -EINVAL any time you pass in that flag
and the maintainer says that's not a bug and insists the man page and those
other libraries all change to match musl's behavior.

Toybox uses it to avoid scheduling unnecessary metadata writes for things we're
about to delete (have to chmod unreadable directories so we can descend into
them to delete their contents, the chmod happens before we descend so the
disk I/O has plenty of time to be scheduled) because the extra writes wear out
SSD faster. It's just an optimization and I don't really care if it works
_well_ (the fchmodat call _also_ takes AT_SYMLINK_NOFOLLOW so that's covered),
but musl's behavior uniquely makes the check always error and thus breaks normal
"rm -r".

Yes this workaround is checking #ifdef __MUSL__ which the library does not
supply (because its code is perfect and will thus never need to be worked
around). You can CFLAGS=-D__MUSL__ if you don't echo "#define __MUSL__" >>
include/features.h when installing the library.

0.4.9

Toggle 0.4.9's commit message
Autodetect --bind and --loop mounts in a way that doesn't interfere w…

…ith network filesystems or -t newtype mounts that trigger a module load.

0.4.8

Toggle 0.4.8's commit message
This version of fold fixes major bugs (infinite loop, overflow) and a…

…dds an option for un/refolding text.

0.4.7

Toggle 0.4.7's commit message
Add test suite for blkid and clean up an editorial comment that shoul…

…dn't have been checked in.

0.4.6

Toggle 0.4.6's commit message
Ah, that's why commit 1057 was skipped last pull: it was unfinished. …

…Oops. (Fix it.)

0.4.5

Toggle 0.4.5's commit message
Make ls output major, minor for block devices.

0.4.4

Toggle 0.4.4's commit message
Compile time probe to fish O_NOFOLLOW out of linux headers when fcntl…

… doesn't conform to posix-2008.

0.4.3

Toggle 0.4.3's commit message
Adjust umask(0) for cp -p so mknod doesn't have to try to fchmodat() …

…without the unsupported symlink nofollow flag.

0.4.2

Toggle 0.4.2's commit message
The Linux kernel "make clean" calls rm -f with no arguments, which ap…

…parently is not an error.