Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108599999
D41893.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
687 B
Referenced Files
None
Subscribers
None
D41893.diff
View Options
diff --git a/usr.sbin/freebsd-update/freebsd-update.sh b/usr.sbin/freebsd-update/freebsd-update.sh
--- a/usr.sbin/freebsd-update/freebsd-update.sh
+++ b/usr.sbin/freebsd-update/freebsd-update.sh
@@ -2903,7 +2903,13 @@
while read FPATH TYPE OWNER GROUP PERM FLAGS HASH LINK; do
case ${TYPE} in
d)
- # Create a directory
+ # Create a directory. A file may change to a directory
+ # on upgrade (PR273661). If that happens, remove the
+ # file first.
+ if [ -e "${BASEDIR}/${FPATH}" ] && \
+ ! [ -d "${BASEDIR}/${FPATH}" ]; then
+ rm -f -- "${BASEDIR}/${FPATH}"
+ fi
install -d -o ${OWNER} -g ${GROUP} \
-m ${PERM} ${BASEDIR}/${FPATH}
;;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 7:19 PM (7 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16206703
Default Alt Text
D41893.diff (687 B)
Attached To
Mode
D41893: freebsd-update: handle file->directory change on upgrade
Attached
Detach File
Event Timeline
Log In to Comment