Page MenuHomeFreeBSD

motd: Adapt with recent changes.
ClosedPublic

Authored by delphij on May 23 2023, 4:36 AM.
Tags
None
Referenced Files
F104300725: D40225.id.diff
Fri, Dec 6, 1:54 AM
Unknown Object (File)
Sat, Nov 23, 9:31 PM
Unknown Object (File)
Fri, Nov 22, 12:28 AM
Unknown Object (File)
Mon, Nov 18, 1:41 PM
Unknown Object (File)
Tue, Nov 12, 1:00 PM
Unknown Object (File)
Sun, Nov 10, 5:09 AM
Unknown Object (File)
Oct 27 2024, 8:32 AM
Unknown Object (File)
Sep 30 2024, 6:23 PM

Details

Summary

/etc/rc.d/motd: Update to accommodate changes in uname(1) and newvers.sh

The recent changes to the uname(1) command removed trailing spaces for
better POSIX conformance, but it broke the regular expression used by
the motd script which expected it. This commit addresses this by removing
the requirement, as it is no longer present.

Additionally, a recent change in newvers.sh introduced a new format for
uname -v, which omited the build number and build dates to improve
reproducible build support. This commit adds support for this new format.

Reported-by: Jamie Landeg-Jones <jamie@catflap.org>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 51627
Build 48518: arc lint + arc unit

Event Timeline

delphij created this revision.

Nice.. there was a freebsd-version phabricator or pull request that can use these REs instead of the badly broken ones there now.

This revision is now accepted and ready to land.May 23 2023, 5:00 AM