Menu

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

0.13
closed-fixed
nobody
None
5
2020-12-30
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

  • Hannes von Haugwitz

    confirmed (latest git version)

     
  • Hannes von Haugwitz

    • status: open --> closed-fixed
    • Group: --> 0.13
     
  • Hannes von Haugwitz

    fixed (commit cea21ddca3b526e60b6c16e8bf6d1f29e40151f5 )

     

Log in to post a comment.

MongoDB Logo MongoDB