Bug#414268: aide: syntax errors tell wrong line number
package aide tags #414268 confirmed upstream forwarded #414268 https://sourceforge.net/tracker/index.php?func=detailaid=1685090group_id=86976atid=581579 thanks On Sat, Mar 10, 2007 at 01:48:25PM +0100, Marc Schiffbauer wrote: For example I got this message: linux:/etc/aide# aide -D -c /var/lib/aide/aide.conf.autogenerated 44:syntax error:( 44:Error while reading configuration:( Configuration error Correct would be 45. I can confirm this. Also, I can confirm that the line number is correct when the forced error is somewhere in a macro definition, so it is a clear bug. Thanks for spotting this. Forwarded upstream. Greetings Marc -- - Marc Haber | I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things.Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#414268: aide: syntax errors tell wrong line number
Package: aide Version: 0.13.1-2 Severity: normal For example I got this message: linux:/etc/aide# aide -D -c /var/lib/aide/aide.conf.autogenerated 44:syntax error:( 44:Error while reading configuration:( Configuration error Correct would be 45. Look here: linux:/etc/aide# nl -ba -nln /var/lib/aide/aide.conf.autogenerated | grep ^4[1-9] 41 42 43 44 45 (|/srv/chroots/build|/srv/chroots/db-mysql|/srv/chroots/www)/var/log/acpid$ Logs 46 @@{CHROOTS}/var/log/acpid\.1$ RotatedLogs 47 @@{CHROOTS}/var/log/acpid\.2\.gz$ RotatedLogs+ANF 48 @@{CHROOTS}/var/log/acpid\.3\.gz$ RotatedLogs 49 @@{CHROOTS}/var/log/acpid\.4\.gz$ RotatedLogs+ARF -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.19.3-grsec Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages aide depends on: ii debconf [debconf 1.5.11 Debian configuration management sy ii liblockfile1 1.06.1 NFS-safe locking library, includes ii mailx1:8.1.2-0.20050715cvs-1 A simple mail user agent ii ucf 2.0020 Update Configuration File: preserv Versions of packages aide recommends: ii cron 3.0pl1-100 management of regular background p -- debconf information: * aide/aideinit: false * aideinit/copynew: true aideinit/overwritenew: true aide/newlibdir: false -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#414268: [Pkg-aide-maintainers] Bug#414268: aide: syntax errors tell wrong line number
On Sat, Mar 10, 2007 at 01:48:25PM +0100, Marc Schiffbauer wrote: For example I got this message: linux:/etc/aide# aide -D -c /var/lib/aide/aide.conf.autogenerated 44:syntax error:( 44:Error while reading configuration:( Configuration error Correct would be 45. That depends on your point of view. Aide begins counting with line zero, IIRC. Greetings Marc -- - Marc Haber | I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things.Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#414268: [Pkg-aide-maintainers] Bug#414268: aide: syntax errors tell wrong line number
* Marc Haber schrieb am 10.03.07 um 15:40 Uhr: On Sat, Mar 10, 2007 at 01:48:25PM +0100, Marc Schiffbauer wrote: For example I got this message: linux:/etc/aide# aide -D -c /var/lib/aide/aide.conf.autogenerated 44:syntax error:( 44:Error while reading configuration:( Configuration error Correct would be 45. That depends on your point of view. Aide begins counting with line zero, IIRC. Maybe, but not a human... and this message is for a human, right? I think fixing this would increase usability. Any other parser that I know of points me to the line number where the first line is number 1 not 0. Greetings Marc dito -- 8AAC 5F46 83B4 DB70 8317 3723 296C 6CCA 35A6 4134 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]