Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1010645: acct: deprecated command used 'tempfile'

30 views
Skip to first unread message

Osman Orcun Serce

unread,
May 5, 2022, 6:50:03 PM5/5/22
to
Package: acct
Version: 6.6.4-4
Severity: normal
Tags: patch
X-Debbugs-Cc: o...@tutanota.com

Dear Maintainer,

Deprecated command 'tempfile' is used in acct.cron.monthly. Replacing it with 'mktemp' stops the warning given:
"WARNING: tempfile is deprecated; consider using mktemp instead."

-- System Information:
Debian Release: 11.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.37-gnu (SMP w/2 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages acct depends on:
ii init-system-helpers 1.60
ii libc6 2.31-13+deb11u3
ii lsb-base 11.1.0

acct recommends no packages.

acct suggests no packages.

-- Configuration Files:
/etc/cron.monthly/acct changed:
test -x /usr/sbin/accton || exit 0
echo "####################################################################" > /var/log/wtmp.report
echo "################# LOGIN ACCOUNTING MONTHLY REPORT ##################" >> /var/log/wtmp.report
echo "####################################################################" >> /var/log/wtmp.report
echo >> /var/log/wtmp.report
echo "Login accounting for the month ended `date`:" >> /var/log/wtmp.report
echo >> /var/log/wtmp.report
if test -f /var/log/wtmp.1 || test -f /var/log/wtmp.1.gz; then
if [ -f /var/log/wtmp.1 ]
then
WTMP="/var/log/wtmp.1"
elif [ -f /var/log/wtmp.1.gz ]
then
WTMP_WAS_GZIPPED="1"
WTMP="`mktemp`"
gunzip -c /var/log/wtmp.1.gz > "${WTMP}"
fi
echo "Data contained in rotated wtmp file." >> /var/log/wtmp.report
echo >> /var/log/wtmp.report
ac -f "${WTMP}" -p | sort -nr -k2 >> /var/log/wtmp.report
echo >> /var/log/wtmp.report
last -f "${WTMP}" >> /var/log/wtmp.report
if [ -n "${WTMP_WAS_GZIPPED}" ]
then
# remove temporary file
rm -f "${WTMP}"
fi
fi
echo "Data contained in current wtmp file:" >> /var/log/wtmp.report
ac -p | sort -nr -k2 >> /var/log/wtmp.report
echo >> /var/log/wtmp.report
last >> /var/log/wtmp.report
chown root:adm /var/log/wtmp.report
chmod 640 /var/log/wtmp.report


-- no debconf information
0 new messages