Oops, forgot that OpenBSD doesn't have ! capability in less. Instead of !echo a
> % and !echo b > %, run
$ echo a > /tmp/test
Press h and q in less to reload the file
$ echo b > /tmp/test
Press h and q in less to reload the file
On Thu, Aug 05, 2021 at 12:37:00AM -0500,
Bug Reproduction:
$ touch /tmp/test
$ less /tmp/test
Press r
Run !echo a > %
Run !echo b > %
Output:
a
b
On Fri, Jul 23, 2021 at 11:15:59AM -0500, user wrote:
> Less contains a hack to force files of size 0 to become non-seekable in order
> to workaround a linux kernel bug.
>
Less contains a hack to force files of size 0 to become non-seekable in order
to workaround a linux kernel bug.
When the file becomes non-seekable any further reads from the file are
appended rather than overwriting the original contents of the file.
diff --git ch.c ch.c
index 1a679767a42..d7c
The following patch tightens the pledges for ftp(1).
This provides some additional guarantees, including that ftp(1) cannot
spawn child processes. This is a significant security win for
sysupgrade(8).
I hope I did not mess up the diff - this is my first time submitting one.
Index: usr.bin/ftp/m