FreeBSD Bugzilla – Attachment 39795 Details for
Bug 62655
[patch] Preserve and reinstall the old database file if fetching the new one fails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fetchaudit.sh.diff
fetchaudit.sh.diff (text/plain), 1.10 KB, created by
Ion-Mihai Tetcu
on 2004-02-10 18:20:14 UTC
(
hide
)
Description:
fetchaudit.sh.diff
Filename:
MIME Type:
Creator:
Ion-Mihai Tetcu
Created:
2004-02-10 18:20:14 UTC
Size:
1.10 KB
patch
obsolete
>--- files/fetchaudit.sh.orig Tue Feb 10 19:43:31 2004 >+++ files/fetchaudit.sh Tue Feb 10 20:08:40 2004 >@@ -52,15 +52,23 @@ > echo "" > echo "Updating audit database." > cd "${portaudit_dir}" >+ cp "${portaudit_file}" "${portaudit_file}.old" \ >+ || echo "Could not back-up ${portaudit_file}" > fetch -1am ${LOCATIONS} > if [ ! $? ]; then > echo "Couldn't fetch database." >+ echo "Restoring old database file ..." >+ cp "${portaudit_file}.old" "${portaudit_file}" > rc=2 > elif [ ! -f "${portaudit_file}" ] ; then > echo "no database." >+ echo "Trying to restore the old database file ..." >+ cp "${portaudit_file}.old" "${portaudit_file}" > rc=2 > elif checksum_auditfile; then > echo "database corrupt." >+ echo "Restoring old database file ..." >+ cp "${portaudit_file}.old" "${portaudit_file}" > rc=2 > elif checkexpiry_auditfile 7; then > echo "database too old." >@@ -71,6 +79,7 @@ > fi > else > rc=0 >+ rm "${portaudit_file}.old" 2>/dev/null > fi > ;; > *)
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 62655
: 39795