Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Feb 2021 01:42:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 234014] chown: ntpd: illegal user name -- after freebsd-update to 12.0
Message-ID:  <bug-234014-227-AX2jtNoC7M@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-234014-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-234014-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234014

--- Comment #6 from commit-hook@FreeBSD.org ---
A commit in branch releng/12.2 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3Ddf378912ebc2fe2603fcbcedf72af9d7b=
0e94db7

commit df378912ebc2fe2603fcbcedf72af9d7b0e94db7
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2020-12-17 03:42:54 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2021-02-24 01:42:01 +0000

    MFC freebsd-update: unconditionally regenerate passwd/login.conf files

    The existing logic is nice in theory, but in practice freebsd-update wi=
ll
    not preserve the timestamps on these files. When doing a major upgrade,
e.g.
    from 12.1-RELEASE -> 12.2-RELEASE, pwd.mkdb et al. appear in the INDEX =
and
    we clobber the timestamp several times in the process of packaging up t=
he
    existing system into /var/db/freebsd-update/files and extracting for
    comparisons. This leads to these files not getting regenerated when the=
y're
    most likely to be needed.

    Measures could be taken to preserve timestamps, but it's unclear whether
    the complexity and overhead of doing so is really outweighed by the
marginal
    benefit.

    I observed this issue when pkg subsequently failed to install a package
that
    wanted to add a user, claiming that the user was removed in the process.
    bapt@ pointed to this pre-existing bug with freebsd-update as the cause.

    PR:             234014, 232921
    Approved by:    so
    Security:       FreeBSD-EN-21:08.freebsd-update

    (cherry picked from commit ebebc41e4cfe44b8e8fd881badf2fa2c4be65aa4)
    (cherry picked from commit 5cf1ba21eebaf89cf4d8639a18345dc49116d1d5)

 usr.sbin/freebsd-update/freebsd-update.sh | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234014-227-AX2jtNoC7M>