Avoid incorrect UFS1 timestamp corrections when system clock fails at boot.
Git 1111a44301da - main - Defer the January 19, 2038 date limit in
UFS1 file systems to February 7, 2106 - did so by changing the UFS1
32-bit signed timestamps to unsigned. With this change, time stamps
from before January 1, 1970 went from being negative numbers to
large positive numbers implying times in the future. When such a
time stamp is encountered when an inode is read into memory or when
it is encountered by fsck, its timestamp is replaced with the
kernel's current time.
Andre Albsmeier reported that he had a machine reboot after a power
failure and the battery that maintained its real-time clock had
died. The result was that the system booted with the time set to
five years earlier (absent a real-time clock value, the boot ROM
used the time that the boot ROM had last been updated). The net
result was that fsck reset the time stamps of all files newer than
five years old to the five year old time.
[29 lines not shown]
lib/msun: Replaced pattern to force exception in _num families
Replaced the old pattern of using a ternary to force addition
(raising exceptions for sNaN's) with a new one using a volatile
variable. The _mag_num family was already implemented with this pattern
PR: 294719
Reviewed by: fuz, kargl
MFC after: 1 month
(cherry picked from commit 7c20e15592a07ea457cacb0d6706948815c8420e)
books/fdp-primer: "patch" word is NOT needed
Update instructions for submitting Problem Reports.
Improve description of the steps to submit a diff.
The [patch] convention for the summary field is not needed anymore.
Update the quick start FreeBSD section in the overview chapter of
the fdp-primer to reflect that.
PR: 295715
UIDs/GIDs: remove duplicated entries
Fix duplicated autopulse and ldap entries introduced while
adding the bunkerweb user and group.
Reported by: osa
Sponsored by: Netzkommune GmbH
sysutils/bttf: New port: Command-line utility for datetime processing
bttf is a command-line utility for working with dates and times. It
exposes much of the functionality of the Jiff datetime library on the
command line, providing a more intuitive way to format datetimes or do
arithmetic than traditional tools like date(1).
linuxulator: Return EINVAL for invalid inotify flags
We implement all of the currently-defined Linux inotify mask bits and
flags, with the same values as Linux. Return EINVAL for unknown bits,
as Linux does.
This also moves the translation inline into linux_inotify_add_watch.
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57387