opnsense-ports/security/openvas-manager/files/patch-tools+openvas-certdata-sync.in
Franco Fichtner b246316c5f */*: sync with upstream
Taken from: FreeBSD
2016-04-07 03:50:29 +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