Age | Commit message (Collapse) | Author |
|
now return error), inline utf8spnc and merge_arg(), unify "break" logic,
fix "continue" and "done; done", fix cd not to expand arguments twice
|
|
|
|
|
|
On empty lines, we'd read one byte before the start of the buffer.
|
|
f2866cf58a07c9d681ecd6695ea969ac70e59a3d fixed the cpio --trailer check
as it claimed to, but doing so changed our behavior (since it used to be
always-on and is now off unless you supply --trailer).
This broke one of the cpio tests.
Since I can't find any other cpio that has a --trailer option (or its
inverse), this patch removes --trailer. This reverts our behavior to
our old behavior (always include the trailer). Judging by the fact that
the cpio tests pass with TEST_HOST=1, this seems to be the expected
behavior.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fix false positive -Wformat-security by passing string literal directly
to error_exit, instead of assigning it to a variable and passing that
fix -Wparentheses-equality by removing extra parentheses
|
|
|
|
|
|
|
|
packages toybox commands provide partial or complete replacements for.
|
|
|
|
|
|
|
|
(ls would read from an uninitalized variable and never use the result because
the test is afterwards, but asan freaks about impurity and unclean quantum
state that's never observed or some such. You read uninitialized but
definitely allocated stack memory into a REGISTER, and then performed
an ADDITION on it to produce a result you never use! For SHAME!)
|
|
|
|
|
|
The QEMU console output disables wordwrap (see man 4 console_codes, DECAWM)
but doesn't re-enable it, so things like bash command history or tab completion
glitch afterwards. QEMU should printf("\e[?7h") on the way out, but doesn't.
So make qemu wrapper script do it.
|
|
|
|
|
|
by path, add m68k target.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If you configure toybox with libcrypto, you don't need toybox to
initialize its own table statically _or_ dynamically.
|
|
The filter() function modifies st_blocks so it's always 1KiB rather than
512B blocks, but the human-readable output was still assuming 512B. This
meant that `ls -sh` was showing figures half the size of `ls -s`, and
that the "total" line with -h was also off by a factor of 2.
No new test, because I don't know how to write one that would work on
all file systems.
Bug: http://b/153383721
|
|
Replace CROSS_SHORT with CROSS
log CROSS=all build output
Unset stupid kernel defaults (such as VGA tty /dev nodes).
Only pass through standard environment variables, require control vars
(LINUX= ALL= CROSS=) to be set on command line.
In init script, bring up loopback net and run sub-init scripts if any.
|
|
|
|
|
|
|
|
|
|
Don't fall back to stdin if we can't find shell script on command line.
|
|
|
|
|
|
with memset() instead of = {}, and move TT.alarm to local variable.
|
|
I'd put the rtc_wkalarm struct in the globals to get it zeroed for
free, but since there's no such type on macOS, that breaks the
build. Rather than define a bogus struct in portability.h, I've
gone for making it an explicitly-zeroed local. (And I've sorted the
locals largest-first.)
Note that the use of struct rtc_time as if it was the same as struct
tm in this code follows the existing code in hwclock, but I worry
that we're going to have trouble with that because of the extra
tm_gmtoff and tm_zone fields in struct tm. But that's a worry for
another day...
This patch also removes the CONFIG_CP_PRESERVE from the macos_miniconfig,
since that option was removed a while back.
|
|
|
|
Some of the bringup folks are debugging RTC issues and asked for this.
Rather than duplicate the weird xtzset dance with mktime, I've factored
that out into a new xmktime that takes a boolean for whether to use UTC
or local time.
Otherwise, the slight cleanup of hwclock.c is entirely optional. The
only functional change there is that util-linux 2.34's hwclock uses ISO
time format, which is the usual toybox preference anyway, so I've
switched it over to that rather than ctime(3).
Bug: http://b/152042947
|