From 6c311ec76ff60f275a336354a6661193390753c2 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Tue, 27 May 2025 11:41:13 +0800 Subject: [PATCH] changingowner: Exclude symlinks from chown Make this consistent with addinguser. Applying chown to a symlink actually affects its target, and here the targets are in $LFS/usr and already covered. --- chapter07/changingowner.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter07/changingowner.xml b/chapter07/changingowner.xml index 178c7836e..f29932694 100644 --- a/chapter07/changingowner.xml +++ b/chapter07/changingowner.xml @@ -33,7 +33,7 @@ user root by running the following command: -chown --from &lfs-username; -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools} +chown --from &lfs-username; -R root:root $LFS/{usr,var,etc,tools} case $(uname -m) in x86_64) chown --from &lfs-username; -R root:root $LFS/lib64 ;; esac