Re: acme-client(8): preliminary support for HiCA

2023-06-09 Thread lux
On Fri, 2023-06-09 at 07:25 +0200, Florian Obser wrote: > > OK? > > p.s. I'm currently busy writing an ISC licensed bash in rust to > safely > support HiCA. So this might take a while... > The HiCA project has been shut down due to some security issues. https://github.com/acmesh-official/acme.

Re: [patch] /usr.bin/script: Fix process name hardcode for shell subprocesses

2023-03-30 Thread lux
On Thu, 2023-03-30 at 17:50 +0200, Omar Polo wrote: > > If your scripts are executable script -c ./foo (with foo being your > script) should work.  sh would exec `foo' which -hopefully- has the > correct interpreter in its shebang (i.e. csh, sh, ksh, perl, lua...) > Yes, thank you.

Re: [patch] /usr.bin/script: Fix process name hardcode for shell subprocesses

2023-03-30 Thread lux
On Thu, 2023-03-30 at 16:31 +0200, Omar Polo wrote: > > Furthermore, the man page explicitly states that script -c runs > sh(1): > > -c command > Run sh -c command, instead of an interactive shell. > [...] > > So I'd say that script(1) is working as intended.  What was exactly

[patch] /usr.bin/script: Fix process name hardcode for shell subprocesses

2023-03-29 Thread lux
Hi, the name of the shell subprocess is hardcoded in the `script' command. The test is as follows: $ echo $SHELL /bin/ksh $ script -c 'echo $0' Script started, output file is typescript sh < The correct one should

Re: [patch] usr.bin/mg/region.c: Set default shell path if SHELL is NULL

2023-03-28 Thread lux
On Tue, 2023-03-28 at 11:22 +0200, Omar Polo wrote: > On 2023/03/28 17:02:18 +0800, lux wrote: > > On Mon, 2023-03-27 at 18:58 -0600, Todd C.Miller wrote: > > > > > > > -   _exit(1); > > > > -   if (path == NUL

Re: [patch] usr.bin/mg/region.c: Set default shell path if SHELL is NULL

2023-03-28 Thread lux
On Mon, 2023-03-27 at 18:58 -0600, Todd C.Miller wrote: > > > -   _exit(1); > > -   if (path == NULL) > > _exit(1); > >   Hi, `pipeio' looks like a common function, so maby called in others code, checking the path is NULL is a safe check, to

Re: [patch] usr.bin/mg/region.c: Set default shell path if SHELL is NULL

2023-03-27 Thread lux
On Mon, 2023-03-27 at 20:06 +0200, Omar Polo wrote: Hello, thank you for your correction. > > if (dup2(s[1], STDERR_FILENO) == -1) > -   _exit(1); > -   if (path == NULL) > _exit(1); But, I think the condition that path is

[patch] usr.bin/mg/region.c: Set default shell path if SHELL is NULL

2023-03-27 Thread lux
Index: region.c=== RCS file: /cvs/src/usr.bin/mg/region.c,v retrieving revision 1.40 diff -u -p -r1.40 region.c --- region.c  8 Mar 2023 04:43:11 - 1.40 +++ region.c  27 Mar 2023 16:38:41 - @@ -21,6 +21,7 @@  #incl

[patch] usr.bin/mg/region.c: Set default shell path if SHELL is NULL

2023-03-27 Thread lux
Index: region.c === RCS file: /cvs/src/usr.bin/mg/region.c,v retrieving revision 1.40 diff -u -p -r1.40 region.c --- region.c8 Mar 2023 04:43:11 - 1.40 +++ region.c27 Mar 2023 16:48:08 - @@ -21,6 +21,7 @@ #includ

[patch] usr.bin/mg/tags.c: Add free()

2023-03-22 Thread lux
Index: tags.c === RCS file: /cvs/src/usr.bin/mg/tags.c,v retrieving revision 1.19 diff -u -p -r1.19 tags.c --- tags.c 8 Mar 2023 04:43:11 - 1.19 +++ tags.c 22 Mar 2023 16:38:48 - @@ -370,10 +370,11 @@ int addct