freebsd-dev/usr.sbin
John Grafton 9ab40bc40d 310.accounting: Verify process accounting is active before log rotation.
This corrects a bug in which the daily periodic script '310.accounting'
attempts to rotate logs via /etc/rc.d/accounting by calling
onerotate_logs function. The rotate logs function turns accounting back
on regardless of what acccounting_enable is set to in /etc/rc.conf. This
is due to checkyesno always returning YES since rotate logs is called
with the 'one' prefix.

In effect, accounting will always be turned back on once a day even if
it is disabled and stopped by hand. The fix was simple, just check if
accounting is before rotating logs and if it is, don't attempt the
rotate.

PR: 267464
Reviewed by: imp, hps (lgtm, not approval), Mina Galić
Pull Request: https://github.com/freebsd/freebsd-src/pull/648
Differential Revision: https://reviews.freebsd.org/D37434
2023-02-28 09:59:34 -07:00
..
ac
accton
acpi acpica: Quiet a -Wdangling-pointer warning in AcpiUtInitStackPtrTrace. 2022-12-04 16:28:59 -08:00
adduser
apm
apmd
arp
audit
auditd
auditdistd
auditreduce
authpf
autofs
bhyve bhyve: fix resume for vms with guest_ncpus > 1 2023-02-28 13:37:58 +01:00
bhyvectl
bhyveload bhyveload: open guest boot disk image O_RDWR 2022-12-05 08:22:45 -09:00
binmiscctl imgact_binmisc: Optionally pre-open the interpreter vnode 2022-12-08 14:32:03 +00:00
blacklistctl
blacklistd
bluetooth iwmbtfw(8): Fix a typo in a kernel message 2023-01-11 12:22:18 +01:00
boot0cfg
bootparamd
boottrace
bsdconfig bsdconfig: correct name of the wpa_supplicant config file 2023-01-16 18:56:45 +00:00
bsdinstall bsdconfig, bsdinstall: Refresh mirrors list 2023-01-16 13:48:06 -03:00
bsnmpd bsnmpget.1: Fix a typo in the man page 2023-01-19 14:18:52 +01:00
btxld
camdd
cdcontrol
certctl Strip trailing slashes from DESTDIR 2023-02-04 12:11:02 -07:00
chkgrp
chown
chroot
ckdist
clear_locks
config config: drop reference to removed System_spec 2023-02-24 13:16:19 -06:00
cpucontrol
crashinfo
cron
crunch
ctladm Missed chunk of 0acc026dda. 2022-12-03 11:26:22 -05:00
ctld ctld: if adding a target fails, retry it on the next reload 2022-10-21 18:28:45 -06:00
cxgbetool cxgbetool(8): Fix common typos in sysctl descriptions 2023-01-19 14:22:00 +01:00
daemon daemon: add long_opts 2023-02-09 22:36:07 -06:00
dconschat dconschat(8): Fix a typo in an error message 2022-10-25 12:58:55 +02:00
devctl
devinfo pkgbase: Put devmatch in its own package 2022-10-26 19:46:38 +02:00
diskinfo
dumpcis
editmap
edquota
efibootmgr efibootmgr: add missing break for 'u' case 2023-02-23 14:13:18 -05:00
efidp efidp: Remove write only variable 2023-02-15 16:03:54 -07:00
efitable
efivar
etcupdate etcupdate: Chase test case after pwd_mkdb(8) no longer copies comments. 2023-01-29 20:40:58 -08:00
extattr
extattrctl
fdcontrol
fdformat
fdread
fdwrite
fifolog
flowctl
freebsd-update uname.1: Clarify the -r option 2022-09-16 13:27:54 +02:00
fstyp
ftp-proxy pkgbase: Put ftp-proxy in the FreeBSD-pf package 2023-02-08 08:49:43 +01:00
fwcontrol fwcontrol: Disable -Wzero-length-bounds warnings. 2022-12-04 16:30:20 -08:00
getfmac
getpmac
gpioctl
gssd Revert "gssd: Fix handling of the gssname=<name> NFS mount option" 2023-01-11 18:23:17 -08:00
gstat
hyperv
i2c
ifmcstat
inetd pkgbase: Create a FreeBSD-inetd package 2023-02-08 08:48:43 +01:00
iostat
iovctl
ip6addrctl
ipfwpcap
iscsid
jail jail: Correct jail_max_af_ips sysctl name 2023-02-04 11:46:46 -07:00
jexec
jls
kbdcontrol kbdcontrol: enable pre-Unicode dead key table compatibility 2023-02-14 13:49:06 +01:00
kbdmap pkgbase: Create a FreeBSD-console-tools package 2023-02-08 08:52:40 +01:00
keyserv
kldxref kldxref: skip .pkgsave files 2023-02-25 10:35:43 -07:00
lastlogin
lpr
lptcontrol
mailstats
mailwrapper pkgbase: Put sendmail example in the sendmail package 2023-02-08 08:50:31 +01:00
makefs makefs: don't needlessly require directories to exist 2023-01-12 19:16:14 +00:00
makemap
manctl
memcontrol
mergemaster
mfiutil
mixer mixer: Fix default_unit switching with mixers that have no devices 2023-01-16 08:02:54 -05:00
mld6query
mlx5tool
mlxcontrol
mount_smbfs pkgbase: Create a FreeBSD-smbutils package 2023-02-08 08:48:28 +01:00
mountd mountd(8): Fix a typo in a source code comment 2023-01-19 14:23:51 +01:00
moused pkgbase: Create a FreeBSD-console-tools package 2023-02-08 08:52:40 +01:00
mpsutil
mptable
mptutil
mtest
ndp
newsyslog newsyslog.conf: Minor formatting fix 2022-12-28 16:26:51 -08:00
nfscbd
nfsd nfsd.c: Log a more meaningful failure message 2023-02-22 14:09:15 -08:00
nfsdumpstate
nfsrevoke
nfsuserd
ngctl
nghook
nmtree
nologin
nscd
ntp Update leap-seconds to latest leap-seconds.3676924800 (expires 2023-12-28) 2023-02-24 13:18:05 +01:00
nvram
ofwdump
pciconf pciconf(8): Decode ACS extended capability. 2022-11-07 13:20:22 -08:00
periodic 310.accounting: Verify process accounting is active before log rotation. 2023-02-28 09:59:34 -07:00
pkg
pmc pmc: remove write-only variable 2022-10-19 20:59:23 +00:00
pmcannotate
pmccontrol
pmcstat
pmcstudy
pnfsdscopymr
pnfsdsfile
pnfsdskill
pnpinfo
portsnap
powerd powerd.8: Provide a whole path to power_profile for clarity 2023-02-25 17:30:27 +01:00
ppp ppp: improve MSS clamping 2022-12-08 09:48:29 +01:00
pppctl
praliases
praudit
prometheus_sysctl_exporter
pstat
pw pw: Don't return a pointer to an on-stack buffer from grp_set_passwd. 2022-12-04 16:28:22 -08:00
pwd_mkdb pwd_mkdb(8): Don't copy comments from /etc/master.passwd to /etc/passwd. 2023-01-04 22:18:09 -08:00
pwm
quot
quotaon
rarpd
repquota
rip6query
rmt
route6d
rpc.lockd nfs: Fix a common typo in source code comments 2023-01-19 14:26:06 +01:00
rpc.statd nfs: Fix a common typo in source code comments 2023-01-19 14:26:06 +01:00
rpc.tlsclntd report full error string on SSL_connect() failure 2023-02-27 16:07:30 -07:00
rpc.tlsservd rpc.tlsservd: Check for a tls syscall failure. 2022-12-22 09:10:27 -08:00
rpc.umntall
rpc.yppasswdd
rpc.ypupdated
rpc.ypxfrd
rpcbind
rrenumd
rtadvctl
rtadvd
rtprio
rtsold
rwhod
sa
sendmail
service
services_mkdb
sesutil sesutil: don't malloc in a tight loop 2023-02-13 09:04:05 -07:00
setfib
setfmac
setpmac
smbmsg
snapinfo pkgbase: Put ufs related tools and lib in their own package 2022-10-26 19:46:34 +02:00
spi
spkrtest
spray
syslogd
sysrc
tcpdchk
tcpdmatch
tcpdrop
tcpdump
tcpsso tcp_sso: add support for TCP_MAXUNACKTIME 2022-09-29 02:02:11 +02:00
tests
traceroute
traceroute6 traceroute6: fix capabilities for the rcv socket 2022-10-04 23:40:29 +02:00
trim
tzsetup
uathload
uefisign
ugidfw
uhsoctl
unbound local-unbound-setup: Use default root certificates 2023-02-07 11:13:33 +01:00
usbconfig
usbdump
utx
valectl pkgbase: Create a FreeBSD-netmap package 2023-02-08 08:49:28 +01:00
vidcontrol pkgbase: Create a FreeBSD-console-tools package 2023-02-08 08:52:40 +01:00
vigr
vipw vipw.8: Add a FILES section 2022-11-12 12:56:29 +01:00
wake
watch
watchdogd
wlandebug
wpa
yp_mkdb
ypbind
ypldap ypldap: Fix mismatch in array bounds for ldapclient(). 2022-10-03 16:10:41 -07:00
yppoll
yppush
ypserv
ypset
zdump tzcode: Move configuration into separate header. 2023-01-11 11:39:12 +01:00
zic tzcode: Move configuration into separate header. 2023-01-11 11:39:12 +01:00
zonectl
zzz
Makefile hyperv: Build and install where supported 2023-02-01 10:21:57 -07:00
Makefile.aarch64
Makefile.amd64 Makefile.amd64: remove construct that serves no purpose 2023-02-08 12:19:39 -07:00
Makefile.arm
Makefile.i386 hyperv: Build and install where supported 2023-02-01 10:21:57 -07:00
Makefile.inc
Makefile.powerpc
Makefile.riscv