Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 933518 Details for
Bug 1100365
SAR log file corruption in odd Feb 28th edge-case
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
sysstat-10.1.5-overwrite-sa.patch
sysstat-10.1.5-overwrite-sa.patch (text/plain), 1.17 KB, created by
Peter Schiffer
on 2014-09-01 20:06:46 UTC
(
hide
)
Description:
sysstat-10.1.5-overwrite-sa.patch
Filename:
MIME Type:
Creator:
Peter Schiffer
Created:
2014-09-01 20:06:46 UTC
Size:
1.17 KB
patch
obsolete
>diff -ur sysstat-10.1.5.orig/sa1.in sysstat-10.1.5/sa1.in >--- sysstat-10.1.5.orig/sa1.in 2012-05-13 15:00:56.000000000 +0200 >+++ sysstat-10.1.5/sa1.in 2014-09-01 21:56:13.197869126 +0200 >@@ -10,15 +10,15 @@ > # Used only if ${SYSCONFIG_DIR}/sysstat doesn't exist! > HISTORY=0 > SADC_OPTIONS="" >- >+DDIR=@SA_DIR@ >+DATE=`date +%d` >+CURRENTFILE=sa${DATE} >+CURRENTDIR=`date +%Y%m` > SYSCONFIG_DIR=@SYSCONFIG_DIR@ >+umask 0022 > [ -r ${SYSCONFIG_DIR}/sysstat ] && . ${SYSCONFIG_DIR}/sysstat > if [ ${HISTORY} -gt 28 ] > then >- CURRENTDIR=`date +%Y%m` >- DATE=`date +%d` >- CURRENTFILE=sa${DATE} >- DDIR=@SA_DIR@ > cd ${DDIR} || exit 1 > [ -d ${CURRENTDIR} ] || mkdir -p ${CURRENTDIR} > # If ${CURRENTFILE} exists and is a regular file, then make sure >@@ -33,8 +33,11 @@ > # the (new) current file > rm -f ${CURRENTFILE} > ln -s ${CURRENTDIR}/${CURRENTFILE} ${CURRENTFILE} >+else >+ # If ${CURRENTFILE} exists, is a regular file and is from a previous >+ # month then delete it so that it is recreated by sadc afresh >+ [ -f ${CURRENTFILE} ] && [ "`date +%Y%m -r ${CURRENTFILE}`" -lt "${CURRENTDIR}" ] && rm -f ${CURRENTFILE} > fi >-umask 0022 > ENDIR=@SA_LIB_DIR@ > cd ${ENDIR} > [ "$1" = "--boot" ] && shift && BOOT=y || BOOT=n
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 1100365
: 933518