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

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

    <bug>
          <bug_id>24888</bug_id>
          
          <creation_ts>2011-01-10 20:15:01 +0300</creation_ts>
          <short_desc>broke with perl-5.12</short_desc>
          <delta_ts>2011-01-12 11:28:08 +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>smbldap-tools</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>9913</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Shigorin">mike</reporter>
          <assigned_to name="Michael Shigorin">mike</assigned_to>
          <cc>crux</cc>
    
    <cc>mike</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>117005</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2011-01-10 20:15:01 +0300</bug_when>
    <thetext>Сломалось с perl-base-5.12.2-alt02 как минимум:

--- 0.9.5-alt2
# /usr/sbin/smbldap-migrate-unix-accounts -v -P ~/passwd 2&gt;&amp;1 | head -n 40
Use of uninitialized value $typeuser in hash element at /usr/sbin/smbldap-migrate-unix-accounts line 255, &lt;$INFILE&gt; line 1.
Use of uninitialized value within @_ in list assignment at /usr/share/perl5/Net/LDAP.pm line 50, &lt;$INFILE&gt; line 1.
Use of uninitialized value $typeuser in hash element at /usr/sbin/smbldap-migrate-unix-accounts line 262, &lt;$INFILE&gt; line 1.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/smbldap-migrate-unix-accounts line 262, &lt;$INFILE&gt; line 1.
------------------------------------------------------------------------
dn:uid=username,
[...]
---

(последняя строчка, которая уже кусок LDIF&apos;а, обрывается именно на запятой)

--- 0.9.6-alt1 (с патчем от 0.9.5-alt2, лёг нормально):
# /usr/sbin/smbldap-migrate-unix-accounts -v -u -P ~/passwd 2&gt;&amp;1 | head -n 40
Use of uninitialized value $typeuser in hash element at /usr/sbin/smbldap-migrate-unix-accounts line 257, &lt;$INFILE&gt; line 1.
Use of uninitialized value within @_ in list assignment at /usr/share/perl5/Net/LDAP.pm line 50, &lt;$INFILE&gt; line 1.
Use of uninitialized value $typeuser in hash element at /usr/sbin/smbldap-migrate-unix-accounts line 264, &lt;$INFILE&gt; line 1.
Use of uninitialized value in concatenation (.) or string at /usr/sbin/smbldap-migrate-unix-accounts line 264, &lt;$INFILE&gt; line 1.
------------------------------------------------------------------------
dn:uid=username,
[...]
---

Если патч оторвать, то 0.9.6 с текущим перлом работает.  Предлагаю оторвать до того, как кто-нить доберётся починить (возможно, перл поумнел и переоптимизировал что-то с этим undef&apos;ом добавленным).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117062</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2011-01-11 22:07:57 +0300</bug_when>
    <thetext>smbldap-tools-0.9.6-alt2 -&gt; sisyphus:

* Mon Jan 10 2011 Michael Shigorin &lt;mike@altlinux&gt; 0.9.6-alt2
- drop patch, breaks with perl-5.12 at the very least (closes: #24888)

* Mon Jan 10 2011 Michael Shigorin &lt;mike@altlinux&gt; 0.9.6-alt1
- 0.9.6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117084</commentid>
    <comment_count>2</comment_count>
    <who name="Vladimir Lettiev">crux</who>
    <bug_when>2011-01-12 11:28:08 +0300</bug_when>
    <thetext>патч кривоват, при использовании любой из опций -P -S -M может привести к некорректным результатам.

Ошибка в том, что функция get_user_entry() использует переменную $typeuser, значение которой определяется _позже_ вызова этой функции. Т.о. при обработке первой строчки данных используется пустое значение (отсюда warning&apos;и), а каждая следующая строчка использует значение $typeuser вычисленное для предыдущей строки, что может дать, мягко говоря, совершенно неверные результаты.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>