[Logcheck-commits] CVS logcheck/debian

CVS User maks-guest logcheck-devel@lists.alioth.debian.org
Mon, 20 Sep 2004 17:09:53 -0600


Update of /cvsroot/logcheck/logcheck/debian
In directory haydn:/tmp/cvs-serv13720/debian

Modified Files:
	changelog 
Log Message:

use [[ and ]] instead of [ and ], results in:

max@foo$  if [ $(wc -c <bla)  -lt $(tail -n 1 /var/lib/logcheck/offset.var.log.syslog) ]; then echo bla; fi
tail: cannot open `/var/lib/logcheck/offset.var.log.syslog' for reading: Permission denied
bash: [: 19: unary operator expected

max@foo$ if [[ $(wc -c <bla)  -lt $(tail -n 1 /var/lib/logcheck/offset.var.log.syslog) ]]; then echo bla; fi
tail: cannot open `/var/lib/logcheck/offset.var.log.syslog' for reading: Permission denied

found only one case where transition was needed please correct me if wrong.
construct needs bash >= 2.02.


--- /cvsroot/logcheck/logcheck/debian/changelog	2004/09/19 09:18:09	1.219
+++ /cvsroot/logcheck/logcheck/debian/changelog	2004/09/20 23:09:53	1.220
@@ -8,6 +8,7 @@
   * Allow Hostname for logcheck mail to be set by commandline switch
     for log hosts. thanks to Joerg Jaspert <joerg@debian.org>
   * Minor comment fixes for picky readers.
+  * Handle lack of permissions gracefully. (Closes: #271482)
 
 
  --