Page MenuHomeFreeBSD

etcupdate: Fix -N support for build command
ClosedPublic

Authored by jrtc27 on Sep 30 2022, 7:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 22, 9:29 AM
Unknown Object (File)
Sun, Apr 21, 7:38 PM
Unknown Object (File)
Apr 5 2024, 10:51 PM
Unknown Object (File)
Mar 22 2024, 9:40 PM
Unknown Object (File)
Mar 22 2024, 9:24 PM
Unknown Object (File)
Mar 8 2024, 8:04 AM
Unknown Object (File)
Mar 8 2024, 6:15 AM
Unknown Object (File)
Jan 5 2024, 2:32 AM
Subscribers

Details

Summary

Whilst febca0e64361 added -N for both build and extract, it only fully
worked for extract; build would perform the actual tree build with
-DNO_ROOT and construct the intended METALOG, but the subsequent tarball
creation did not take this into account and just tarred up the the
directory as-is rather than using the METALOG. This resulted in the
permissions and ownership not being correct, as well as there being a
stray METALOG file in the tarball's root.

Reported by: avg
Tested by: avg
Fixes: febca0e64361 ("etcupdate: Add a -N flag to perform a NO_ROOT build")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable