Age | Commit message (Collapse) | Author |
|
|
|
|
|
wait for PID 1. (rdinit=/bin/hello would kernel panic if pid 1 exits,
and wait() returns "No child processes" error, so pause() instead.)
|
|
Fix path, null terminate THIS line instead of chomp() whole header
(no guarantee the line we're looking for is last, although if it isn't
inserting the null terminator would truncate later searches),
don't assume server sent back a valid header with a " " in first line
(it SHOULD, but might not), don't interpret "-" filename from remote
end as stdout.
|
|
TT.postdata -> TT.p, replace both WGET_IS_HTTP macros with a test in
wget_info() setting TT.https (although still want an HTTP macro to include
the WGET_SSL test because I don't trust the compiler to do dead code
elimination based on a global in a union), inline wget_redirect() and
wget_filename() at their only caller, use xmprintf() for request rather
than copying user-defined strings into toybuf without bounds checking,
try not to assume other side sent us good data.
|
|
|
|
The test USED to work because "unknown option -e" was ALSO an error,
until last commit passed through the -e...
|
|
so "command -123" isn't an unknown option error.
|
|
|
|
|
|
|
|
|
|
Also in lib/ add bufget name variants for password and group.
|
|
|
|
|
|
|
|
|
|
Teach chomp() to remove any number of trailing \r\n
|
|
|
|
reported by hg42 on github.
|
|
Realistically, corrupt ELF files are rare enough that it's more likely
that we've actually found a bug in file(1), such as the .bss bug fixed
in the previous patch. That bug went undiscovered so long because we
silently give up on ELF files we don't understand, and the output didn't
look obviously broken even if you'd been told it was broken and were
looking at it.
Give up noisily instead so we find and fix any future bugs more quickly.
Also remove some duplicated code: the commit that switched to mmap(2)
rather than lseek(2) had two copies of the mmap call.
|
|
BSS sections are *expected* to claim a larger size than is actually
present in the file. Unlike program headers which have two different
size fields for the memory and file sizes, sections headers only have
one size field, so we're using the right field; we just need to ignore
it for our overflow checking purposes.
|
|
|
|
|
|
|
|
Only does memory/swap so far.
|
|
(Can't test this, don't have the hardware, so trying to do only simple
cleanups. Still screwed it up.)
|
|
|
|
Equivalent to the content of the gpiod debian package. Very different
interface to the traditional Raspberry Pi command, but that command
explicitly calls itself deprecated and tells you to use the gpiod
package's commands instead.
"Works for me" on a Raspberry Pi 400, with a (small) variety of things
connected to GPIOs as inputs and outputs.
Missing gpiomon, which -- since the rest of these are about a year old
at this point -- it doesn't look like I'm going to get around to writing
any time soon unless someone asks for it...
|
|
The lspci database loading code should work now, and it can be stored .gz,
and the output is closer to the host version.
|
|
|
|
so gearshifts between flag contexts require less setup.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(It's actually skipping X many fields at the start, up to showing just the
last field across the whole screen. I could continue into indent to show more
of the last field, but probably need to add a way to freeze updates first.)
|
|
|
|
vi was segfaulting because some of the printf() arguments were the wrong
way round. The file content also wasn't getting displayed because [%dH
isn't a correct translation of tty_jump(0, y). Personally, although I
agree that tty_esc() wasn't pulling its weight, I think that tty_jump()
was: the escape sequence's arguments are the wrong way round, they're
both off-by-one, and the rules for the short forms don't make sense to
humans, just to 1970s hardware.
Also remove the implicit flush from the inner redraw loop, which was
causing visible flicker (I've left the others since they don't matter).
|
|
xputsn() only takes one argument; the other place this function
outputs the same escape sequence just uses printf() (rather than
xprintf()) so that seems fine here too. One flush per screen refresh
is plenty (and there are still *lots* left).
|
|
|
|
|
|
Also, the user of FLAG(E) depended on it being 1 and it wasn't, finish -E test.
|
|
|
|
|
|
|
|
|