Re: CVS commit: src/usr.bin

2018-07-24 Thread Christos Zoulas
In article <20180724185738.ga15...@britannica.bec.de>,
Joerg Sonnenberger   wrote:
>
>Why do we need another base64 encoder/decoder?

So I've been looking into how to get rid of it and re-use uuencode
uudecode for it and it is proving difficult. I am trying to provide
a command line compatible utility with the "base64" command from
MacOS/X and Linux:

- They use a single command to encode and decode (uuencode and decode
  are two separate programs). I would have to either write a shell
  script front end (and modify them not to output a header) to be
  able to emulate that.
- uudecode is using b64_pton() which does not handle arbitrary whitespace.

I could merge all three into one, but this is more annoying and risky
to break things due to the amount of legacy behavior in the uu commands.

Any better options?

christos



Re: CVS commit: src/etc

2018-07-24 Thread Thomas Klausner
On Tue, Jul 24, 2018 at 07:10:38PM +0200, Maxime Villard wrote:
> > Is this something that we should let postinstall fix?
> > Or what is the upgrade strategy for the users not reading source-changes?
>
> Now that I stumbled across it while browsing mail-index.netbsd.org:
> doesn't postinstall use MAKEDEV.tmpl already?

AFAICT, the script itself (/dev/MAKEDEV) is updated, but created nodes
are not.
 Thomas


Re: CVS commit: src/usr.bin

2018-07-24 Thread Joerg Sonnenberger
On Tue, Jul 24, 2018 at 11:26:17AM -0400, Christos Zoulas wrote:
> Module Name:  src
> Committed By: christos
> Date: Tue Jul 24 15:26:16 UTC 2018
> 
> Modified Files:
>   src/usr.bin: Makefile
> Added Files:
>   src/usr.bin/base64: Makefile base64.1 base64.c
> 
> Log Message:
> Tiny base64 encoder/decoder command patterned after the linux and the macosx
> ones with the same name,.

Why do we need another base64 encoder/decoder?

Joerg


Re: CVS commit: src/etc

2018-07-24 Thread Maxime Villard

Is this something that we should let postinstall fix?
Or what is the upgrade strategy for the users not reading source-changes?


If you send your answer to me on a mailing list I'm not subscribed to,
without even CC'ing me, I'm just never going to see your mail.

Now that I stumbled across it while browsing mail-index.netbsd.org:
doesn't postinstall use MAKEDEV.tmpl already?


Le 21/07/2018 à 09:46, Maxime Villard a écrit :

Module Name:src
Committed By:   maxv
Date:   Sat Jul 21 07:46:56 UTC 2018

Modified Files:
src/etc: MAKEDEV.tmpl

Log Message:
Create /dev/ksyms as "440 $g_kmem". This prevents unprivileged users from
reading the kernel symbols. Discussed in January 2018 on tech-kern@,
reported by maya@, tested by tih@.


To generate a diff of this commit:
cvs rdiff -u -r1.190 -r1.191 src/etc/MAKEDEV.tmpl

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.