summaryrefslogtreecommitdiffstats
path: root/etc/periodic/security/550.ipfwlimit
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2003-06-30 22:06:26 +0000
committermtm <mtm@FreeBSD.org>2003-06-30 22:06:26 +0000
commit016c135dbaefb273571e739224af99fe347262e2 (patch)
treed7583226bd9d40bd09edf2f59dc7661bbf69729a /etc/periodic/security/550.ipfwlimit
parentb8db4ad194c9901892b9e4a5b1623013d596e762 (diff)
downloadFreeBSD-src-016c135dbaefb273571e739224af99fe347262e2.zip
FreeBSD-src-016c135dbaefb273571e739224af99fe347262e2.tar.gz
Have mktemp(1) construct the temporary file name for us instead
of providing a template manually. Submitted by: Lars Eggert <larse@isi.edu>
Diffstat (limited to 'etc/periodic/security/550.ipfwlimit')
-rwxr-xr-xetc/periodic/security/550.ipfwlimit2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/periodic/security/550.ipfwlimit b/etc/periodic/security/550.ipfwlimit
index d033645..65e8bd2 100755
--- a/etc/periodic/security/550.ipfwlimit
+++ b/etc/periodic/security/550.ipfwlimit
@@ -42,7 +42,7 @@ rc=0
case "$daily_status_security_ipfwlimit_enable" in
[Yy][Ee][Ss])
- TMP=`mktemp ${TMPDIR:-/tmp}/security.XXXXXXXXXX`
+ TMP=`mktemp -t security`
IPFW_LOG_LIMIT=`sysctl -n net.inet.ip.fw.verbose_limit 2> /dev/null`
if [ $? -eq 0 ] && [ "${IPFW_LOG_LIMIT}" -ne 0 ]; then
ipfw -a l | grep " log " | \
OpenPOWER on IntegriCloud