opnsense-ports/security/openvas8-manager/files/patch-tools+openvas-certdata-sync.in
Franco Fichtner 936238cb86 */*: sync with upstream
Taken from: HardenedBSD
2017-08-04 06:37:48 +02:00

20 lines
808 B
Text

--- tools/openvas-certdata-sync.in.orig 2015-08-03 05:52:10 UTC
+++ tools/openvas-certdata-sync.in
@@ -575,7 +575,7 @@ update_sec_db () {
then
for certfile in `ls $CERT_DIR/CB-K*.xml`
do
- filedate=`stat -c "%Y" $certfile | cut -d " " -f 1 | tr -d "-"`
+ filedate=`stat -f "%m" $certfile | cut -d " " -f 1 | tr -d "-"`
filedate=$(( $filedate - ( $filedate % 60 ) ))
if [ $filedate -gt $DB_LASTUPDATE ]
then
@@ -610,7 +610,7 @@ update_sec_db () {
then
for certfile in `ls $CERT_DIR/dfn-cert-*.xml`
do
- filedate=`stat -c "%Y" $certfile | cut -d " " -f 1 | tr -d "-"`
+ filedate=`stat -f "%m" $certfile | cut -d " " -f 1 | tr -d "-"`
filedate=$(( $filedate - ( $filedate % 60 ) ))
if [ $filedate -gt $DB_LASTUPDATE ]
then