Re: Supporting compression-less release builds

2025-01-12 Thread Alistair Crooks
On Sun, 12 Jan 2025 at 06:49, Julio Merino wrote: > Hello, > > I'm currently working on a NetBSD-based embedded disk image and, while > working on this project, the compression of various artifacts during the > build gets in the way. Compressing the sets and kernels is very visible > the choke p

Re: awk gensub documentation

2024-06-19 Thread Alistair Crooks
On Tue, 18 Jun 2024 at 07:57, Valery Ushakov wrote: > My eye accidentally caught this phrase in awk(1), that says in the > description of gensub(): > > Note that the ā€˜\n’ sequences within replacement string s supported > by GNU awk are not supported at this moment. > > I assume what it means

Re: grep -r: add default "."

2022-09-04 Thread Alistair Crooks
On Sat, Sep 3, 2022 at 14:50 RVP wrote: > On Sat, 3 Sep 2022, Martin Husemann wrote: > > > How about fixing the bsd version we have in tree instead? Maybe FreeBSD > or > > OpenBSD already did that and we can borrwo? > > > > There is also the home-grown agcre in othersrc which looks (mostly) > fea

Re: Changing the default localcipher in passwd.conf to argon2id

2021-10-31 Thread Alistair Crooks
On Wed, 20 Oct 2021 at 14:37, Alistair Crooks wrote: > > > On Wed, 20 Oct 2021 at 13:39, nia wrote: > >> I want to change the default cipher in passwd.conf to >> Argon2id, for these reasons: >> >> - Argon2id is resistant to GPU-based password cracking attacks

Re: Changing the default localcipher in passwd.conf to argon2id

2021-10-28 Thread Alistair Crooks
On Wed, 20 Oct 2021 at 13:39, nia wrote: > I want to change the default cipher in passwd.conf to > Argon2id, for these reasons: > > - Argon2id is resistant to GPU-based password cracking attacks. > - Argon2id is resistant to side channel attacks. > - It allows us to dynamically scale the CPU time

Re: CVS commit: src/share/misc

2021-03-30 Thread Alistair Crooks
On Tue, 30 Mar 2021 at 20:10, Jason Thorpe wrote: > > > On Mar 30, 2021, at 8:03 PM, Christos Zoulas > wrote: > > > > There are 3 x 'sizeof(' in the tree compared to 'sizeof ' in '*.c' and > > I am counting 'sizeof (' as 'sizeof ': > > > > 191337 'sizeof(' > > 63508 'sizeof ' > > > > I think tha

Re: Proposal to import window(1) into the base

2020-10-22 Thread Alistair Crooks
If it comes back, it needs to be modified to use curses - the hardcoded terminal escapes for a bunch of 1970s terminals is kinda cute in a retro way; it's also kinda embarassing. I also miss it in base, though On Thu, 22 Oct 2020 at 16:01, matthew green wrote: > personally, i miss window(1) in b

Re: style change: explicitly permit braces for single statements

2020-07-18 Thread Alistair Crooks
Just to get back to the original subject - fully support {} around single statements - have been doing that in my own code for ages. Would be great to have that codified (ha!) On Thu, 16 Jul 2020 at 12:01, Rhialto wrote: > On Thu 16 Jul 2020 at 13:08:49 -0400, Ted Lemon wrote: > > It sounds lik

Re: colorls in base

2019-02-15 Thread Alistair Crooks
On Fri, 15 Feb 2019 at 10:46, Manuel Bouyer wrote: > On Fri, Feb 15, 2019 at 10:05:04AM -0800, Alistair Crooks wrote: > > [...] > > > > (my motivation is that my eyes are not getting any better, > > nor do mine > > > and i need the > > visual cues t

Re: colorls in base

2019-02-15 Thread Alistair Crooks
As a service to the community, I hereby present my colorls script: /bin/ls -al $@ | awk ' function p(s, color) { printf("%c[0;%dm%s%c[0m\n", 27, color, s, 27); } BEGIN { black = 30; red = 31; green = 32; yellow = 33; blue = 34; purple = 35; cyan = 36 ; gray = 37 } /^dt/ { p($0, green); nex

Re: printf(1) format additions

2018-07-24 Thread Alistair Crooks
On Tue, 24 Jul 2018 at 13:49, Robert Elz wrote: > I have just added support for the F a and A formats to printf(1). > > These are not required by POSIX, but nor are the e E f g or G formats, > which we did support. and supporting those 5 without the other 3 makes > allmost no sense (in the code t

Re: Removal of "ancient HTML generation"

2017-07-15 Thread Alistair Crooks
to previous page. Best, Alistair On 14 July 2017 at 09:52, Thomas Klausner wrote: > On Fri, Jul 14, 2017 at 09:23:14AM -0700, Alistair Crooks wrote: >> The reason I'm asking is that for many years, and until these changes, >> I used to use lynx, locally, as a very quick, che

Removal of "ancient HTML generation"

2017-07-14 Thread Alistair Crooks
Hi, There were a number of changes made to remove "ancient HTML generation" like the following one. Module Name:src Committed By: wiz Date: Mon Jul 3 21:31:01 UTC 2017 Modified Files: src/share/man/man1: cd.1 wait.1 src/share/man/man1/man1.x68k: bellctrl.1

Re: adding stuff to the base installation to make user experience better

2017-07-06 Thread Alistair Crooks
On 6 July 2017 at 08:52, Joerg Sonnenberger wrote: > On Thu, Jul 06, 2017 at 11:23:09AM -0400, Christos Zoulas wrote: >> 1. A text browser in base. "lynx" or "links" come to mind, I don't >>mind which, both are GPL2. > > No. Seriously, no. Well, this is 2017, and not having any kind of browse

Re: Shipping SSL certificates in the base system

2017-07-05 Thread Alistair Crooks
Thanks to Bennie for starting off this discussion. My apologies for derailing things with the tzdata allusion. I think we're all aware of the nature of trust wrt these certs. So quite why everyone is shouting "THESE CERTS MIGHT BECOME STALE OR UNTRUSTED, SO IT IS FAR BETTER TO CONTINUE TO TRUST EV

Re: Shipping SSL certificates in the base system

2017-07-05 Thread Alistair Crooks
Distributing mozilla root certs is hardly "TNF takes on the role of a trusted CA source". And we need to start thinking laterally here. Certs are necessarily transitory, and we wish any form of added trust to be enduring over a period of time. + Can we use ssh fingerprints of project machines as

Re: randomness (crypto?) code example wanted please?

2017-06-25 Thread Alistair Crooks
I've seen a number of "workarounds" for random(3), including taking bytes 2 and 3 "as they provide more randomness", taking bottom 16 bits, taking those values and using as seeds for something else, and seeding by microseconds; hopefully we've grown out of the "seeding by process ID" that we had qu

Re: static pie support for x86 (from OpenBSD)

2017-05-31 Thread Alistair Crooks
Thanks - it would be great to have this functionality! On 31 May 2017 at 09:53, Christos Zoulas wrote: > On May 31, 9:40am, a...@pkgsrc.org (Alistair Crooks) wrote: > -- Subject: Re: static pie support for x86 (from OpenBSD) > > | Is there any way the _DYNAMIC entry could be abused

Re: static pie support for x86 (from OpenBSD)

2017-05-31 Thread Alistair Crooks
Is there any way the _DYNAMIC entry could be abused - to provide hints on range of aslr, or to allow dynamic linking from within the static binary from an abused stack or similar? On 31 May 2017 at 05:14, Christos Zoulas wrote: > In article <20170531085212.gb22...@britannica.bec.de>, > Joerg Sonn

Re: KASSERT and clang static analyzer

2017-04-18 Thread Alistair Crooks
or fix clang not to be stupid On 18 April 2017 at 09:17, Taylor R Campbell wrote: >> Date: Tue, 18 Apr 2017 19:38:06 +0800 (+08) >> From: Paul Goyette >> >> I looked at the picture, and it seems to me it is doing the same thing >> that it does for any other "if ()" condition. Look just a little

Re: wc(1) Output and POSIX

2016-12-30 Thread Alistair Crooks
FYI, I use a very low-tech awk script to create tabular output into json. I've yet to find a use-case for converting into html, but I'm sure it exists and is just as easily implemented in a few lines of awk. https://agc.ac/images/json-20161228.png For those of you who can't see the image, script

Re: wc(1) Output and POSIX

2016-12-28 Thread Alistair Crooks
While I don't doubt that different output formats are useful - see the Juniper fluff at http://juniper.github.io/libxo/libxo-manual.html -- the mechanics involved in getting there are not obvious, convoluted, intrusive and difficult to get right -- see the manual page at https://www.freebsd.org/cgi

Re: TRE regex

2016-06-08 Thread Alistair Crooks
On 6 June 2016 at 18:35, James K. Lowden wrote: > Back in 2009, Matthias-Christian Ott ported Ville Laurikari's regex > library, apparently with the intention of replacing the one in base, > originally from Henry Spencer. > > http://mail-index.netbsd.org/tech-userlevel/2009/08/03/msg002477

Patch to calendar(1) to provide an option to print version and exit

2016-06-01 Thread Alistair Crooks
I've put up a patch for review at: http://www.netbsd.org/~agc/calendar-20160601.diff It adds the -v argument to calendar(1) to print the version number and exit: % calendar -v calendar-20160601 % All feedback gratefully received. Thanks, Alistair

Re: Minor updates to sort ?

2016-05-29 Thread Alistair Crooks
Living on the edge and top posting aggresively, these changes would be good to have. Thanks, Alistair On Saturday, May 28, 2016, Robert Elz wrote: > Inspired by Paul Goyette's question (on netbsd-users) I took a look at > sort, > and I'd like to commit the following updates if no-one objects. >

Re: [patch] ftp(1) does not understand "Location"-headers with a relative reference

2016-05-27 Thread Alistair Crooks
Thanks for the patch. As far as comments go, there's a general lack of checking return codes(*strchr, *strrchr, strcspn) to make sure they don't fail (both now, when you *absolutely know 100% guaranteed* that it won't fail, and in 10 years time when it does fail due to someone's maintenance, or ca

patch for bozohttpd to print version and exit...

2016-05-17 Thread Alistair Crooks
...is at https://www.netbsd.org/~agc/bozo-20160517.diff Does anyone have any objections? Thanks, Alistair