Date: Tue, 05 Apr 2016 18:55:44 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 208556] openvas support scripts fail with stat syntax errors Message-ID: <bug-208556-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208556 Bug ID: 208556 Summary: openvas support scripts fail with stat syntax errors Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: kwinkelman@mcclatchy.com greenbone-certdata-sync, greenbone-scapdata-sync, openvas-certdata-sync, openvas-scapdata-sync scripts included with the openvas-manager-6.0.8_1 pac= kage do not complete successfully, and print the following error: stat: illegal option -- c usage: stat [-FLnq] [-f format | -l | -r | -s | -x] [-t timefmt] [file ...] It appears that the scripts are expecting gnu stat. There are two formats of stat in the scripts: stat -c "%Y" (Time of last modification as seconds since Epoch), and stat -c "%s" (Total size, in byte= s). The bsd forms of these formats appear to be: stat -f "%m" and stat -f "%z", respectively. Steps to reproduce: 1. Run greenbone-certdata-sync (or any of the above scripts) 2. Script fails with above error --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208556-13>