Page MenuHomeFreeBSD

D7817.diff
No OneTemporary

D7817.diff

Index: head/usr.sbin/etcupdate/etcupdate.sh
===================================================================
--- head/usr.sbin/etcupdate/etcupdate.sh
+++ head/usr.sbin/etcupdate/etcupdate.sh
@@ -824,7 +824,9 @@
if [ -z "$dryrun" ]; then
temp=$(mktemp -t etcupdate)
diff3 -E -m ${DESTDIR}$1 ${OLDTREE}$1 ${NEWTREE}$1 > ${temp}
- mv -f ${temp} ${DESTDIR}$1
+ # Use "cat >" to preserve metadata.
+ cat ${temp} > ${DESTDIR}$1
+ rm -f ${temp}
fi
post_install_file $1
echo " M $1"

File Metadata

Mime Type
text/plain
Expires
Mon, Aug 24, 1:15 PM (15 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37185129
Default Alt Text
D7817.diff (517 B)

Event Timeline