Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 May 2023 04:18:24 +0100
From:      Jamie Landeg-Jones <jamie@catflap.org>
To:        freebsd-current@freebsd.org
Subject:   MOTD is not created correctly (since 2022/02/18)
Message-ID:  <202305230318.34N3IOaX056503@donotpassgo.dyslexicfish.net>

next in thread | raw e-mail | index | archive | help
I've just finally updated to 13-stable, and can't be the first to notice this?!

/etc/rc.d/motd contains the line:

uname -v | sed -e 's,^\([^#]*\) #\(.* [1-2][0-9][0-9][0-9]\).*/\([^\]*\) $,\1 (\3) #\2,'

Note the space before the "$" - needed because the uname -v output used
to have a trailing space. This was fixed and comitted on 2022/02/18:

https://cgit.freebsd.org/src/commit/usr.bin/uname/uname.c?id=7e05fa3b449007adaa6e588ebb3b8d76f30b355c

Since then, the sed doesn't match, so the uname(1) output is unchanged.

There's no point altering the sed to work with both posibilities, so can
someone commit the fix of removing the ' ' before the '$' in /etc/rc.d/motd ?

Cheers
Jamie



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305230318.34N3IOaX056503>