Re: urndis(4) ++ RAMDISKs

2018-08-31 Thread Artturi Alm
On Mon, Aug 20, 2018 at 02:15:55PM +0300, Artturi Alm wrote: > Hi, > > these have been missing for some reason, but i'm guessing i wouldn't be > the only user using urndis, rather than messing around with firmwares > when rushing into reinstall having forgotten about some necessary fw.. > >

relayd close 0

2018-08-31 Thread Alexander Bluhm
Hi, Accidentally relayd(8) closes file descriptor 0 in the pfe child process. Usually this is a bad idea. snmp_init() does this: if (env->sc_snmp != -1) { ... close(env->sc_snmp); env->sc_snmp = -1; } But env has been initialized

ims: match on HID touchscreens

2018-08-31 Thread joshua stein
If there is an i2c HID device that has a Digitizers/Touchscreen collection and an X report, attach ims to it. hidms already has support for touchscreens. This may help if you have a newer laptop with a touchscreen. Also limit the logical min/max finding in hidms to the first non-zero result.

httpd relayd stdio /dev/null

2018-08-31 Thread Alexander Bluhm
Hi, During the fork+exec implementation, daemon(3) was moved after proc_init(). As a consequence httpd(8) and relayd(8) child processes do not detach from the terminal anymore. Dup /dev/null to the stdio file descriptors in the children. ok? bluhm Index: usr.sbin/httpd/httpd.c

re(4) watchdog timeouts - possible fix

2018-08-31 Thread David Hill
Hello - If I start a certain app that sends a large amount of data to many hosts, I get: re0: watchdog timeout re0: watchdog timeout The diff below is what em(4) does and I am no longer able to cause watchdog timeouts on my re(4). Does this seem correct or more of a hack? Index: dev/ic/re.c

syslogd log rotate documentation

2018-08-31 Thread Alexander Bluhm
Hi, A coworker did not know that he has to send SIGHUP to syslogd after rotating the log files. I realized that it is not documented. ok to add it to the man page? While there, replace two 'syslogd' with .Nm for consistency. bluhm Index: usr.sbin/syslogd/syslogd.8

Re: syslogd remove was_initialized

2018-08-31 Thread Todd C. Miller
On Fri, 31 Aug 2018 20:14:19 +0200, Alexander Bluhm wrote: > I don't understand why we should reset Initialized during syslogd > die(). It looks like it was needed when we had real signal handlers. > But we have switched to libevent for a long time. I agree, this is a relic from the

syslogd remove was_initialized

2018-08-31 Thread Alexander Bluhm
Hi, I don't understand why we should reset Initialized during syslogd die(). It looks like it was needed when we had real signal handlers. But we have switched to libevent for a long time. It was introduced here: revision 1.13 date: 1997/06/18 09:53:38; author: deraadt; state: Exp; lines:

Re: csh: blkfree() usage

2018-08-31 Thread Michael Mikonos
I also tested this patch on landisk, but this was mainly as an exercise to try a recent snapshot under the gxemul emulator (v0.6.0). On Thu, Aug 30, 2018 at 12:20:37AM +0800, Michael Mikonos wrote: > Hello, > > In csh(1) the function blkfree() behaves like free(3) and > performs no action if its

Re: pkill.1: clarify that patterns are EREs

2018-08-31 Thread Todd C. Miller
On Fri, 31 Aug 2018 17:12:50 +0200, Christian Weisgerber wrote: > In the pkill man page, clarify that the patterns are EXTENDED regular > expressions. I shouldn't have to guess, try, or look at the source > for this. OK millert@ - todd

pkill.1: clarify that patterns are EREs

2018-08-31 Thread Christian Weisgerber
In the pkill man page, clarify that the patterns are EXTENDED regular expressions. I shouldn't have to guess, try, or look at the source for this. ok? Index: pkill.1 === RCS file: /cvs/src/usr.bin/pkill/pkill.1,v retrieving

ospf6d: prevent additional ospf6d from starting

2018-08-31 Thread Remi Locherer
Hi, this is the adaption of the recent ospfd commit to ospf6d. Early in the startup the main process checks if another process is listening on the control socket and exits if that is the case. Otherwise the master process opens the control socket and passes it on to the ospf engine. OK? Remi

ssh: use getservbyname(3) for port numbers

2018-08-31 Thread Christian Weisgerber
Is there a reason ssh doesn't consult services(5) for port numbers? This has irked me forever. I'd rather write ssh -L icb:localhost:icb instead of ssh -L 7326, wait, 7236, uhm, grep icb /etc/services... I don't think there is any syntactic ambiguity since Unix sockets already must contain a

Re: Make systat(1) more human readable

2018-08-31 Thread Martijn van Duren
On 07/30/18 08:26, Martijn van Duren wrote: > Just got some positive user feedback off-list. > Any takers? No one interested? > > On 02/11/18 13:48, Martijn van Duren wrote: >> Some documentation nits found by jmc. >> >> On 02/11/18 12:31, Martijn van Duren wrote: >>> Hello tech@, >>> >>> Since

Re: cp(1) Fix incomplete -i behaviour [3/3]

2018-08-31 Thread Martijn van Duren
part 3 OK? martijn@ diff --git cp.c cp.c index fbf924c..2ccef08 100644 --- cp.c +++ cp.c @@ -434,7 +434,7 @@ copy(char *argv[], enum op type, int fts_options) !fts_dne(curr))) == 1) rval = 1; }

Re: cp(1) Fix incomplete -i behaviour [2/3]

2018-08-31 Thread Martijn van Duren
part 2 OK? martijn@ diff --git cp.c cp.c index 321e82f..fbf924c 100644 --- cp.c +++ cp.c @@ -395,9 +395,9 @@ copy(char *argv[], enum op type, int fts_options) switch (curr->fts_statp->st_mode & S_IFMT) { case S_IFLNK: - if (copy_link(curr,

cp(1) Fix incomplete -i behaviour [1/3]

2018-08-31 Thread Martijn van Duren
Hello tech@, While working on fixing the -iv behaviour yesterday I noticed that the -i verification isn't implemented for the special copies and thus allowing to overwrite a file. I did some archaeology and found it was introduced by bostic in 1990, so the behaviour is here for over 28 years!

Re: [PATCH] qcow2 disk format

2018-08-31 Thread Ori Bernstein
On Fri, 31 Aug 2018 14:32:24 +0800, Michael Mikonos wrote: > Hi Ori, > > I had one question about mkcluster() in src/usr.sbin/vmd/vioqcow2.c... > > + if (src_phys > 0 && copy_cluster(disk, base, disk->end, src_phys) == -1) > + return -1; > > The other error cases

Re: [PATCH] qcow2 disk format

2018-08-31 Thread Michael Mikonos
On Thu, Aug 30, 2018 at 11:19:08PM -0700, Ori Bernstein wrote: > On Wed, 15 Aug 2018 23:02:16 -0700, Ori Bernstein wrote: > > > Updated style from feedback from off-list. Also added checks and > > erroring for incompatible extensions. > > One more update. This revision adds explicit definitions

Re: [PATCH] qcow2 disk format

2018-08-31 Thread Ori Bernstein
On Wed, 15 Aug 2018 23:02:16 -0700, Ori Bernstein wrote: > Updated style from feedback from off-list. Also added checks and > erroring for incompatible extensions. One more update. This revision adds explicit definitions of the disk format, and adds regress tests for parsing it. The syntax for