Re: UTF-8 support for uniq(1)

2015-12-10 Thread Vadim Zhukov
10 дек. 2015 г. 18:51 пользователь "Ingo Schwarze" написал: > > Hi, > > here is a simple one. The uniq(1) utility only needs UTF-8 support > to distinguish blank and non-blank characters with -f and to skip > characters with -s. The former is easy to implement with mbtowc(3) > and iswblank(3), t

Pull tmpfs fix from NetBSD

2015-12-10 Thread Michael McConville
Here's the PR: https://gnats.netbsd.org/50381 And the commit: https://marc.info/?l=netbsd-source-changes&m=144694603617544&w=2 We have very few local changes to tmpfs and we share the KASSERT(de->td_node == NULL), so I think this applies to us. Thoughts? ok? Index: sys/tmpfs/tmpfs_subr.c ===

Re: ssh-agent: flush stdout before main loop in foreground mode

2015-12-10 Thread Darren Tucker
On Wed, Dec 2, 2015 at 9:12 AM, Dustin Lundquist wrote: > When ssh-agent is run in foreground mode with -d and stdout is not a > terminal, the output including the path to the listening socket and > PID may not be written before the main loop begins. Since no further > output is written to stdout,

Remove allocation debugging junk from amd

2015-12-10 Thread Michael McConville
ok? Index: amd/xutil.c === RCS file: /cvs/src/usr.sbin/amd/amd/xutil.c,v retrieving revision 1.17 diff -u -p -r1.17 xutil.c --- amd/xutil.c 26 Oct 2014 02:58:43 - 1.17 +++ amd/xutil.c 10 Dec 2015 20:04:43 - @@ -84,13 +84

Re: Remove plain DES from kernel crypto

2015-12-10 Thread Mike Belopuhov
On Thu, Dec 10, 2015 at 14:29 +0100, Christian Weisgerber wrote: > We just removed DES support from IPsec and there are no other users, > so this deletes plain DES from the kernel crypto framework, including > the crypto accelerator drivers. > > ok? > Thanks for doing this work, OK mikeb

Remove extraneous punctuation in unifdef.1

2015-12-10 Thread Michael McConville
>From upstream, reduces diff: https://github.com/fanf2/unifdef/commit/cf9a7a6f161f3a83c587c485c362fea8d4c0e73e ok? Index: unifdef.1 === RCS file: /cvs/src/usr.bin/unifdef/unifdef.1,v retrieving revision 1.27 diff -u -p -r1.27 unifd

Unbound 1.5.7 update

2015-12-10 Thread Stuart Henderson
As with NSD I've already committed the typo fixes etc. There's a fair bit of churn for the optional support for nettle instead of OpenSSL which involves some nsec3 refactoring so it's a bit long.. Notable addition is qname minimisation support (optional privacy feature, off by default). In short,

Re: pledge dhcpd(8), revised version with earler pledge

2015-12-10 Thread Ricardo Mestre
Hi Stuart, Great :) I have tested -y/-Y myself and didn't have any issues, but would like some more people to give it a go to ensure this is not committed without proper validation. On 10/12/2015 17:26, Stuart Henderson wrote: > On 2015/12/02 12:14, Ricardo Mestre wrote: >> Hi tech@ >> >> This is

[patch] nlist(3): out of bounds read

2015-12-10 Thread Serguey Parkhomovsky
When dealing with a malformed ELF header, e_shentsize may be 0. This causes an out of bounds read while finding the symbol table on line 141. Found using afl. Index: nlist.c === RCS file: /cvs/src/lib/libc/gen/nlist.c,v retrieving re

Re: pledge dhcpd(8), revised version with earler pledge

2015-12-10 Thread Stuart Henderson
On 2015/12/02 12:14, Ricardo Mestre wrote: > Hi tech@ > > This is a revised version of pledging dhcpd(8) with earler pledging. > > Hoist up sync_init() due to a multicast setsockopt(2) (IP_MULTICAST_TTL) that > pledge doesn't allow, also hoist up the daemon(3) section, getpwnam(3) and the > check

Re: mpsafe re(4)

2015-12-10 Thread Chris Cappuccio
Dimitris Papastamos [s...@2f30.org] wrote: > On Sat, Dec 05, 2015 at 06:11:51PM +0100, Jonathan Matthew wrote: > > The main interesting bit here is the txeof and start loops, which previously > > operated based on the prod/cons indices and the contents of the tx queue, > > but now just uses the ind

[trivial] Specify SOCKS version in nc

2015-12-10 Thread Michael McConville
Objections? Index: socks.c === RCS file: /cvs/src/usr.bin/nc/socks.c,v retrieving revision 1.22 diff -u -p -r1.22 socks.c --- socks.c 10 Dec 2015 16:49:28 - 1.22 +++ socks.c 10 Dec 2015 16:52:55 - @@ -278,7 +278,

Re: pledge dhcpd(8), revised version with earler pledge

2015-12-10 Thread Ricardo Mestre
Hello! Any testers out there that could provide some feedback on this? I tested it and didn't have any problems with any parameters, except UDP that I don't have how to test it, although it kept running without problems as well. On 02/12/2015 12:14, Ricardo Mestre wrote: > Hi tech@ > > This is

UTF-8 support for uniq(1)

2015-12-10 Thread Ingo Schwarze
Hi, here is a simple one. The uniq(1) utility only needs UTF-8 support to distinguish blank and non-blank characters with -f and to skip characters with -s. The former is easy to implement with mbtowc(3) and iswblank(3), the latter with mblen(3). There is no need for wrapper functions or a sepe

NSD 4.1.7 update

2015-12-10 Thread Stuart Henderson
I've already merged in most of the doc fixes etc, here are the remaining parts (mostly code/build infrastructure). Any concerns, test reports, OKs? (See below for diff; changelog entries with inline comments first).. |FEATURES: | - support configure --with-dbfile="" for nodb mode by defaul

Remove plain DES from kernel crypto

2015-12-10 Thread Christian Weisgerber
We just removed DES support from IPsec and there are no other users, so this deletes plain DES from the kernel crypto framework, including the crypto accelerator drivers. ok? Index: sys/crypto/cryptodev.h === RCS file: /cvs/src/sys/c

Re: Question about shm_open and sem_open

2015-12-10 Thread Ted Unangst
Jeunder Yu wrote: > > geteuid may be better. though i would hope the difference doesn't matter. > > The difference is very important for me. > > In my application, I am root and change to different uid, create semaphore > and share memory, make some hand sharking to client app with different uid.

Re: Question about shm_open and sem_open

2015-12-10 Thread Jeunder Yu
2015年11月20日 下午2:46於 "Ted Unangst" 寫道: > > 游俊德 wrote: > > Hello, > > > > I have a question about source code of shm_open and sem_open functions. > > > > int > > shm_open(const char *path, int flags, mode_t mode) > > { > > (skipped) > > > > if (sb,st_uid != getuid()) { > >

Re: umass: size for free

2015-12-10 Thread Mathieu -
Mathieu - wrote: > > Hello, > > Martin Pieuchot wrote: > > Hello, > > > > On 07/12/15(Mon) 16:48, Mathieu - wrote: > > > Hello, > > > > > > I worked a bit on umass(4) recently and had a diff to pass the > > > umassbus_softc's real size to free so here it is. At some point I > > > pondered abou

Re: umass: size for free

2015-12-10 Thread Mathieu -
Hello, Martin Pieuchot wrote: > Hello, > > On 07/12/15(Mon) 16:48, Mathieu - wrote: > > Hello, > > > > I worked a bit on umass(4) recently and had a diff to pass the > > umassbus_softc's real size to free so here it is. At some point I > > pondered about deleting the whole abstraction, as it w

Re: umass: size for free

2015-12-10 Thread Martin Pieuchot
Hello, On 07/12/15(Mon) 16:48, Mathieu - wrote: > Hello, > > I worked a bit on umass(4) recently and had a diff to pass the > umassbus_softc's real size to free so here it is. At some point I > pondered about deleting the whole abstraction, as it would simplify the > free'ing, for we only have o

rtdeletemsg() & NULL ifp pointer

2015-12-10 Thread Martin Pieuchot
I'd like to change rtdeletemsg() to stop accepting a NULL ifp pointer. Here's a diff converting the last occurrence. This will then allow me to move a hack checking for interface index out of rtrequest_delete(). Ok? Index: net/route.c ===