Re: ksh: bug with quoted parameter expansion

2018-01-25 Thread Anton Lindqvist
On Wed, Jan 24, 2018 at 04:15:24PM +0100, m...@josuah.net wrote: > I found a bug in ksh's parameter expansion on an edge case: > > true $(true "${USER#'"'}") > > /home/sh[4]: no closing quote > > The problem seems to occurs when all of these conditions are present: > > 1. On ${var#p

Re: tcpdump(8) USB support

2018-01-25 Thread Martin Pieuchot
On 25/01/18(Thu) 14:55, Bryan Steele wrote: > On Thu, Jan 25, 2018 at 07:00:43PM +0100, Martin Pieuchot wrote: > > Diff below adds support for dumping USB transfers via bpf(4), including > > the tcpdump(8) bits. > > > > I'd like special review of the new bpf_tap(9) function I'm introducing: > >

sleep(1): support longer naps

2018-01-25 Thread Scott Cheloha
Hi, This increases the range for sleep(1) from 100 million seconds up to 9223372036854775807. POSIX.1-2001 added a stipulation (which POSIX.1-2008 retains) that sleep(1) support inputs of at least 2147483647 seconds. This patch fulfills that requirement and brings us into alignment with POSIX.1-

efiboot: fix TFTP reading of 0-size files

2018-01-25 Thread Christian Weisgerber
Fix TFTP reading of zero-size files in efiboot: The AllocatePages EFI call returns an error when the allocation size is 0. Skip allocating memory and actually transferring the file when it is empty. Properly return the number of unread bytes so that a read() of n bytes does not return n if no by

Re: tftpd: transfer size for random.seed

2018-01-25 Thread Jeremie Courreges-Anglas
On Thu, Jan 25 2018, Christian Weisgerber wrote: > tftpd needs to handle the transfer size option when faking up > /etc/random.seed. > > Without this, clients that query the size receive 0 as response, > preventing efiboot from loading random.seed. > > ok? Looks correct, ok jca@ > Index: tftpd.c

Re: tcpdump(8) USB support

2018-01-25 Thread Bryan Steele
On Thu, Jan 25, 2018 at 07:00:43PM +0100, Martin Pieuchot wrote: > Diff below adds support for dumping USB transfers via bpf(4), including > the tcpdump(8) bits. > > I'd like special review of the new bpf_tap(9) function I'm introducing: > - is there a way to pass the header as a different buffe

tcpdump(8) USB support

2018-01-25 Thread Martin Pieuchot
Diff below adds support for dumping USB transfers via bpf(4), including the tcpdump(8) bits. I'd like special review of the new bpf_tap(9) function I'm introducing: - is there a way to pass the header as a different buffer? - is _bpf_tap() the best way to share code with bpf_mtap(9)? Concerni

tftpd: transfer size for random.seed

2018-01-25 Thread Christian Weisgerber
tftpd needs to handle the transfer size option when faking up /etc/random.seed. Without this, clients that query the size receive 0 as response, preventing efiboot from loading random.seed. ok? Index: tftpd.c === RCS file: /cvs/src/

Re: carp_ourether() tweak

2018-01-25 Thread Martin Pieuchot
On 24/01/18(Wed) 09:30, Alexander Bluhm wrote: > On Mon, Jan 22, 2018 at 11:58:30AM +0100, Martin Pieuchot wrote: > > Check if `if_carp' is empty inside carp_ourether() instead of outside. > > > > ok? > > Maybe I am confused by the ! and && but I think this diff changes the > logic. You're righ

Re: Kernel Panic on 6.2 amd64 when run0 RT3070 based device is attached during boot

2018-01-25 Thread Denis
Finally catch kernel panic in the middle of run adapter work. A bit different panics from time to time: Starting stack trace... panic() at panic+0x11b splassert_fail(80218000,100,81180127) at splassert_fail+0x67 if_down*8021800) at if_down+0x39 if_downall() at if_downall+0