From 8eef17d8a2e9dcfd839de13e90da036f44b3eff9 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 16 Aug 2007 21:49:34 +0000 Subject: Make etc-update copy owner and group bits when it merges config files. svn path=/main/trunk/; revision=7636 --- bin/etc-update | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/etc-update b/bin/etc-update index 0daf04d40..27d7bca35 100755 --- a/bin/etc-update +++ b/bin/etc-update @@ -388,8 +388,10 @@ Please select from the menu above (-1 to exit, losing this merge): " case ${my_input} in 1) echo "Replacing ${ofile} with ${mfile}" if [[ ${USERLAND:-GNU} == GNU ]]; then + chown --reference="${ofile}" "${mfile}" chmod --reference="${ofile}" "${mfile}" else + chown "$(stat -f %Su:%Sg "${ofile}")" "${mfile}" chmod $(stat -f %Mp%Lp "${ofile}") "${mfile}" fi mv ${mv_opts} ${mfile} ${ofile} -- cgit v1.2.3-1-g7c22