summaryrefslogtreecommitdiffstats
path: root/etc/periodic/monthly
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2002-09-24 18:53:46 +0000
committerache <ache@FreeBSD.org>2002-09-24 18:53:46 +0000
commitac09299ab907c280480d1971accae61fad3e7bad (patch)
treebcd94ae69ce042611acfd5680f7aa9edbcb0ed20 /etc/periodic/monthly
parentf827f40f52b12dea84f6f0b7d126604815c2c149 (diff)
downloadFreeBSD-src-ac09299ab907c280480d1971accae61fad3e7bad.zip
FreeBSD-src-ac09299ab907c280480d1971accae61fad3e7bad.tar.gz
Make it work with POSIX sort (POS arg).
All old sorts understand -k too.
Diffstat (limited to 'etc/periodic/monthly')
-rwxr-xr-xetc/periodic/monthly/200.accounting2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/periodic/monthly/200.accounting b/etc/periodic/monthly/200.accounting
index 10a65d1..0be8c32 100755
--- a/etc/periodic/monthly/200.accounting
+++ b/etc/periodic/monthly/200.accounting
@@ -39,7 +39,7 @@ case "$monthly_accounting_enable" in
echo ""
echo "Doing login accounting:"
- rc=$(ac -p -w $W.0 | sort -nr +1 | tee /dev/stderr | wc -l)
+ rc=$(ac -p -w $W.0 | sort -nr -k 2 | tee /dev/stderr | wc -l)
[ $rc -gt 0 ] && rc=1
fi
[ $remove = YES ] && rm -f $W.0;;
OpenPOWER on IntegriCloud