Hi Chris,

2012/11/18 Chris Rees <cr...@freebsd.org>:
> Modified: head/etc/rc.initdiskless
> ==============================================================================
> --- head/etc/rc.initdiskless    Sun Nov 18 14:05:28 2012        (r243227)
> +++ head/etc/rc.initdiskless    Sun Nov 18 14:21:05 2012        (r243228)
> @@ -354,7 +354,7 @@ for i in ${templates} ; do
>         subdir=${j##*/}
>         if [ -d $j -a ! -f $j.cpio.gz  ]; then
>             create_md $subdir
> -           cp -Rp $j/ /$subdir
> +           (cd $j && pax -rw . /$subdir)
>         fi
>      done
>      for j in /conf/$i/*.cpio.gz ; do

Are you sure that this bug wasn't already fixed? The original version
of the code in the bug report used the following line:

-           cp -Rp $j/* /$subdir

The old version of the code you changed didn't have this asterisk,
meaning dotfiles would already be copied. Still, you could argue that
your version is nicer, as our behaviour of cp with the trailing slash
contradicts POSIX.

Thanks,
-- 
Ed Schouten <e...@80386.nl>
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to