pledge status

2015-11-27 Thread Theo de Raadt
I've been sending out these reports about pledge status every few weeks; it is kind of fun so I will continue. Early on, I modified ps(1) so that it can show whether a process is pledged in some fashion. This shows up as a little 'p' in the STAT field. (It tends to be the last character of the f

troubles to extract bzip2 compressed tar file

2015-11-27 Thread Jiri Navratil
Hello, I have a server archive created with tar and bzip2 (via -j tar option) on OpenBSD 5.3 GENERIC#50 i386 Now, I'm trying to extract it on a new machine, but I'm getting error: cd /server doas tar xjf /path/whole_server_archive-20151101.tar.bz2 bzip2: I/O or other error, bailing out. P

Re: xterm -tb

2015-11-27 Thread Jack J. Woehr
Bryan Steele wrote: xterm and it's man pages are updated often enough that local patches like this would likely only get in the way. -Bryan. Aha. Thanks. -- Jack J. Woehr # Science is more than a body of knowledge. It's a way of www.well.com/~jax # thinking, a way of skeptically interrogati

Re: xterm -tb

2015-11-27 Thread Bryan Steele
On Fri, Nov 27, 2015 at 08:20:40PM -0700, Jack J. Woehr wrote: > man xterm mentions the -tb switch (create a toolbar/menubar) which works on > other platforms (e.g., Cygwin). > > The switch is absent in the OpenBSD (5.8) implementation of xterm, there is > no toolbar. > > Not terribly troubled

xterm -tb

2015-11-27 Thread Jack J. Woehr
man xterm mentions the -tb switch (create a toolbar/menubar) which works on other platforms (e.g., Cygwin). The switch is absent in the OpenBSD (5.8) implementation of xterm, there is no toolbar. Not terribly troubled by this, just wondering if a patch to the manual page called for. -- Jack

[PATCH] sysmerge fix for yp removal in chpass

2015-11-27 Thread Chris Hettrick
Hi tech@ sysmerge will not add new users since -l flag in chpass is now gone. Index: src/usr.sbin/sysmerge/sysmerge.sh === RCS file: /cvs/src/usr.sbin/sysmerge/sysmerge.sh,v retrieving revision 1.216 diff -u -p -u -r1.216 sysmerge.sh

Re: rebound: getpw pledge

2015-11-27 Thread Carlin Bingham
On Sat, 28 Nov 2015, at 09:31 AM, Theo de Raadt wrote: > > rebound wants getpw, as of kern_pledge.c 1.123 > > You must be running snapshots, which tricky bit in libc which tests > for "getpw" on non-YP systems. > > This diff will work, or the getpwnam use in rebound.c should be hoisted > up highe

Re: Move score and log files to $HOME for snake(6)

2015-11-27 Thread Todd C. Miller
On Wed, 25 Nov 2015 15:22:27 -0500, "Ted Unangst" wrote: > I think this is the way to go, throughout games. The only things > we need to know are username (getlogin() or even $USER) and home > dir ($HOME). Digging the home dir out of passwd seems unnecessary > (or even wrong, if i've set HOME to b

bgpd fix MPLS VPN (rdomain) config

2015-11-27 Thread Claudio Jeker
Just realized that I forgot to properly merge the rdomain config from the new config into the active config and so that config was just lost. Following diff fixes this. Also refactored the free functions a bit so I did not have to use the same functions multiple times. OK? -- :wq Claudio Index:

Re: rebound: getpw pledge

2015-11-27 Thread Theo de Raadt
> rebound wants getpw, as of kern_pledge.c 1.123 You must be running snapshots, which tricky bit in libc which tests for "getpw" on non-YP systems. This diff will work, or the getpwnam use in rebound.c should be hoisted up higher, similar to the most recent change in ntpd/constraint.c > Index: u

rebound: getpw pledge

2015-11-27 Thread Carlin Bingham
rebound wants getpw, as of kern_pledge.c 1.123 Index: usr.sbin/rebound/rebound.c === RCS file: /cvs/src/usr.sbin/rebound/rebound.c,v retrieving revision 1.45 diff -u -p -u -r1.45 rebound.c --- usr.sbin/rebound/rebound.c 24 Nov 2015

Re: WAPBL: Introducing B_LOCKED buffer flag

2015-11-27 Thread Walter Neto
After mpi@ review -- Walter Neto diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 63bd7ca..29ebc81 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -743,6 +743,12 @@ brelse(struct buf *bp) * Determine which queue the buffer should be on, then put it there. *

Re: WAPBL: Adding the FFS capability to alloc files contiguously

2015-11-27 Thread Walter Neto
After mpi@ review -- Walter Neto diff --git a/sys/sys/buf.h b/sys/sys/buf.h index c47f3f9..fd38c28 100644 --- a/sys/sys/buf.h +++ b/sys/sys/buf.h @@ -254,6 +254,8 @@ struct cluster_save { /* Flags to low-level allocation routines. */ #define B_CLRBUF 0x01/* Request allocated buffer be

Re: vi: don't escape backspace with backslash

2015-11-27 Thread Theo Buehler
On Mon, Nov 23, 2015 at 12:04:31PM +0100, Claudio Jeker wrote: > On Mon, Nov 23, 2015 at 01:31:11AM -0700, Anthony J. Bentley wrote: > > When I hit backspace after a backslash, usually I just want to delete > > the backslash. I don't think I've ever intended to input a literal ^?. > > If I ever did

Fix casin(3)

2015-11-27 Thread Alexandr Shadchin
Fix wrong answer if the imaginary part is zero. NetBSD also turn off this piece of code. See http://en.cppreference.com/w/c/numeric/complex/casin http://www.wolframalpha.com/input/?i=asin%28-2.0%29 -- Alexandr Shadchin Index: s_casin.c ===