Re: snmpd(8) and p5-Net-SNMP

2017-09-20 Thread alf
Shameless ping! On Tue, Mar 28, 2017 at 12:45:20PM +0200, alf wrote: > Further investigation shows that p5-Net-SNMP sends a first packet > unauthentified and with an empty request. Here snmpd(8) violates > RFC 3414. It should send OIDVAL_usmErrEngineId but instead sends > OIDVAL_usmErrSecLevel. >

Re: write.2: caveats: write(2) returns zero?

2017-09-20 Thread Raul Miller
On Wed, Sep 20, 2017 at 5:52 PM, Marc Espie wrote: > On Wed, Sep 20, 2017 at 09:21:53PM +0200, Ingo Schwarze wrote: >> So, apart from being safer for weird devices on weird implementations, >> POSIX clearly recommends the idiom for symmetry with read(2) and >> for compatibility with some historic

Re: write.2: caveats: write(2) returns zero?

2017-09-20 Thread Marc Espie
On Wed, Sep 20, 2017 at 09:21:53PM +0200, Ingo Schwarze wrote: > So, apart from being safer for weird devices on weird implementations, > POSIX clearly recommends the idiom for symmetry with read(2) and > for compatibility with some historic implementations - even though > the importance of these r

Re: write.2: caveats: write(2) returns zero?

2017-09-20 Thread Ingo Schwarze
Hi, Todd C. Miller wrote on Mon, Sep 18, 2017 at 09:35:45AM -0600: > On Mon, 18 Sep 2017 16:50:41 +0200, Ingo Schwarze wrote: >> Indeed, the above code is nonsensical. >> It will write the same bytes repeatedly in case of partial writes. > OK millert@ Committed, thanks for checking. > That doe