Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Nov 2023 12:58:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 275449] certctl: changed link flags lead to inconsistencies when installing into non-standard DESTDIR
Message-ID:  <bug-275449-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 275449
           Summary: certctl: changed link flags lead to inconsistencies
                    when installing into non-standard DESTDIR
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: d8zNeCFG@aon.at

Scenario:
- Virtual machine with UFS / and /usr (separate)
- In it, FreeBSD main at 51e7276365bad2871257ef121cead2c19bcd7434
- Running buildworld buildkernel
- Running installkernel installworld DESTDIR=3D/usr/tmp/x (the intent is to
install to a temporary directory first to view the changes to the current
installation)

Result:
- The files in /usr/tmp/x/etc/ssl/{certs,untrusted} are hard links to the f=
iles
in /usr/tmp/x/usr/share/certs.
- However, the files in /etc/ssl/{certs,untrusted} are (and should be) symb=
olic
links to those in /usr/share/certs.
- Blindly copying what is in /usr/tmp/x to / would break the hard link,
resulting in duplicate regular files.

The root cause is that in certctl, the argument to "install" has been chang=
ed
from "-lrs" to "-lm", leading to destination-dependent results. For the sak=
e of
consistency it would be good to revert this particular change.

-- Martin

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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