Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 May 2019 07:59:16 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r348151 - head/usr.sbin/etcupdate
Message-ID:  <201905230759.x4N7xGc9031376@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu
Date: Thu May 23 07:59:16 2019
New Revision: 348151
URL: https://svnweb.freebsd.org/changeset/base/348151

Log:
  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

Modified:
  head/usr.sbin/etcupdate/etcupdate.sh

Modified: head/usr.sbin/etcupdate/etcupdate.sh
==============================================================================
--- head/usr.sbin/etcupdate/etcupdate.sh	Thu May 23 06:53:59 2019	(r348150)
+++ head/usr.sbin/etcupdate/etcupdate.sh	Thu May 23 07:59:16 2019	(r348151)
@@ -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 &&



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