opnsense-src/scripts/build/check--help
Cy Schubert b5e14a1344 Vendor import ntp 4.2.8.
Reviewed by:	roberto
Security:	VUXML: 4033d826-87dd-11e4-9079-3c970e169bc2
Security:	http://www.kb.cert.org/vuls/id/852879
Security:	CVE-2014-9293
Security	CVE-2014-9294
Security	CVE-2014-9295
Security	CVE-2014-9296
2014-12-20 22:52:39 +00:00

22 lines
384 B
Bash
Executable file

#! /bin/sh
# Look at the file specified in $1 to see if it contains 'no --help'.
# If it does:
# - Squawk
# - rename the file to ($1)-
# - exit with a non-zero status.
# otherwise:
# - exit with a 0 status.
if test ! -f $1
then
echo "$0: $1 is not a regular file!" 2>&3
exit 1
fi
if grep -q 'no --help' $1
then
echo "$0: $1 contains 'no --help'!" 2>&3
mv ${1} ${1}-
exit 1
fi