FreeBSD Bugzilla – Attachment 139821 Details for
Bug 186152
[patch] freebsd-update(8): freebsd-update -b: correctly handle symlinks with absolute paths
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 802 bytes, created by
David Shane Holden
on 2014-01-27 01:50:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
David Shane Holden
Created:
2014-01-27 01:50:00 UTC
Size:
802 bytes
patch
obsolete
>--- freebsd-update.orig 2014-01-27 01:03:59.000000000 +0000 >+++ freebsd-update 2014-01-27 01:18:01.000000000 +0000 >@@ -1437,11 +1437,21 @@ > # sorted by device and inode number. > while read F; do > # If the symlink/file/directory does not exist, record this. >- if ! [ -e ${BASEDIR}/${F} ]; then >+ # Symlinks with absolute paths need to be checked relative >+ # to their base directories. >+ FF=${F} >+ if [ -L ${BASEDIR}/${F} ]; then >+ LINK=`readlink ${BASEDIR}/${F}` >+ echo "${LINK}" | grep -qe "^/" >+ if [ $? -eq 0 ]; then >+ FF=${LINK} >+ fi >+ fi >+ if ! [ -e ${BASEDIR}/${FF} ]; then > echo "${F}|-||||||" > continue > fi >- if ! [ -r ${BASEDIR}/${F} ]; then >+ if ! [ -r ${BASEDIR}/${FF} ]; then > echo "Cannot read file: ${BASEDIR}/${F}" \ > >/dev/stderr > touch .err
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 186152
:
139821
|
193855