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

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

    <bug>
          <bug_id>20405</bug_id>
          
          <creation_ts>2009-06-10 16:55:18 +0400</creation_ts>
          <short_desc>Неправильно отсортированный файл main.cf.params</short_desc>
          <delta_ts>2009-06-10 17:23:18 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>postfix</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrew Kornilov">hiddenman</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>glebfm</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>92863</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Kornilov">hiddenman</who>
    <bug_when>2009-06-10 16:55:18 +0400</bug_when>
    <thetext>В /etc/postfix/postfix-script есть строка, проверяющая параметры на соответствие штатным:
        local p=&quot;$(sed -ne &apos;s/^\([^[:space:]=#]\+\)[[:space:]]*=.*/\1/p&apos; &quot;$cf&quot; |
                LC_COLLATE=C sort -u |
                LC_COLLATE=C comm -23 - &quot;$cf.params&quot; |
                tr &apos;\n&apos; &apos; &apos; |
                sed -e &apos;s/ $//&apos; -e &apos;s/ /,&amp;/g&apos;)&quot;

Файл $cf.params, который является /etc/postfix/main.cf.params,неправильно отсортирован, из-за чего не работает проверка правильно (comm требует отсортированные файлы для сравнения):

sed -ne &apos;s/^\([^[:space:]=#]\+\)[[:space:]]*=.*/\1/p&apos; &quot;main.cf&quot; |LC_COLLATE=C sort -u |LC_COLLATE=C comm -23 - main.cf.params
comm: file 2 is not in sorted order


cat main.cf.params |LC_COLLATE=C sort -u&gt;main.cf.sorted


diff -uN  main.cf.params  main.cf.sorted
--- main.cf.params      2008-02-25 16:51:32 +0000
+++ main.cf.sorted      2009-06-10 12:13:55 +0000
@@ -1,6 +1,6 @@
+#
 # DO NOT EDIT THIS FILE. EDIT THE MAIN.CF FILE INSTEAD. THE
 # TEXT HERE JUST SHOWS PARAMETER NAMES BUILT INTO POSTFIX.
-#
 2bounce_notice_recipient
 access_map_reject_code
 address_verify_default_transport</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92865</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2009-06-10 17:23:18 +0400</bug_when>
    <thetext>It was fixed in postfix-2.5.7-alt2 several days ago.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>