Re: Adding current bandwidth to ftp(1)

2018-04-13 Thread Christian Barthel
Stuart Henderson writes: > On 2018/04/09 09:27, Matthias Schmidt wrote: >> Hi Christian, >> >> On 08.04.2018 22:42, Christian Barthel wrote: >> > Hello, >> > >> > i am often sitting behind a very slow internet link and thought, it >> > might be useful to show the current bandwidth while downloa

net/if.h missing includes

2018-04-13 Thread Jeremie Courreges-Anglas
isn't standalone if __BSD_VISIBLE is defined (the default). This has caused fallout earlier in the ports tree: https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/net/samba/patches/patch-lib_replace_wscript.diff?r1=1.7&r2=1.8 https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/net/dnsdi

Re: Eliminate trailing whitespace & typo in chmod

2018-04-13 Thread Job Snijders
https://en.wikipedia.org/wiki/If_and_only_if As a non-native speaker, it took some years before I realized the use of “iff” is not a typo. Kind regards, Job

Re: Eliminate trailing whitespace & typo in chmod

2018-04-13 Thread Stuart Henderson
On 2018/04/13 20:01, llgx...@gmail.com wrote: > - * on the level: follow it iff it's a command line arg. > + * on the level: follow it if it's a command line arg. iff = "if and only if" http://mathworld.wolfram.com/Iff.html https://en.wikipedia.org/wiki/If_and_only_if

Eliminate trailing whitespace & typo in chmod

2018-04-13 Thread llgxela
> > Index: chmod.c > > === > > RCS file: /cvs/src/bin/chmod/chmod.c,v > > retrieving revision 1.42 > > diff -u -p -u -p -r1.42 chmod.c > > --- chmod.c 28 May 2017 08:03:36 - 1.42 > > +++ chmod.c 13 Apr 2018 17:46:36 - > >

Re: vmd(4) close vmm parent socket

2018-04-13 Thread Mike Larkin
On Fri, Apr 13, 2018 at 11:29:06AM +0200, Martijn van Duren wrote: > Hello tech@, > > Playing with vmd I noticed that a vm process has vmm's socket to the > parent process still open. > > Patch below works for me. > > OK? > > martijn@ > > Index: vmm.c >

Re: Eliminate trailing whitespace & typo in chmod

2018-04-13 Thread Theo de Raadt
>Index: chmod.c >=== >RCS file: /cvs/src/bin/chmod/chmod.c,v >retrieving revision 1.42 >diff -u -p -u -p -r1.42 chmod.c >--- chmod.c28 May 2017 08:03:36 - 1.42 >+++ chmod.c13 Apr 2018 17:46:36 - >@@ -253,10 +253,10

Eliminate trailing whitespace & typo in chmod

2018-04-13 Thread llgxela
Index: chmod.c === RCS file: /cvs/src/bin/chmod/chmod.c,v retrieving revision 1.42 diff -u -p -u -p -r1.42 chmod.c --- chmod.c 28 May 2017 08:03:36 - 1.42 +++ chmod.c 13 Apr 2018 17:46:36 - @@ -253,10 +253,10 @@ do

Re: ksh: count $SECONDS with monotonic clock

2018-04-13 Thread Todd C. Miller
On Fri, 13 Apr 2018 19:42:51 +0200, Jeremie Courreges-Anglas wrote: > The diff uses timespecsub: Ah, OK. That's fine then. - todd

Re: ksh: count $SECONDS with monotonic clock

2018-04-13 Thread Jeremie Courreges-Anglas
On Fri, Apr 13 2018, "Todd C. Miller" wrote: > On Fri, 13 Apr 2018 11:11:04 -0500, Scott Cheloha wrote: > >> So that $SECONDS advances uniformly, independent of the system clock. > > Why are you including sys/time.h? For struct timespect you only > need time.h which is already included. > > In ge

Re: ksh: count $SECONDS with monotonic clock

2018-04-13 Thread Todd C. Miller
On Fri, 13 Apr 2018 11:11:04 -0500, Scott Cheloha wrote: > So that $SECONDS advances uniformly, independent of the system clock. Why are you including sys/time.h? For struct timespect you only need time.h which is already included. In general, you only need sys/time.h for struct timeval or for

Re: ksh: count $SECONDS with monotonic clock

2018-04-13 Thread Jeremie Courreges-Anglas
On Fri, Apr 13 2018, Scott Cheloha wrote: > So that $SECONDS advances uniformly, independent of the system clock. > > ok? ok jca@ > -- > Scott Cheloha > > P.S. Similar change forthcoming for $MAILCHECK. > > Index: bin/ksh/var.c > ==

ksh: count $SECONDS with monotonic clock

2018-04-13 Thread Scott Cheloha
So that $SECONDS advances uniformly, independent of the system clock. ok? -- Scott Cheloha P.S. Similar change forthcoming for $MAILCHECK. Index: bin/ksh/var.c === RCS file: /cvs/src/bin/ksh/var.c,v retrieving revision 1.67 diff -u

Re: vmd(4) close vmm parent socket

2018-04-13 Thread Carlos Cardenas
On Fri, Apr 13, 2018 at 11:29:06AM +0200, Martijn van Duren wrote: > Hello tech@, > > Playing with vmd I noticed that a vm process has vmm's socket to the > parent process still open. > > Patch below works for me. > > OK? > > martijn@ Nice find. Ok ccardenas@ +--+ Carlos > > Index: vmm.c >

Re: syspatch(8) exit code

2018-04-13 Thread Antoine Jacoutot
On Fri, Apr 13, 2018 at 07:37:24AM -0600, Theo de Raadt wrote: > No. There are no patches yet, and it can't handle an empty directory. > > I am waiting for aja and robert to decide what to do about it. Otherwise > we'll have thus fuss at the start of every new release. > > Come on guys, make a

Re: diff for usr.bin/mg/fileio.c

2018-04-13 Thread Florian Obser
On Thu, Apr 12, 2018 at 07:04:23PM +0200, Han Boetes wrote: > Yes this also works for me. > Awesome, any OKs? Diff again for convenience: diff --git fileio.c fileio.c index 0987f6f30de..339088f5e2d 100644 --- fileio.c +++ fileio.c @@ -703,7 +703,7 @@ expandtilde(const char *fn) struct s

Re: syspatch(8) exit code

2018-04-13 Thread Theo de Raadt
No. There are no patches yet, and it can't handle an empty directory. I am waiting for aja and robert to decide what to do about it. Otherwise we'll have thus fuss at the start of every new release. Come on guys, make a decision! >It looks like in OpenBSD 6.3-release, syspatch(8) changed exit

syspatch(8) exit code

2018-04-13 Thread Zbyszek Żółkiewski
Hi! It looks like in OpenBSD 6.3-release, syspatch(8) changed exit code and now when running alone or with -c flag, it exit with status code 1. On 6.2 exit code was 0 63# syspatch;echo $? 1 Is it correct ? _ Zbyszek Żółkiewski

Re: ifconfig,route,netstat: s/tableid/rtable/ for consistency

2018-04-13 Thread Theo de Raadt
>On 2018/04/13 14:38, Klemens Nanni wrote: >> I propose to use `rtable' exclusively to ease searching and improve >> consistency as that's the wording already used across the majority of >> manuals including rtabe(4) and pf.conf(5) for example. > >There's not a lot in it, but tableid is slightly mo

Re: ifconfig,route,netstat: s/tableid/rtable/ for consistency

2018-04-13 Thread Stuart Henderson
On 2018/04/13 14:38, Klemens Nanni wrote: > I propose to use `rtable' exclusively to ease searching and improve > consistency as that's the wording already used across the majority of > manuals including rtabe(4) and pf.conf(5) for example. There's not a lot in it, but tableid is slightly more com

Re: ifconfig,route,netstat: s/tableid/rtable/ for consistency

2018-04-13 Thread Klemens Nanni
On Thu, Apr 12, 2018 at 10:07:58AM +0200, Peter Hessler wrote: > On 2018 Apr 11 (Wed) at 23:01:45 +0200 (+0200), Klemens Nanni wrote: > :On Wed, Apr 11, 2018 at 09:28:03AM +0200, Peter Hessler wrote: > :> No, all of these uses are correct as-is. > :`tableid' surely isn't wrong, but using the argume

vmd(4) close vmm parent socket

2018-04-13 Thread Martijn van Duren
Hello tech@, Playing with vmd I noticed that a vm process has vmm's socket to the parent process still open. Patch below works for me. OK? martijn@ Index: vmm.c === RCS file: /cvs/src/usr.sbin/vmd/vmm.c,v retrieving revision 1.80