FreeBSD Bugzilla – Attachment 17737 Details for
Bug 32113
200.accounting doesn't match newsyslog.conf
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 763 bytes, created by
Yar Tikhiy
on 2001-11-19 20:50:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Yar Tikhiy
Created:
2001-11-19 20:50:00 UTC
Size:
763 bytes
patch
obsolete
>--- 200.accounting.orig Tue Sep 26 04:04:27 2000 >+++ 200.accounting Mon Nov 19 23:05:48 2001 >@@ -14,18 +14,29 @@ > case "$monthly_accounting_enable" in > [Yy][Ee][Ss]) > W=/var/log/wtmp >+ rc=0 >+ remove=NO > if [ ! -f $W.0 ] > then >- echo '$monthly_accounting_enable is set but' \ >- "$W.0 doesn't exist" >- rc=2 >- else >+ if [ -f $W.0.gz ] >+ then >+ remove=YES >+ zcat $W.0.gz > $W.0 || rc=1 >+ else >+ echo '$monthly_accounting_enable is set but' \ >+ "$W.0 doesn't exist" >+ rc=2 >+ fi >+ fi >+ if [ $rc -eq 0 ] >+ then > echo "" > echo "Doing login accounting:" > > rc=$(ac -p -w $W.0 | sort -nr +1 | tee /dev/stderr | wc -l) > [ $rc -gt 0 ] && rc=1 >- fi;; >+ fi >+ [ $remove = YES ] && rm -f $W.0;; > > *) rc=0;; > esac
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32113
: 17737