#65 off-by-one-error in line number for error messages

open
nobody
None
5
2007-03-21
2007-03-21
Marc Haber
No

$ nl -ba -nln /var/lib/aide/aide.conf.autogenerated | grep '^3[0-9]'
30 RotatedLogs = Full+I
31 Logs = OwnerMode+n+S
32 LowLogs = Logs-S
33 LinkedLogs = Logs-n
34
35 (|/etc/motd)$ Full
$ sudo aide.wrapper --init
34:syntax error:(
34:Error while reading configuration:(
Configuration error
$

When I put the error in macro definitions, everything is fine:
$ nl -ba -nln /var/lib/aide/aide.conf.autogenerated | grep '^3[0-9]'
30 RotatedLogs = Full+I
31 Logs = OwnerMode+n+S
32 LowLogs = Logs-Sblubb
33 LinkedLogs = Logs-n
34
35 /etc/motd$ Full
$ sudo aide.wrapper --init
32:Error in expression:Sblubb
Configuration error
$

So the error must be somewhere in the rule parser.

This is #414268 from the Debian BTS, http://bugs.debian.org/414268

Greetings
Marc

Discussion