changingowner: Add --from lfs for chown root:root commands
commit6e179a90255308dc64eec386fb3ae49ab16acca4
authorXi Ruoyao <xry111@xry111.site>
Sat, 27 Apr 2024 04:22:28 +0000 (27 12:22 +0800)
committerXi Ruoyao <xry111@xry111.site>
Sat, 27 Apr 2024 04:30:10 +0000 (27 12:30 +0800)
treea3fa9f239936dfde922c90b8d4351cc4c20808f1
parent7db37658c277cf4438f80d594d3e9df4ee32b3de
changingowner: Add --from lfs for chown root:root commands

So if the user has not set $LFS properly, chown will do nothing instead
of wreak havoc in the host distro.

--from <user> has been available for Coreutils chown since 2000 so we
don't need to raise the host system requirement.
chapter07/changingowner.xml