etcupdate: Fix -p after the move of the passwd related files

Since PREWORLD_FILES only contain files that needs to be copied into /etc
copy directly those files there.

Reported by:	many
This commit is contained in:
Emmanuel Vadot 2019-05-23 07:59:16 +00:00
parent 39fb10372c
commit 6f4c12f301
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348151

View File

@ -196,9 +196,9 @@ build_tree()
# Build a limited tree that only contains files that are
# crucial to installworld.
for file in $PREWORLD_FILES; do
dir=`dirname /$file`
mkdir -p $1/$dir >&3 2>&1 || return 1
cp -p $SRCDIR/$file $1/$file || return 1
name=$(basename $file)
mkdir -p $1/etc >&3 2>&1 || return 1
cp -p $SRCDIR/$file etc/$name || return 1
done
elif ! [ -n "$nobuild" ]; then
(cd $SRCDIR; $make DESTDIR=$destdir distrib-dirs &&