Handle ^C in ssh-askpass

2022-01-22 Thread Alexander Hall
This diff makes ssh-askpass abort on ^C, like on ESC. At times when ssh-askpass pops up behind the active window, or for some reason is not visible, while at the same time stealing all input, ^C is one of the "safe" key combinations that comes to my mind trying to unlock whatever is locking up my

Re: btrace: print probes sorted by name not internal id

2022-01-17 Thread Alexander Hall
On Mon, Jan 17, 2022 at 02:23:52PM +, Klemens Nanni wrote: > I keep doing `btrace -l | sort' to help myself searching for traces. > > Would it be worh making btrace sort the list of probes > lexicographically in the first place or is there any value in seeing > them sorted by id? I believe

Re: head(1): fully support the legacy -count syntax

2021-10-14 Thread Alexander Hall
On Mon, Oct 11, 2021 at 09:13:16AM -0500, Scott Cheloha wrote: > On Sun, Oct 10, 2021 at 08:26:04PM -0400, gwes wrote: > > On 10/10/21 5:03 PM, Scott Cheloha wrote: > > > [...] > > > > > > If we want to have the unportable legacy syntax then it should work > > > like other option arguments.

Re: ksh(1) search-history fix

2021-09-21 Thread Alexander Hall
On Tue, Sep 21, 2021 at 10:24:47PM +0200, Alexander Hall wrote: > OK? Unless someone finds a clever and horrible way of abusing this, I won't be committing it pre-release. Comments and/or OK's still appreciated though. :-) /Alexander

ksh(1) search-history fix

2021-09-21 Thread Alexander Hall
Hi, In ksh(1) emacs editing mode, the search-history editing command (normally bound to ^R), is used for interactive searching through the history of previously given commands. While performing such a search, emitting a NUL character (i.e. '\0', or ^@) adds said character to the search

Re: ksh emacs search-history misbehaviour

2021-09-21 Thread Alexander Hall
ge as a commit message, and probably elaborated way too little. I'll start over with a new thread with more elaborative wording. /Alexander > > On 18/09/2021, Alexander Hall wrote: > > Ping. Please don't be discouraged or scared just because it's a diff to > > ksh(1). It really is ra

Re: ksh emacs search-history misbehaviour

2021-09-18 Thread Alexander Hall
Ping. Please don't be discouraged or scared just because it's a diff to ksh(1). It really is rather simple. Noone else ever ran into this ksh command line history search bug? /Alexander On September 14, 2021 12:17:22 AM GMT+02:00, Alexander Hall wrote: >in emacs search-history mode, ab

ksh emacs search-history misbehaviour

2021-09-13 Thread Alexander Hall
in emacs search-history mode, abort if ^@ is encountered This has been bugging me for ages, and I finally realized it was me accidentally pressing Ctrl+, rendering ^@ (a.k.a '\0' or NUL) Easily tested with: Ctrl+R Ctrl+ ... Minimal investigation, for reference: bash: misbehaves in a slightly

diff(1)ing hardlinks

2021-08-31 Thread Alexander Hall
If two files to be compared share the same inode, it should be reasonable to consider them identical. This gives a substantial speedup when comparing directory structures with many hardlinked files, e.g. when using rsnapshot for incremental backup. Comments? OK? /Alexander Index: diffreg.c

Re: ksh: require expression in while loop

2021-07-05 Thread Alexander Hall
On July 5, 2021 3:12:07 PM GMT+02:00, "Reuben ua Bríġ" wrote: >> Date: Mon, 5 Jul 2021 14:41:46 +0200 >> From: Alexander Hall > >> I don't really see what you win either. > >the point of todds diff is to fix the issue i raised: > > Subject: w

Re: ksh: require expression in while loop

2021-07-05 Thread Alexander Hall
On July 5, 2021 3:08:27 PM GMT+02:00, Jeremie Courreges-Anglas wrote: >On Sun, Jul 04 2021, Todd C. Miller wrote: >> On Sun, 04 Jul 2021 23:25:25 +0200, Alexander Hall wrote: >> >>> The "... do done" variant has been frequently used by me, and seems to &g

Re: ksh: require expression in while loop

2021-07-05 Thread Alexander Hall
On July 5, 2021 12:25:39 AM GMT+02:00, "Todd C. Miller" wrote: >On Sun, 04 Jul 2021 23:25:25 +0200, Alexander Hall wrote: > >> The "... do done" variant has been frequently used by me, and seems to appear >> at least three times in install.sub, so if thi

Re: ksh: require expression in while loop

2021-07-05 Thread Alexander Hall
On July 5, 2021 8:31:49 AM GMT+02:00, "Reuben ua Bríġ" wrote: >> Date: Sun, 4 Jul 2021 16:25:39 -0600 >> From: Todd C. Miller > >> let's just require a non-empty expression but still allow an empty >> loop body. > >if i might suggest a slight variation, how about only requiring that >at

Re: ksh: require expression in while loop

2021-07-04 Thread Alexander Hall
The "... do done" variant has been frequently used by me, and seems to appear at least three times in install.sub, so if this goes in, please scan the scripts in our tree first, at least for trivial cases. /Alexander On July 2, 2021 8:20:44 PM GMT+02:00, "Todd C. Miller" wrote: >Currently,

Re: syspatch exit state

2020-12-06 Thread Alexander Hall
On December 6, 2020 8:13:26 PM GMT+01:00, Antoine Jacoutot wrote: >On Sun, Dec 06, 2020 at 05:20:31PM +, Stuart Henderson wrote: >> On 2020/12/06 16:39, Otto Moerbeek wrote: >> > On Sun, Dec 06, 2020 at 03:31:19PM +, SW wrote: >> > >> > > On 06/12/2020 14:32, Otto Moerbeek wrote: >>

Re: find -exec util {} arg + confusion

2020-11-21 Thread Alexander Hall
On Tue, Nov 17, 2020 at 01:11:42PM +0100, Paul de Weerd wrote: > On Tue, Nov 17, 2020 at 01:06:05AM +0100, Alexander Hall wrote: ... > | The more I read and think about it, I feel the original error message is > | actually correct in that there is no terminating ";&

Re: find -exec util {} arg + confusion

2020-11-19 Thread Alexander Hall
On November 17, 2020 1:11:42 PM GMT+01:00, Paul de Weerd wrote: >On Tue, Nov 17, 2020 at 01:06:05AM +0100, Alexander Hall wrote: >| On Mon, Nov 16, 2020 at 09:04:53AM +0100, Paul de Weerd wrote: >| > Hi Alexander, >| > >| > On Sun, Nov 15, 2020 at 10:22:32PM +01

Re: find -exec util {} arg + confusion

2020-11-16 Thread Alexander Hall
On Mon, Nov 16, 2020 at 09:04:53AM +0100, Paul de Weerd wrote: > Hi Alexander, > > On Sun, Nov 15, 2020 at 10:22:32PM +0100, Alexander Hall wrote: > | I googled for "POSIX find", and hit this: > | > | https://pubs.opengroup.org/onlinepubs/009695399/utilities/find.h

Re: find -exec util {} arg + confusion

2020-11-15 Thread Alexander Hall
On Sun, Nov 15, 2020 at 07:19:07PM +0100, Paul de Weerd wrote: > Hi all, > > It was pointed out to me off-list that I introduced a regression for > the case that has '+' as one of its arguments, e.g.: > > [weerd@pom] $ find /var/empty -exec echo + {} + > find: -exec: "+" should

Re: Qcow2: External snapshots

2018-10-01 Thread Alexander Hall
Uh-oh... Don't mention hackers@ on tech@... (FWIW) :-) /Alexander On October 1, 2018 12:55:12 PM GMT+02:00, Reyk Floeter wrote: >Hi Ori, > >On Sun, Sep 30, 2018 at 12:27:00PM -0700, Ori Bernstein wrote: >> I've added support to vmd for external snapshots. That is, >> snapshots that are derived

Re: install.sub - disklabel template modification

2018-08-30 Thread Alexander Hall
On August 30, 2018 3:27:07 PM GMT+02:00, "Jiri B." wrote: >Hi, > >if somebody would put into install.conf following line: > > URL to autopartitioning template for disklabel = /disklabel.template > >ftp would end in its prompt. > ># ftp -Vo - /disklabel.template

Re: nologin(8): write -> dprintf

2018-08-15 Thread Alexander Hall
On August 15, 2018 4:27:24 PM GMT+02:00, Scott Cheloha wrote: >Use dprintf for the DEFAULT_MESG string instead of the more awkward >write+strlen combo. > >ok? > >-- >Scott Cheloha > >Index: sbin/nologin/nologin.c >=== >RCS file:

Re: ksh "clear-screen" editing command

2018-06-18 Thread Alexander Hall
On June 18, 2018 11:00:00 PM GMT+02:00, Richard Procter wrote: > >On 6/06/2018, at 10:20 AM, Alexander Hall wrote: > >> This adds a "clear-screen" editing command to the emacs editing mode. >> This is the same name as bash and zsh uses, and then I stoppe

Re: ksh "clear-screen" editing command

2018-06-17 Thread Alexander Hall
I'm currently on vacation with very limited ability to test, but I do approve of this way. /Alexander On June 17, 2018 5:00:17 PM GMT+02:00, "Todd C. Miller" wrote: >On Sat, 16 Jun 2018 16:16:57 -0600, "Todd C. Miller" wrote: > >> On Sat, 16 Jun 2018 14:50:40 +0200, Mark Kettenis wrote: >>

Re: ksh "clear-screen" editing command

2018-06-16 Thread Alexander Hall
t; >Todd C. Miller(todd.mil...@sudo.ws) on 2018.06.16 06:37:03 -0600: >> On Tue, 12 Jun 2018 02:35:57 +0200, Alexander Hall wrote: >> >> > The diff below uses system(3) to call /usr/bin/clear, fiddling with > >> > *env() to make sure the current TERM value is propag

Re: ksh "clear-screen" editing command

2018-06-11 Thread Alexander Hall
On 06/06/18 13:50, Todd C. Miller wrote: > On Tue, 05 Jun 2018 16:29:33 -0600, "Theo de Raadt" wrote: > >>> + clearstr = "\033[H\033[J"; >> >> I abhor increasing assumptions that the terminal honours that particular >> ANSI standard. >> >> Sorry, but at that point you have

ksh "clear-screen" editing command

2018-06-05 Thread Alexander Hall
This adds a "clear-screen" editing command to the emacs editing mode. This is the same name as bash and zsh uses, and then I stopped looking. The default binding of 'redraw' remains for ^L, for now anyway, so you'll need to run $ bind ^L=clear-screen" when testing. $CLEARSTR can be set to an

Re: ksh.kshrc: Fix quoting in {add,pre,del}_path() to work with spaces

2018-02-18 Thread Alexander Hall
On February 18, 2018 6:37:52 PM GMT+01:00, Robert Peichaer wrote: >On Sun, Feb 18, 2018 at 12:36:43PM +0100, Klemens Nanni wrote: >> On Tue, Nov 21, 2017 at 08:30:25PM +0100, Klemens Nanni wrote: >> > On Sun, Nov 12, 2017 at 10:43:46PM +0100, Klemens Nanni wrote: >> > > On

Re: jot: small cleanup for conversion switch

2018-01-11 Thread Alexander Hall
On January 12, 2018 7:26:58 AM GMT+01:00, Theo Buehler wrote: >> >+ case 'd': >> >+ case 'i': >> >intdata = true; >> >break; >> >+ case 'o': >> >+ case 'u': >> >+ case 'x': >> >+

Re: jot: small cleanup for conversion switch

2018-01-11 Thread Alexander Hall
Didn't test, but reads ok to me, with minor nit below. On January 11, 2018 9:25:10 PM GMT+01:00, Theo Buehler wrote: >This aligns all cases vertically which makes them easier to find. > >Normalize all cases: if the long form is illegal or unsupported, >'goto fmt_broken;',

Re: less(1): `!' command

2017-12-23 Thread Alexander Hall
On December 22, 2017 11:21:12 PM GMT+01:00, Stuart Henderson wrote: >On 2017/12/22 19:47, Nicholas Marriott wrote: >> I don't think we should bring ! back. >> >> I wanted to remove v and | (and some other stuff) shortly afterwards, >but >> several people objected. >> >>

Re: /etc/netstart diff

2017-11-09 Thread Alexander Hall
On November 9, 2017 7:02:54 PM GMT+01:00, Robert Peichaer wrote: >On Wed, Nov 08, 2017 at 10:47:43PM +0100, Holger Mikolon wrote: >> The veriable $HN_DIR is set in /etc/netstart on line 166 but used >only >> once (line 78). The diff below makes use of $HN_DIR in the other

Re: [PATCH] etc/ksh.kshrc - unify command substitution

2017-10-23 Thread Alexander Hall
I'm OK with this. /Alexander On October 23, 2017 3:29:57 PM GMT+02:00, Raf Czlonka wrote: >What say you? > >On Tue, Aug 29, 2017 at 08:44:43PM BST, Raf Czlonka wrote: >> Ping. >> >> Anyone? >> >> On Sun, Jul 16, 2017 at 01:43:32PM BST, Raf Czlonka wrote: >> > Hi all, >>

Re: [PATCH] cp(1): add -v option for verbosity

2017-06-25 Thread Alexander Hall
On June 25, 2017 2:06:20 PM GMT+02:00, Job Snijders wrote: >Dear team, > >This patch adds a -v option to cp(1) for more verbose output. > > $ touch a b; mkdir c > $ cp -v a b c > 'a' -> 'c/a' > 'b' -> 'c/b' > $ cp -rv c d > 'c' -> 'd/' >

Re: [patch] rebound.c

2017-05-31 Thread Alexander Hall
Yeah, I use the nowrap or so plugin. When enabled, however, you will need to manually line break your textual lines. /Alexander On May 31, 2017 11:20:52 PM GMT+02:00, Edgar Pettijohn wrote: >Will do. Seems like Thunderbird messes then up sometimes. > >⁣Sent from

Re: rmt

2017-02-17 Thread Alexander Hall
On February 17, 2017 11:53:44 PM GMT+01:00, Andrew Grillet wrote: >How do I actually use rmt? > >I want to backup a guest domain on a T2000 using a tape drive on the >primary domain. >Both domains run OpenBSD 6.0. > >The way I read the mt manual page, I should be able to

Re: Installer error

2017-01-11 Thread Alexander Hall
On January 11, 2017 7:36:00 PM GMT+01:00, Theo Buehler wrote: >> OK halex@, who would also accept a stricter regular expression in the >sed command. >> > >Alright, here's a stricter regular expression. Should I add " >ftp.openbsd.org$" >to it or is this good enough? I

Re: Installer error

2017-01-11 Thread Alexander Hall
On January 11, 2017 1:21:30 PM GMT+01:00, Theo Buehler wrote: >On Wed, Jan 11, 2017 at 01:10:12PM +0100, Theo Buehler wrote: >> On Wed, Jan 11, 2017 at 11:52:02AM +, Pedro Caetano wrote: >> > Hi tech@ >> > >> > I was running an headless installation via serial using

Re: Allow install from https server w/ self signed cert

2017-01-05 Thread Alexander Hall
On January 5, 2017 11:10:06 PM GMT+01:00, Alexander Hall <alexan...@beard.se> wrote: >What's the point of installing over https if you don't care about >validating the cert? Oh, I read too fast. Please disregard. /Alexander > >On January 5, 2017 12:24:11 PM GMT+01:00

Re: Allow install from https server w/ self signed cert

2017-01-05 Thread Alexander Hall
What's the point of installing over https if you don't care about validating the cert? On January 5, 2017 12:24:11 PM GMT+01:00, RD Thrush wrote: >Rather than add load to the OpenBSD snapshot servers, for years I >download a snapshot to a local netgear nas server. With

Re: bin/chmod: set owner of symlinks

2016-09-11 Thread Alexander Hall
On Sat, Sep 10, 2016 at 01:46:05PM -0700, Philip Guenther wrote: > On Sat, 10 Sep 2016, Martin Natano wrote: > > When building with noperm the symlinks end up with the build user as > > owner instead of root. Ok? > ... > > --- bin/chmod/Makefile 6 Sep 2001 18:52:55 - 1.7 > > +++

Re: Make rc scripts use [[ instead of [

2016-09-05 Thread Alexander Hall
Ok, so I'll throw in my view too. On September 5, 2016 1:24:17 PM GMT+02:00, Anthony Coulter wrote: >Some of the system scripts make inconsistent use of ksh-specific >features, specifically "print" and "[[" as efficient replacements for >"echo" and "[". This change

Re: installer: do proper checks for MBR/GPT and OpenBSD area

2016-09-02 Thread Alexander Hall
On Fri, Sep 02, 2016 at 01:57:21PM +0300, Paul Irofti wrote: > Hi, > > While reinstalling OpenBSD on the x260 I saw a weird message when > selecting the disk (that had a valid MBR) > > 'No valid MBR or GPT' > > which lead to the following installer diff. > > The idea is to do two checks

Re: ksh cd two args

2016-08-31 Thread Alexander Hall
On Wed, Aug 31, 2016 at 01:53:30PM +0100, Theo Buehler wrote: > On Wed, Aug 31, 2016 at 08:39:51AM -0400, Ted Unangst wrote: > > About ten times a day I do something like this: > > $ cd cd tedu > > ksh: cd: bad substitution > > > > What does that even mean? According to the source, but not the

Re: ksh, ctrl-r followed by arrow key leaves "[D" or "[C" artifacts

2016-08-09 Thread Alexander Hall
On Tue, Aug 09, 2016 at 11:30:34AM +0200, Martin Natano wrote: > On Mon, Aug 08, 2016 at 07:12:34PM +0200, Ingo Schwarze wrote: > > > > According to the documentation, typing the escape key alone is not > > a supported method of exiting the search prompt. The ksh(1) manual > > says: > > > >

Re: ksh, ctrl-r followed by arrow key leaves "[D" or "[C" artifacts

2016-08-08 Thread Alexander Hall
On Mon, Aug 08, 2016 at 08:21:50AM +0200, Martin Natano wrote: > On Mon, Aug 08, 2016 at 03:33:23AM +0200, Ingo Schwarze wrote: > > Hi Dave, > > > > redirecting from misc@ to tech@ because i'm appending a patch > > at the very end, lightly tested. > > > > This has indeed been annoying me for

nc getaddrinfo cleanup

2016-07-29 Thread Alexander Hall
Use the style from the man page examples for getaddrinfo, which makes a bit more sense. No functional change intended, and prior to the do/while => for transition, no .o files were harmed. OK? /Alexander Index: netcat.c === RCS

Re: Unmounting with MNT_DOOMED flag can lead to a kernel panic

2016-07-12 Thread Alexander Hall
On July 12, 2016 8:55:50 PM GMT+02:00, "Todd C. Miller" wrote: >On Tue, 12 Jul 2016 07:22:57 -1000, Tim Newsham wrote: > >> Here's another root-only (unless kern.usermount is set) panic issue. >We >> exercise it through tmpfs but it might be more general than that.

Re: xdm halt & reboot buttons

2016-07-04 Thread Alexander Hall
On July 4, 2016 11:06:28 PM GMT+02:00, Alexander Hall <alexan...@beard.se> wrote: > > >On July 4, 2016 5:51:06 PM GMT+02:00, Bob Beck <b...@openbsd.org> >wrote: >>> >>> Thinking of it again, you could possibly just use the action >>arguments

Re: xdm halt & reboot buttons

2016-07-04 Thread Alexander Hall
On July 4, 2016 5:51:06 PM GMT+02:00, Bob Beck wrote: >> >> Thinking of it again, you could possibly just use the action >arguments for >> a more generic "execute-program" action. >> > >Ahhh.. are you insane? The way you get a generic "execute program" >action is to LOG IN TO

Re: xdm halt & reboot buttons

2016-07-02 Thread Alexander Hall
On Sat, Jul 02, 2016 at 01:02:57AM +0200, Alexander Hall wrote: > On Fri, Jul 01, 2016 at 03:38:26PM +0200, Matthieu Herrb wrote: > > On Fri, Jul 01, 2016 at 02:22:57PM +0100, Craig Skinner wrote: > > > Hi Alexander, > > > > > > On 2016-06-30

Re: xdm halt & reboot buttons

2016-07-01 Thread Alexander Hall
On Fri, Jul 01, 2016 at 03:38:26PM +0200, Matthieu Herrb wrote: > On Fri, Jul 01, 2016 at 02:22:57PM +0100, Craig Skinner wrote: > > Hi Alexander, > > > > On 2016-06-30 Thu 20:58 PM |, Alexander Hall wrote: > > > > > > 1. xmessage has an sometimes

Re: xdm halt & reboot buttons

2016-06-30 Thread Alexander Hall
On Thu, Jun 30, 2016 at 04:43:12PM +0100, Craig Skinner wrote: > Hiya, > > On 2016-06-29 Wed 14:46 PM |, Craig Skinner wrote: > > On 2016-06-28 Tue 15:27 PM |, Craig Skinner wrote: > > > This diff presents 'Halt' and 'Reboot' buttons on the xdm screen. > > > > > > > Now it closes the message

Re: dhclient: use /dev/bpf

2016-05-06 Thread Alexander Hall
On May 6, 2016 8:17:50 PM GMT+02:00, Stuart Henderson wrote: >On 2016/05/06 19:35, Martin Natano wrote: >> On Thu, May 05, 2016 at 09:30:43PM +0100, Stuart Henderson wrote: >> > On 2016/05/02 09:34, Martin Natano wrote: >> > > Diff below simplifies the device open path

Re: www.openbsd.org/cgi-bin/man.cgi

2016-03-25 Thread Alexander Hall
Am I the only one that didn't take the proposal seriously? /Alexander On March 25, 2016 5:13:52 PM GMT+01:00, Theo de Raadt wrote: >> > $ ssh gu...@man.openbsd.org >> > >> > Welcome guest user to OpenBSD's online manual library. >> > >> > The only command available

Re: tedu empty tcsh files in /etc

2016-03-19 Thread Alexander Hall
On Sun, Mar 20, 2016 at 01:33:06AM +0100, Alexander Hall wrote: > Hi, > > As far as I can tell, there is no point in having these files lying > around in /etc as they are not needed by tcsh. They're all comments > and don't even hold an example. > > Thus, remove them a

tedu empty tcsh files in /etc

2016-03-19 Thread Alexander Hall
Hi, As far as I can tell, there is no point in having these files lying around in /etc as they are not needed by tcsh. They're all comments and don't even hold an example. Thus, remove them and make them optional in /etc/mtree/special. Objections from tcsh users? OK? /Alexander Index:

Re: opendev(3) tweak

2016-03-15 Thread Alexander Hall
I'm aware I'm kicking an old horse here, but... On Thu, Mar 10, 2016 at 12:52:35PM +0100, Marc Espie wrote: > @@ -106,5 +108,17 @@ opendev(const char *path, int oflags, in > if (realpath) > *realpath = namebuf; If anything like this goes in (or did it already?) the *realpath

Re: rdist.c patch

2016-03-06 Thread Alexander Hall
On March 6, 2016 5:57:23 PM GMT+01:00, Edgar Pettijohn wrote: > > >On 03/06/16 00:12, Philip Guenther wrote: >> On Sun, Feb 28, 2016 at 1:35 PM, Edgar Pettijohn >> wrote: >>> --- rdist.c.origSun Feb 28 15:29:27 2016 >>> +++ rdist.cSun

Re: Fix size hints for x11-ssh-askpass

2015-12-28 Thread Alexander Hall
On Mon, Dec 28, 2015 at 08:10:49AM +0100, Matthieu Herrb wrote: > On Sun, Dec 27, 2015 at 08:28:36PM +0100, Alexander Hall wrote: > > Hi, > > > > Recently, my window manager (i3) started making the ssh-askpass windows > > too small to be really usable. The proble

Re: Fix size hints for x11-ssh-askpass

2015-12-28 Thread Alexander Hall
On Mon, Dec 28, 2015 at 11:42:00AM +0100, Alexander Hall wrote: > On Mon, Dec 28, 2015 at 08:10:49AM +0100, Matthieu Herrb wrote: > > On Sun, Dec 27, 2015 at 08:28:36PM +0100, Alexander Hall wrote: > > > Hi, > > > > > > Recently, my window manager (i3) st

Re: Fix size hints for x11-ssh-askpass

2015-12-27 Thread Alexander Hall
On Sun, Dec 27, 2015 at 08:44:35PM +0100, Theo Buehler wrote: > On Sun, Dec 27, 2015 at 08:28:36PM +0100, Alexander Hall wrote: > > Hi, > > > > Recently, my window manager (i3) started making the ssh-askpass windows > > too small to be really usable. The proble

Fix size hints for x11-ssh-askpass

2015-12-27 Thread Alexander Hall
Hi, Recently, my window manager (i3) started making the ssh-askpass windows too small to be really usable. The problem seems to be that the size hints indicate that it provides a width and height, while those fields are set to 0. While looking at this, the same seems to be the case for

Re: ksh.1: Remove $ERRNO reference

2015-12-25 Thread Alexander Hall
On Fri, Dec 25, 2015 at 01:36:31PM -0500, Michael Reed wrote: > It's had the ``Not implemented'' notice since ksh.1's initial import > 19 years ago [1], so it's probably not going to be implemented. > > [1]: >

Re: sunfire v120 gem interfaces

2015-11-08 Thread Alexander Hall
I had problems with my dual AC200 carp setup, in that the interfaces would periodically stop receiving packets. Transmission still worked though, so the carp wouldn't fail over... Machines are retired now, but I believe details exist in the archives somewhere. I also believe henning@ had

Re: Call for testers of restricted rmt(8)

2015-09-15 Thread Alexander Hall
, later. > Else, just some comments inline. > > On Thu, Sep 10, 2015 at 12:58:52AM +0200, Alexander Hall wrote: >> >> Index: rmt.c >> === >> RCS file: /cvs/src/usr.sbin/rmt/rmt.c,v >> retrieving re

Re: Call for testers of restricted rmt(8)

2015-09-12 Thread Alexander Hall
On 09/11/15 19:33, Sebastien Marie wrote: On Fri, Sep 11, 2015 at 05:03:54PM +0200, Alexander Hall wrote: Is *anyone* but me using rdump(8) + rmt(8)? I use dump(8) for doing remote backup, but I don't use rmt(8), due to plaintext storage on remote side. I don't understand. What's

Re: Call for testers of restricted rmt(8)

2015-09-11 Thread Alexander Hall
On September 11, 2015 6:27:26 AM GMT+02:00, Sebastien Marie <sema...@openbsd.org> wrote: >On Thu, Sep 10, 2015 at 12:58:52AM +0200, Alexander Hall wrote: >> I'm going wide with this diff I've been pushing for quite some time >now. >> >> Is *anyone* but me using rd

Call for testers of restricted rmt(8)

2015-09-09 Thread Alexander Hall
I'm going wide with this diff I've been pushing for quite some time now. Is *anyone* but me using rdump(8) + rmt(8)? *If you are currently using rdump/rrestore + rmt, I urge you to test this diff to make sure it causes no regression. It shouldn't, but you've been warned. So, anyway, this diff

Re: [PATCH] doas authentication type

2015-08-27 Thread Alexander Hall
On August 27, 2015 6:32:31 PM GMT+02:00, Ted Unangst t...@tedunangst.com wrote: Renaud Allard wrote: On 08/26/2015 06:39 PM, Michael Reed wrote: Hi Renauld, On 08/26/15 09:38, Renaud Allard wrote: I rewrote a little bit the patch to remove a small kind-of typo in the manpage and remove

Re: doas authentication type

2015-08-26 Thread Alexander Hall
as suggested by Alexander Hall diff -ur doas.orig/doas.1 doas/doas.1 --- doas.orig/doas.1 Wed Aug 26 10:18:27 2015 +++ doas/doas.1Wed Aug 26 10:17:21 2015 @@ -40,6 +40,12 @@ .Pp The options are as follows: .Bl -tag -width tenletters +.It Fl a Ar style +The +.Fl a +(authentication

doas auth

2015-08-24 Thread Alexander Hall
I was inspired by a related mail to send out this doas auth diff again. Hopefully my phone won't ruin the formatting. . . . . . Add a type to auth_userokay() to allow for giving a specific authentication method for doas in login.conf, e.g. staff:\ ... :auth-doas=yubikey:\

Re: kern_tame.c: fix strncmp call

2015-08-23 Thread Alexander Hall
On 08/24/15 00:29, patrick keshishian wrote: On 8/23/15, Caspar Schutijser cas...@schutijser.com wrote: Patch below. Thanks, Caspar Schutijser Index: sys/kern/kern_tame.c === RCS file: /cvs/src/sys/kern/kern_tame.c,v retrieving

Re: autoinstall(8): using multiple set sources?

2015-08-07 Thread Alexander Hall
On August 7, 2015 9:10:06 PM GMT+02:00, Philipp e1c1bac6253dc54a1e89ddc046585...@posteo.net wrote: While heavy playing with autoinstall(8), I came across that I cannot make it happen to install the usual sets from CD/ISO and additional ones like site58.tgz from a webserver. install.conf

Re: [patch] Remove archaic manual sizing from dump(8)

2015-07-24 Thread Alexander Hall
On 07/25/15 01:46, trondd wrote: On 2015-07-24 19:15, Michael McConville wrote: I removed it because I wasn't sure whether the project liked placebo legacy flags. Should I replace it? For reference: When -U was removed it was removed. Compared to -a, which we've had since -97, -U was a

Re: Fix for connect race in relayd

2015-05-31 Thread Alexander Hall
On May 31, 2015 3:15:33 PM GMT+02:00, Gleydson Soares gsoa...@gmail.com wrote: (The pastebin expire) patches on tech@ are preferably as inline(text/plain) in the body of the email. and make sure that your mail client doesn't corrupt it. most openbsd developers uses mutt, but there are a lot

Re: [patch]apmd ? sign

2015-05-20 Thread Alexander Hall
On May 20, 2015 5:08:21 PM GMT+02:00, Fritjof Bornebusch frit...@alokat.org wrote: Hi, for what is the ? sign for? fallthrough to usage() # apmd -? /Alexander Regards, --F. Index: apmd.c === RCS file:

Re: UPD regression with

2015-05-15 Thread Alexander Hall
On May 13, 2015 3:37:39 AM GMT+02:00, David Higgs hig...@gmail.com wrote: On May 11, 2015, at 9:02 PM, David Higgs hig...@gmail.com wrote: On May 11, 2015, at 8:21 PM, David Higgs hig...@gmail.com mailto:hig...@gmail.com wrote: On Mon, May 11, 2015 at 8:07 PM, Alexander Hall alexan

Re: UPD regression with

2015-05-13 Thread Alexander Hall
On 05/13/15 03:37, David Higgs wrote: On May 11, 2015, at 9:02 PM, David Higgs hig...@gmail.com wrote: On May 11, 2015, at 8:21 PM, David Higgs hig...@gmail.com mailto:hig...@gmail.com wrote: On Mon, May 11, 2015 at 8:07 PM, Alexander Hall alexan...@beard.se mailto:alexan...@beard.sewrote

UPD regression with

2015-05-11 Thread Alexander Hall
Upgrading to the latest snapshot, I noticed my upd sensors had been disturbingly crippled. uhidev0 at uhub4 port 1 configuration 1 interface 0 EATON Eaton 3S rev 2.00/1.00 addr 2 uhidev0: iclass 3/0, 32 report ids upd0 at uhidev0 Diff below is what happens from upd.c r1.13 to r1.14.

Re: grep -R without directory argument

2015-04-30 Thread Alexander Hall
On April 30, 2015 9:19:18 AM GMT+02:00, Alexander Hall alexan...@beard.se wrote: While the situation you describe is admittedly horribly annoying (BTDT), we do allow 'grep -I 123', which would also seem pointless. Bah. That's lowercase -i, obviously. Stupid phone. /Alexander

Re: grep -R without directory argument

2015-04-30 Thread Alexander Hall
On April 30, 2015 7:51:55 AM GMT+02:00, Martin Natano nat...@natano.net wrote: grep reads from standard input when no files are specified. It also does so when -R is used, which doesn't really make sense. I think using the current working directory as a fallback when no directories are specified

Re: grep -R without directory argument

2015-04-30 Thread Alexander Hall
On April 30, 2015 2:02:23 PM GMT+02:00, Todd C. Miller todd.mil...@courtesan.com wrote: On Thu, 30 Apr 2015 05:58:57 -0600, Todd C. Miller wrote: GNU grep warns in this case before reading from stdin which seems reasonable. % grep -R foo grep: warning: recursive search of stdin ... I'd

Re: autoinstall(8) tweaks

2015-04-09 Thread Alexander Hall
On April 9, 2015 9:33:57 AM GMT+02:00, Stuart Henderson st...@openbsd.org wrote: On 2015/04/09 09:13, Alexander Hall wrote: I don't think tweaking an existing auto label is unnecessary and overly . Hardcoding mount points and their sizes should be enough, and leave the rest unallocated

Re: autoinstall(8) tweaks

2015-04-09 Thread Alexander Hall
On April 9, 2015 2:44:28 AM GMT+02:00, Stuart Henderson st...@openbsd.org wrote: On 2015/04/09 01:53, Alexander Hall wrote: On April 8, 2015 9:13:27 AM GMT+02:00, Stuart Henderson st...@openbsd.org wrote: On 2015/04/07 20:02, Alex Wilson wrote: On the topic of local tweaks to autoinstall

Re: autoinstall(8) tweaks

2015-04-08 Thread Alexander Hall
On April 8, 2015 9:13:27 AM GMT+02:00, Stuart Henderson st...@openbsd.org wrote: On 2015/04/07 20:02, Alex Wilson wrote: On the topic of local tweaks to autoinstall, I was trying to use it for a bunch of blades with very limited disk the other day, and I really wanted to make them just create

Re: Do you need/prefer the non-DUID option in the installer?

2015-03-15 Thread Alexander Hall
On March 15, 2015 8:18:59 PM GMT+01:00, Vadim Zhukov persg...@gmail.com wrote: 15 марта 2015 г. 21:26 пользователь Robert Peichaer rob...@peichaer.org написал: On Sun, Mar 15, 2015 at 09:03:45PM +0300, Vadim Zhukov wrote: 15 ?? 2015 ??. 20:50 Theo de Raadt

Re: ksh diff, escape !

2015-03-09 Thread Alexander Hall
On March 9, 2015 3:28:02 PM GMT+01:00, Stuart Henderson st...@openbsd.org wrote: On 2015/03/09 11:19, Alexander Hall wrote: On March 9, 2015 12:49:07 AM GMT+01:00, Stuart Henderson st...@openbsd.org wrote: On 2015/03/08 15:06, Philip Guenther wrote: On Sun, Mar 8, 2015 at 2:52 PM

Re: ksh diff, escape !

2015-03-09 Thread Alexander Hall
On March 9, 2015 12:49:07 AM GMT+01:00, Stuart Henderson st...@openbsd.org wrote: On 2015/03/08 15:06, Philip Guenther wrote: On Sun, Mar 8, 2015 at 2:52 PM, Christian Weisgerber na...@mips.inka.de wrote: On 2015-03-08, Stuart Henderson st...@openbsd.org wrote: ! needs to be escaped in

Re: ftp less progress

2015-02-17 Thread Alexander Hall
On 02/17/15 09:07, Ted Unangst wrote: It's sometimes helpful to run ftp -o - http://somwhat/ for debugging purposes, but the progress bar gets in the way and makes it ugly. Even with -V to disable verbose, it still prints progress. Add -M (complement of -m) to always turn off progress. I'm

Re: make release fails if SUDO is set in mk.conf

2014-10-24 Thread Alexander Hall
Maybe $ make SUDO= release works? That enforces the value of SUDO, but I've never tried it for an empty value. Or try $ make SUDO=' ' release /Alexander On October 24, 2014 8:34:54 AM CEST, thev...@openmailbox.org wrote: with SUDO set in /etc/mk.conf: if make release is run as root it

Re: Fix slow DHCP requests in /etc/netstart

2014-09-26 Thread Alexander Hall
On 09/26/14 14:36, Stuart Henderson wrote: On 2014/09/26 07:42, Alexander Hall wrote: Before performing a dhcp request, /etc/netstart explicitly takes the interface down. As noted (by me) at g2k14, and also at work, this results in a significant delay in getting the address. I'm not all

Fix slow DHCP requests in /etc/netstart

2014-09-25 Thread Alexander Hall
Before performing a dhcp request, /etc/netstart explicitly takes the interface down. As noted (by me) at g2k14, and also at work, this results in a significant delay in getting the address. I'm not all into enterprise switch magic, but someone hinted that this could come from the switch

Re: [PATCH] Option for mount_tmpfs to populate the volume after creation.

2014-09-18 Thread Alexander Hall
On September 18, 2014 9:40:44 AM CEST, bytevolc...@safe-mail.net wrote: This patch adds an option -t template to mount_tmpfs, which populates the new tmpfs volume with a directory immediately after creation. Man page update included for explanation. Much of the code was grafted from newfs

Re: make top combine cpu lines by default if you have a lot of cpus

2014-09-17 Thread Alexander Hall
On 09/17/14 07:44, Alexander Hall wrote: On September 17, 2014 3:54:34 AM CEST, David Gwynne da...@gwynne.id.au wrote: not yet. we could make -1 toggle combine_cpu, or have something like -1 and -N for combined and N cpus displayed? If we want it, I'm in strong favor for the latter. Toggles

Re: make top combine cpu lines by default if you have a lot of cpus

2014-09-16 Thread Alexander Hall
On September 16, 2014 2:11:28 PM CEST, Mark Kettenis mark.kette...@xs4all.nl wrote: Date: Tue, 16 Sep 2014 21:51:00 +1000 From: David Gwynne da...@gwynne.id.au if you have more than 8 cpus, combine the cpu lines by default. Just curious, is there a command line argument to expand the

Re: make top combine cpu lines by default if you have a lot of cpus

2014-09-16 Thread Alexander Hall
needing it, it might make sense not to compress the CPU list for non-interactive use. /Alexander On 16 Sep 2014, at 11:08 pm, Alexander Hall alexan...@beard.se wrote: On September 16, 2014 2:11:28 PM CEST, Mark Kettenis mark.kette...@xs4all.nl wrote: Date: Tue, 16 Sep 2014 21:51:00 +1000

Re: audioctl: drop useless fields

2014-09-11 Thread Alexander Hall
On 09/11/14 09:58, Alexandre Ratchov wrote: On Wed, Sep 10, 2014 at 07:31:17PM +0200, Alexandre Ratchov wrote: audioctl output is full of useless, misleading and/or unreliable fields. Let's keep the usable ones only. The plan is to remove them from the kernel as well. OK? I've been asked in

Re: changing ffs mount between rw and ro while preserving softdep

2014-08-28 Thread Alexander Hall
On 08/28/14 23:06, Paul de Weerd wrote: On Thu, Aug 28, 2014 at 06:27:48PM +, Miod Vallat wrote: | Which is why the current way to remove softdep from a filesystem is a | rw+softdep - ro - rw transition, which would no longer work with your | diff. | | It would work, but you'd have to

Re: ksh history bug

2014-08-15 Thread Alexander Hall
On Thu, Aug 14, 2014 at 12:10:58PM -0400, Jared Yanovich wrote: + If first and last are both omitted, the previous 16 commands shall be listed or the previous single command shall be edited (based on the -l option). that kind of suggests that the fc -l producing those previous 16

  1   2   3   >