View | Details | Raw Unified | Return to bug 230589
Collapse All | Expand All

(-)/etc/periodic/security/security.functions 2018-08-13 09:22:53.467299000 +0200 (-2 / +10 lines)
Lines 65-70 Link Here
65
    cat > ${tmpf}
65
    cat > ${tmpf}
66
  fi
66
  fi
67
  tmpo=`mktemp -t security`
68
67
  if [ ! -f ${LOG}/${label}.today ]; then
69
  if [ ! -f ${LOG}/${label}.today ]; then
68
    rc=1
70
    rc=1
69
    echo ""
71
    echo ""
Lines 72-87 Link Here
72
    cp ${tmpf} ${LOG}/${label}.today || rc=3
74
    cp ${tmpf} ${LOG}/${label}.today || rc=3
73
  fi
75
  fi
74
  if ! cmp -s ${LOG}/${label}.today ${tmpf} >/dev/null; then
76
  diff ${security_status_diff_flags} ${LOG}/${label}.today \
77
    ${tmpf} | eval "${filter}" > ${tmpo}
78
79
  if [ -s ${tmpo} ]; then
75
    [ $rc -lt 1 ] && rc=1
80
    [ $rc -lt 1 ] && rc=1
76
    echo ""
81
    echo ""
77
    echo "${msg}"
82
    echo "${msg}"
78
    diff ${security_status_diff_flags} ${LOG}/${label}.today \
83
    diff ${security_status_diff_flags} ${LOG}/${label}.today \
79
       ${tmpf} | eval "${filter}"
84
       ${tmpf} | eval "${filter}"
85
  fi
86
87
  if ! cmp -s ${LOG}/${label}.today ${tmpf} >/dev/null; then
80
    mv ${LOG}/${label}.today ${LOG}/${label}.yesterday || rc=3
88
    mv ${LOG}/${label}.today ${LOG}/${label}.yesterday || rc=3
81
    mv ${tmpf} ${LOG}/${label}.today || rc=3
89
    mv ${tmpf} ${LOG}/${label}.today || rc=3
82
  fi
90
  fi
83
  rm -f ${tmpf}
91
  rm -f ${tmpf} ${tmpo}
84
  exit ${rc}
92
  exit ${rc}
85
}
93
}

Return to bug 230589