<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>52092</bug_id>
          
          <creation_ts>2024-11-18 19:41:58 +0300</creation_ts>
          <short_desc>Не выполняется сравнение двух баз aide -E</short_desc>
          <delta_ts>2024-11-18 22:16:52 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>aide</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aleksandr Sysoev">sysoevas</reporter>
          <assigned_to name="Vitaly Chikunov">vt</assigned_to>
          <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>254687</commentid>
    <comment_count>0</comment_count>
    <who name="Aleksandr Sysoev">sysoevas</who>
    <bug_when>2024-11-18 19:41:58 +0300</bug_when>
    <thetext># 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 &apos;database&apos; is DEPRECATED and will be removed in the next release.. Update your config and use &apos;database_in&apos; instead (line: &apos;database     = file:@@{DBDIR}/aide.db.gz&apos;)

Полагаю, что # aide - E &quot;не научили&quot; работать с &apos;database_in&apos; и &apos;database_out&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>254693</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2024-11-18 22:16:52 +0300</bug_when>
    <thetext>aide(1):
       --compare, -E
              Compares two databases. They must be defined in config file with database=&lt;url&gt; and database_new=&lt;url&gt;.

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: &lt;none&gt;)
              The url from which the other database for --compare is read.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>