possible innstat.in fix for inn-2.4.2-test
Chris Caputo
ccaputo at alt.net
Thu Jul 29 00:30:16 UTC 2004
Hi. On inn-2.4.2-test innstat is reporting the following when used with
FSF's "tail (coreutils) 5.2.1":
---
Batch file sizes:
tail: cannot open `+2' for reading: No such file or directory
---
I've attached a possible fix below, but unfortunately I don't know if it
will fare well with older versions of tail.
Chris
------
--- scripts/innstat.in.original 2004-07-10 23:20:03.000000000 +0000
+++ scripts/innstat.in 2004-07-29 00:20:25.233105376 +0000
@@ -36,7 +36,7 @@
## Show size of batch files.
echo ''
echo 'Batch file sizes:'
-( cd ${BATCH}; ls -Cs | tail +2 )
+( cd ${BATCH}; ls -Cs | tail -n +2 )
## Show size of log files.
echo ''
More information about the inn-workers
mailing list