Document the sendsyslog2(2) system call

2016-02-18 Thread Rafael Neves
Hi, The the inlined patch aims to document the new sendsyslog2 system call, and add the corresponding MLINKS entry. Note that I do not put "syslog(3) logopt LOG_CONS" or "syslog(3) LOG_CONS flag" because actually in syslog(3) it says that it redirects to "/dev/console", so I thought that could be

Re: Remove TMPDIR support from sendbug(1) and newfs(8) manpages

2016-02-18 Thread Jason McIntyre
On Thu, Feb 18, 2016 at 03:11:16PM -0700, Rafael Neves wrote: > Hi, > > The TMPDIR enviroment support was removed from sendbug(1) and newfs(8), > but the manpages still document them. The inlined patches remove these > leftovers. > > Regards, > Rafael Neves > fixed, thanks. jmc > > Patch: >

Remove TMPDIR support from sendbug(1) and newfs(8) manpages

2016-02-18 Thread Rafael Neves
Hi, The TMPDIR enviroment support was removed from sendbug(1) and newfs(8), but the manpages still document them. The inlined patches remove these leftovers. Regards, Rafael Neves Patch: Index: sbin/newfs/newfs.8 === RCS file:

Re: undefined behaviour in add_entropy_words()

2016-02-18 Thread Stefan Kempf
Martin Natano wrote: > Hi, > > The add_entropy_words() function performs a right shift by > (32 - entropy_input_rotate) bits, with entropy_input_rotate being an > integer between [0..31]. This can lead to a shift of 32 on a 32 bit > value, which is undefined behaviour in C. The standard says

Re: Harmful casts in ufs

2016-02-18 Thread Stefan Kempf
Todd C. Miller wrote: > On Wed, 17 Feb 2016 10:22:04 +0100, Martin Natano wrote: > > > Casting the result of ext2fs_size() and DIP(ip, size) to int potentially > > truncates the result. Issue found by Stefan Kempf, see > > https://marc.info/?l=openbsd-tech=145495905416536 . > > > > While there I

Re: [patch] Fix carp(4) with balancing ip / ip-stealth

2016-02-18 Thread Florian Riehm
On 02/16/16 11:23, Martin Pieuchot wrote: > On 12/02/16(Fri) 16:33, Florian Riehm wrote: >> Hi Tech, >> >> I have noticed that CARP IP-Balancing is broken, so I am testing and >> fixing it. >> >> The first problem came in with this commit: >>

Re: Fix overflow check in sys/netinet6/in6.c

2016-02-18 Thread Martin Pieuchot
On 17/02/16(Wed) 20:38, Stefan Kempf wrote: > Martin Pieuchot wrote: > > On 13/02/16(Sat) 18:51, Stefan Kempf wrote: > > > Some thoughts about this: > > > > > > If this particular type of undefined behavior is really a concern: maybe > > > looking for bounds/overflow checks that are incorrect

Re: faq11 typo

2016-02-18 Thread Theo Buehler
On Thu, Feb 18, 2016 at 01:14:03PM +0100, Jan Stary wrote: > --- faq11.html.orig Thu Feb 18 11:11:41 2016 > +++ faq11.htmlThu Feb 18 11:12:14 2016 > @@ -97,7 +97,7 @@ Some X applications are very lean; others will seeming > all the processor and RAM you can give them. > Of course, some

faq11 typo

2016-02-18 Thread Jan Stary
--- faq11.html.orig Thu Feb 18 11:11:41 2016 +++ faq11.html Thu Feb 18 11:12:14 2016 @@ -97,7 +97,7 @@ Some X applications are very lean; others will seeming all the processor and RAM you can give them. Of course, some users just like to use X to provide a large number of

Re: LPRng removed, how can I get a copy of last port before removal?

2016-02-18 Thread Stuart Henderson
On 2016/02/17 22:30, Chris Bennett wrote: > Last version from author was 3.8.35 done at end of 2010. > Appears that many useful features are present, many other problems like > Kerberos need removal. > Author said that IPP would start at 4.x.x versions, which have never > been done. > Is using

/usr/X11/README typo

2016-02-18 Thread Jan Stary
THere seems to be a typo in macppc's /usr/X11/README Jan --- README.orig Thu Feb 18 11:14:56 2016 +++ README Thu Feb 18 11:15:25 2016 @@ -12,7 +12,7 @@ hardware. If your hardware is not properly autodetect or not supported as you wish, you will have to create a configuration

Re: Optimize pledge-related notes in 59.html

2016-02-18 Thread Alexey Suslikov
Theo de Raadt openbsd.org> writes: > so thanks for your suggestion. have you ever noticed how suggestions > are taken less seriously when they are not formatted as a diff? --- 59.html.origThu Feb 18 11:45:24 2016 +++ 59.html Thu Feb 18 12:03:29 2016 @@ -100,21 +100,21 @@