Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157253594
D7817.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
517 B
Referenced Files
None
Subscribers
None
D7817.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, May 20, 6:05 PM (8 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33353202
Default Alt Text
D7817.diff (517 B)
Attached To
Mode
D7817: etcupdate: preserve the metadata of the destination file
Attached
Detach File
Event Timeline
Log In to Comment