On 2020/06/11 12:23, Stuart Henderson wrote:
> On 2020/06/11 12:07, Stuart Henderson wrote:
> > On 2020/06/11 12:05, Stuart Henderson wrote:
> > > I am going to start a ports build with the January 5 version, i.e. the
> > > following backout:
> >
> > This backout fixes neofetch (the problem found by cwen) as well.
> >
>
> The upstream version from https://github.com/onetrueawk/awk does not
> show the problem with neofetch. It doesn't like the awk script from
> libgpg-error so I haven't confirmed whether it fixes libgpg-error too.
>
This "fixes" it ...
I think the most sensible approach for now is the backout diff
in my previous mail. Any OKs for that?
Index: lib.c
===================================================================
RCS file: /cvs/src/usr.bin/awk/lib.c,v
retrieving revision 1.35
diff -u -p -r1.35 lib.c
--- lib.c 10 Jun 2020 21:06:09 -0000 1.35
+++ lib.c 11 Jun 2020 11:31:38 -0000
@@ -124,7 +124,7 @@ void savefs(void)
{
size_t len;
if ((len = strlen(getsval(fsloc))) < len_inputFS) {
- strlcpy(inputFS, *FS, sizeof(inputFS)); /* for subsequent field
splitting */
+ strcpy(inputFS, *FS); /* for subsequent field splitting */
return;
}