Bug 52092

Summary: Не выполняется сравнение двух баз aide -E
Product: Sisyphus Reporter: Aleksandr Sysoev <sysoevas>
Component: aideAssignee: Vitaly Chikunov <vt>
Status: CLOSED NOTABUG QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: vt
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Aleksandr Sysoev 2024-11-18 19:41:58 MSK
# rpm -qa | grep aide
aide-0.18.8-alt2.x86_64

Существует две базы:
# ls /var/lib/aide/
aide.db.gz  aide.db.new.gz

В конфиге они указаны:
database_in     = file:@@{DBDIR}/aide.db.gz
database_out    = file:@@{DBDIR}/aide.db.new.gz

Однако при выполнении команды сравнения # aide -E, возникает ошибка:
ERROR: must have both input databases defined for database compare

ДОПОЛНИТЕЛЬНО:
Если поправить строки в конфиге след. образом:
database     = file:@@{DBDIR}/aide.db.gz
database_new    = file:@@{DBDIR}/aide.db.new.gz

то команда выполняется успешно, но возникает предупреждение: 
WARNING: /etc/aide.conf:11: Using 'database' is DEPRECATED and will be removed in the next release.. Update your config and use 'database_in' instead (line: 'database     = file:@@{DBDIR}/aide.db.gz')

Полагаю, что # aide - E "не научили" работать с 'database_in' и 'database_out'.
Comment 1 Vitaly Chikunov 2024-11-18 22:16:52 MSK
aide(1):
       --compare, -E
              Compares two databases. They must be defined in config file with database=<url> and database_new=<url>.

aide.conf(5):
       database_in (type: URL, default: see --version output, added in AIDE v0.17)
       database (DEPRECATED since AIDE v0.17, will be removed in AIDE v0.19)
              The url from which database is read. There can only be one of these lines. If there are multiple database lines then the first is used.

       database_new (type: URL, default: <none>)
              The url from which the other database for --compare is read.