FreeBSD Bugzilla – Attachment 151204 Details for
Bug 196432
Allow @sample keyword reference a symlink
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
copy symlink itself instead of destination, v2
sample_symlink.diff (text/plain), 936 bytes, created by
Jan Beich
on 2015-01-02 10:41:35 UTC
(
hide
)
Description:
copy symlink itself instead of destination, v2
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2015-01-02 10:41:35 UTC
Size:
936 bytes
patch
obsolete
>Index: Keywords/sample.ucl >=================================================================== >--- Keywords/sample.ucl (revision 375669) >+++ Keywords/sample.ucl (working copy) >@@ -21,9 +21,9 @@ post-install: <<EOD > *) sample_file="%D/%@" ;; > esac > target_file="${sample_file%.sample}" >- if ! [ -f "${target_file}" ]; then >- /bin/cp -p "${sample_file}" "${target_file}" && \ >- /bin/chmod u+w "${target_file}" >+ if ! [ -e "${target_file}" ]; then >+ /bin/cp -Rp "${sample_file}" "${target_file}" && \ >+ /bin/chmod -h u+w "${target_file}" > fi > EOD > pre-deinstall: <<EOD >@@ -32,7 +32,7 @@ pre-deinstall: <<EOD > *) sample_file="%D/%@" ;; > esac > target_file="${sample_file%.sample}" >- if cmp -s "${target_file}" "${sample_file}"; then >+ if cmp -hs "${target_file}" "${sample_file}"; then > rm -f "${target_file}" > else > echo "You may need to manually remove ${target_file} if it's no longer needed."
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 196432
:
151203
| 151204