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

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

    <bug>
          <bug_id>3580</bug_id>
          
          <creation_ts>2004-02-03 15:01:09 +0300</creation_ts>
          <short_desc>su command breaks utmp</short_desc>
          <delta_ts>2005-09-03 00:35:52 +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>su</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>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Pesin">ipesin</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11556</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Pesin">ipesin</who>
    <bug_when>2004-02-03 15:01:09 +0300</bug_when>
    <thetext>su command breaks utmp log in Alt Linux Master 2.2 + updates 
and w/who commands show wrong info

Example:
[ivan@eagle ivan]$ ssh sirius
ivan@sirius&apos;s password:
Last login: Mon Feb  2 13:25:52 2004 from eagle.n-ix.com.ua
[ivan@sirius ivan]$ w
 13:26:40  up 17:23,  1 user,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
ivan     pts/0    eagle.n-ix.com.u  1:26pm  0.00s  0.07s  0.01s  w
[ivan@sirius ivan]$ su -
Password:
[root@sirius root]# w
 13:26:45  up 17:23,  2 users,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
ivan     pts/0    eagle.n-ix.com.u  1:26pm  0.00s  0.15s  0.10s
/usr/sbin/sshd
root     pts/0    localhost         1:26pm  0.00s  0.15s  0.02s  w
[root@sirius root]#

Now, open another one connection to this server:

[ivan@eagle ivan]$ ssh sirius
ivan@sirius&apos;s password:
Last login: Mon Feb  2 13:26:39 2004 from eagle.n-ix.com.ua
[ivan@sirius ivan]$ w
 13:27:39  up 17:24,  3 users,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
ivan     pts/0    eagle.n-ix.com.u  1:26pm 54.00s  0.13s  0.10s
/usr/sbin/sshd
ivan     pts/1    eagle.n-ix.com.u  1:27pm  0.00s  0.05s  0.01s  w
root     pts/0    localhost         1:26pm 54.00s  0.13s  0.06s  -bash
[ivan@sirius ivan]$ su -
Password:
[root@sirius root]# w
 13:27:44  up 17:24,  3 users,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
ivan     pts/0    eagle.n-ix.com.u  1:26pm 59.00s  0.13s  0.10s
/usr/sbin/sshd
ivan     pts/1    eagle.n-ix.com.u  1:27pm  0.00s  0.09s  0.08s
/usr/sbin/sshd
root     pts/1    localhost         1:27pm  0.00s  0.09s  0.01s  w
[root@sirius root]#

Now you can notice absence of the line
root     pts/0    localhost         1:26pm 54.00s  0.13s  0.06s  -bash




Steps to Reproduce:
1. ssh to ALM2.2 as user 
2. issue &quot;su&quot; command
3. open another ssh connection to the ALM2.2 server
4. issue &quot;su&quot; command
Actual Results:  
you will see three entries

Expected Results:  
there should be four entries</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11561</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2004-02-03 23:52:49 +0300</bug_when>
    <thetext>Does logout from second root session (pts/1) unhides first root session (pts/0)? 
 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11565</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan Pesin">ipesin</who>
    <bug_when>2004-02-04 01:36:01 +0300</bug_when>
    <thetext>yes, if I logout second root session, first one apears again:

[root@sirius root]# w
 00:34:35  up 2 days,  4:31,  3 users,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
ivan     pts/0    post-gw.litech.n 12:30am  4:23   0.10s  0.10s  /usr/sbin/sshd
ivan     pts/1    post-gw.litech.n 12:30am  0.00s  0.17s  0.10s  /usr/sbin/sshd
root     pts/1    localhost        12:34am  0.00s  0.17s  0.02s  w
[root@sirius root]# logout
[ivan@sirius ivan]$ w
 00:34:51  up 2 days,  4:31,  3 users,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU  WHAT
ivan     pts/0    post-gw.litech.n 12:30am  4:39   0.10s  0.10s  /usr/sbin/sshd
ivan     pts/1    post-gw.litech.n 12:30am  0.00s  0.09s  0.01s  w
root     pts/0    localhost        12:30am  4:39   0.10s  0.04s  -bash
[ivan@sirius ivan]$
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11567</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2004-02-04 17:26:38 +0300</bug_when>
    <thetext>I can reproduce this in Sisyphus, thanks. 
 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11574</commentid>
    <comment_count>4</comment_count>
      <attachid>341</attachid>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2004-02-04 18:43:03 +0300</bug_when>
    <thetext>Created attachment 341
SimplePAMApps-0.60-owl-login-su-ut_id-undo.patch

This patch (partial undo of the SimplePAMApps-0.60-owl-login-su-ut_id.patch)
fixes the problem. Looks like ut_id calculation algorithm in our SimplePAMApps
differs from openssh and libutempter.
I&apos;ll contact origin of the patch about that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11630</commentid>
    <comment_count>5</comment_count>
    <who name="Ivan Pesin">ipesin</who>
    <bug_when>2004-02-06 20:06:07 +0300</bug_when>
    <thetext>It looks it&apos;s not a good patch.
I&apos;ve applied it to the SimplePAMApps-0.60-alt15.src.rpm, build it and installed.

After that if I issue &quot;su -&quot; command, my name changes to &quot;root&quot; in &quot;w&quot; command, 
while in *nix systems I&apos;ve ever used, after su&apos;ing, &quot;w&quot; command shows my real 
login.

Note: when using &quot;su&quot; command  without &quot;-&quot; parameter the username has not been 
changed.

Furthermore, after issuing &quot;su -&quot; command breaks lastlog and shows a lot of fake 
00:00 records.

I&apos;ve changed a serverity of this bug, because it make really difficult to use 
ALM2.2 in multiuser environment, when on servers are present a lot of people.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11631</commentid>
    <comment_count>6</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2004-02-06 23:58:39 +0300</bug_when>
    <thetext>When you login with &quot;su -l&quot;, your login name changes. 
When you run &quot;su&quot; without &quot;-l&quot;, your login name remains unchanged. 
 
Also, I see no fake records in output of the &quot;last&quot; command: 
joe      pts/1       :0               Fri Feb  6 23:51   still logged in    
root     pts/1       localhost        Fri Feb  6 23:51 - 23:51 (00:00)      
joe      pts/1       :0               Fri Feb  6 23:50 - 23:51 (00:00)      
 
When user joe issued &quot;su -&quot;, user root logged on pts/1. 
That is, joe is not logged in on pts/1 untill root is logged out from pts/1. 
What&apos;s wrong with that? 
 
btw, I don&apos;t care of *unix systems which mishandle the &quot;su -&quot; case. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11632</commentid>
    <comment_count>7</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2004-02-07 00:00:29 +0300</bug_when>
    <thetext>Responce from origin of the patch: 
 
&quot;Actually, the desired behavior is not what Ivan describes.  Namely, 
the intent of that code in su is to temporarily replace the entry, not 
to add a new one.  So the desired result would be to have two entries 
(for two root sessions), not four.&quot; </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11634</commentid>
    <comment_count>8</comment_count>
    <who name="Ivan Pesin">ipesin</who>
    <bug_when>2004-02-07 12:52:53 +0300</bug_when>
    <thetext>Ok, I&apos;m really sorry if I had hurt your feelings somehow, but I don&apos;t understand
why you are so sure, that other *nix-es mishandles &quot;su -&quot;. Here is a comment
from su.c of rh9:

   -, -l, --login       Make the subshell a login shell.
                        Unset all environment variables except
                        TERM, HOME and SHELL (set as above), and USER
                        and LOGNAME (set unconditionally as above), and
                        set PATH to a default value.
                        Change to USER&apos;s home directory.
                        Prepend &quot;-&quot; to the shell&apos;s name.

If it&apos;ll be interesting for you same behavor have had all SCO unixes, saving
correction hp-ux, and a lot of other linux distributions.

Next, I agree that there should be two entries, not four. Ok, that&apos;s fine.

Again, if it&apos;ll be interesting for you I explain, why I think that current
behaivor, when su replaces entry with &quot;root&quot; username is not correct.

With such behaivor I can&apos;t see which users are currently in system. I see only
&quot;root&quot;,&quot;root&quot;,&quot;root&quot; ... Moreover, I can&apos;t see from where they have loggen in,
because &quot;su -&quot; changes FROM field to localhost now.

It&apos;s really not good from the administration point of view.

And way of thinking that the user, who have used &quot;su -&quot; command has logged out
is a nonsense! After logout from su shell it don&apos;t logout the system, it&apos;s going
back to the user shell. Furthermore, if you issue &quot;su -&quot; command user process
&quot;bash&quot; has an owner of &quot;user&quot;. And system reports, that user is not in the system!

Further, according to lastlog after logout from su shell user logins to the
system, but any logs doesn&apos;t  have any information about users login. It makes
me think, that my system were cracked.

I would like to discuss this problem, and no way to hurt your filling, so please
don&apos;t be so brute in your answers, like in your sentence
&quot;btw, I don&apos;t care of *unix systems which mishandle the &quot;su -&quot; case. &quot;

May be there is a reason, why other &quot;*unix systems which mishandle the &quot;su -&quot;
case. &quot; ?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11647</commentid>
    <comment_count>9</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2004-02-08 14:24:18 +0300</bug_when>
    <thetext>Still maybe there isn&apos;t: there were several su implementations floating around
for a long time, and the semantics differed quite noticeably.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11648</commentid>
    <comment_count>10</comment_count>
    <who name="Ivan Pesin">ipesin</who>
    <bug_when>2004-02-08 17:11:02 +0300</bug_when>
    <thetext>Ok. Of course it&apos;s ALT prerogative to deside how &quot;su&quot; should work in your
distribution.

I want to let you know, that is unaccustomed after rh,suse,and unixes because of
described reasons. And I&apos;m still sure that it&apos;s not usefull to replace utmp
record with info &quot;root bla-bla localhost&quot;. Nothing informative. Now, to get
information about who is in the system I have to use something like 
ps -ef | grep -- -bash | grep -v grep, and to get info about source of
connection I should make a deep magic with lastlog or netstat.
 
And last one, I want to ask you when approx. will be available update at least
with provided patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11649</commentid>
    <comment_count>11</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2004-02-08 17:27:50 +0300</bug_when>
    <thetext>One more question to clarify the situation: 
I think that after &quot;su -&quot; logname(1) should print &quot;root&quot;. 
Do you agree with this assumption? 
 
About timelines, I&apos;m not decided yet how to fix the issue since it may change behaviour. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11650</commentid>
    <comment_count>12</comment_count>
    <who name="Ivan Pesin">ipesin</who>
    <bug_when>2004-02-08 18:07:47 +0300</bug_when>
    <thetext>Thanks for your quick answer, Dmitry.

Now, about your question touching logname(1). I&apos;ve made a little investigation.
I tried following command sequence in rh6.2/7.3/9, sco osr5/unixware7 :
1. login as regular user &quot;ivan&quot;
2. su -
3. logname
in all cases (5 times) I got from logname output &quot;ivan&quot;. It looks like all of
them don&apos;t make changes in utmp log after issuing &quot;su -&quot; command. I don&apos;t have
access on weekend to suse/solaris, but I think there will be same situation.

ok, now back to our subject at hand. I think it&apos;s good for logname to return
&quot;root&quot; in &quot;su -&quot; environment, but it&apos;s bad to remove (change utmp entry for)
user, who did not logged out. He&apos;s in the system, he has issued &quot;su -&quot; command,
but he didn&apos;t logged out.

That&apos;s my oppinion. May be it really makes a sense not to change utmp entry but
add another for &quot;su -&quot; session? How do you think?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11651</commentid>
    <comment_count>13</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2004-02-08 19:05:56 +0300</bug_when>
    <thetext>Concerning your OS review, I&apos;d like to know *BSD behaviour in this case. 
 
Adding second utmp entry with the same ut_line will result to uncertainty in getlogin(3) 
behaviour, and therefore in logname(1) output: it will return first record with given ut_line. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11653</commentid>
    <comment_count>14</comment_count>
    <who name="Ivan Pesin">ipesin</who>
    <bug_when>2004-02-08 19:24:13 +0300</bug_when>
    <thetext>
Ok, *bsd behavior I&apos;ll describe tomorrow, since I have no access to that OS
during weekend also.


</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11655</commentid>
    <comment_count>15</comment_count>
      <attachid>342</attachid>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2004-02-09 02:02:00 +0300</bug_when>
    <thetext>Created attachment 342
SimplePAMApps-0.60-owl-alt-login-su-ut_id.patch

Here is a patch I&apos;m going to use instead of
SimplePAMApps-0.60-owl-login-su-ut_id.patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11661</commentid>
    <comment_count>16</comment_count>
    <who name="Ivan Pesin">ipesin</who>
    <bug_when>2004-02-09 13:21:31 +0300</bug_when>
    <thetext>Could you please describe in few words behaviour of su after applying this patch 
and after which patch I have to apply it when building?

Now about *bsd behaviour of &quot;su -&quot;:
FreeBSD 4.9-RELEASE-p1 :
ssh hellfire -l admin
Password:
hellfire-admin:~ &gt;$ su -
Password:
hellfire-root:~ &gt;# logname
admin
hellfire-root:~ &gt;#
---------------
FreeBSD 4.8-RELEASE:
ssh thewall
Password:
kazantip:~ &gt;$ su -
Password:
root:~ &gt;# logname
kazantip

I&apos;ve also checked in suse9 -- same situation, after &quot;su -&quot; logname(1) returns 
regular user name, not &quot;root&quot;.

So, how will ALT handle this situation?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11923</commentid>
    <comment_count>17</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2004-02-23 03:56:02 +0300</bug_when>
    <thetext>Fixed in 0.60-alt20 (Sisyphus) and 0.60-owl22 (Owl-current): 
SimplePAMApps-0.60-owl-alt-login-su-ut_id.patch replaces 
SimplePAMApps-0.60-owl-login-su-ut_id.patch 
 
Thanks for interesting discussion. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11925</commentid>
    <comment_count>18</comment_count>
    <who name="Ivan Pesin">ipesin</who>
    <bug_when>2004-02-23 11:05:36 +0300</bug_when>
    <thetext>thanks for fixing.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11943</commentid>
    <comment_count>19</comment_count>
    <who name="Ivan Pesin">ipesin</who>
    <bug_when>2004-02-24 18:25:02 +0300</bug_when>
    <thetext>Will be fixed rpm available as update for ALM2.2?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11944</commentid>
    <comment_count>20</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2004-02-24 18:43:47 +0300</bug_when>
    <thetext>Do you think it worths errata? </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11945</commentid>
    <comment_count>21</comment_count>
    <who name="Ivan Pesin">ipesin</who>
    <bug_when>2004-02-24 19:04:12 +0300</bug_when>
    <thetext>I think worth.

If it&apos;s interesting for you, I&apos;m running ALM2.2 as db/router/access servers.
I&apos;m planning 28 alm2.2 server installations in region (now I&apos;ve five), and 
people are working in terminal mode there. It means that all of them do ssh to 
the servers. Some servers have 50 concurent on-line users load. And it&apos;s vitaly 
to know how much people there are on-line. The same reason was why I wanted ALM 
behaviour to be the same as other linuxes/unixes in logname(1) handling. But as 
I understood you decide to left it as it was. 

And AFAIK ALM2.2 is last available stable server distribution from ALT (am I 
wrong? compact is beta, isn&apos;t it?), so I think fixes of such problems in core 
utils should be available via apt-get.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11946</commentid>
    <comment_count>22</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2004-02-24 19:17:09 +0300</bug_when>
    <thetext>Ok, I&apos;llprepare update for ALM2.2 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11947</commentid>
    <comment_count>23</comment_count>
    <who name="Ivan Pesin">ipesin</who>
    <bug_when>2004-02-24 19:20:31 +0300</bug_when>
    <thetext>thank you</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>341</attachid>
            <date>2004-02-04 18:43:03 +0300</date>
            <delta_ts>2004-02-09 02:02:00 +0300</delta_ts>
            <desc>SimplePAMApps-0.60-owl-login-su-ut_id-undo.patch</desc>
            <filename>SimplePAMApps-0.60-owl-login-su-ut_id-undo.patch</filename>
            <type>text/plain</type>
            <size>1361</size>
            <attacher name="Dmitry V. Levin">ldv</attacher>
            
              <data encoding="base64">ZGlmZiAtdSBTaW1wbGVQQU1BcHBzLTAuNjAvY29tbW9uL2xpYi93dG1wLmMgU2ltcGxlUEFNQXBw
cy0wLjYwL2NvbW1vbi9saWIvd3RtcC5jCi0tLSBTaW1wbGVQQU1BcHBzLTAuNjAvY29tbW9uL2xp
Yi93dG1wLmMJRnJpIE1hciAgMSAyMzoxNDo1NyAyMDAyCisrKyBTaW1wbGVQQU1BcHBzLTAuNjAv
Y29tbW9uL2xpYi93dG1wLmMJRnJpIE1hciAgMSAyMzoxNDo1NyAyMDAyCkBAIC0zLDYgKzMsOSBA
QAogICovCiAKICNkZWZpbmUgUkhPU1RfVU5LTk9XTl9OQU1FICAgICAgICAiIiAgICAgLyogcGVy
aGFwcyAiW2Zyb20ud2hlcmU/XSIgKi8KKworI2RlZmluZSBERVZJQ0Vf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8yID0gc3RybGVuKHRlcm1pbmFsICsgbzEpIC0gVVRfSURTSVpFOworCSAgICBvMiA9IHN0
cmxlbih0ZXJtaW5hbCkgLSBzaXplb2YoVVRfSURTSVpFKTsKIAkgICAgaWYgKG8yIDwgMCkKIAkJ
bzIgPSAwOwotCSAgICBvMiArPSBvMTsKLQkgICAgaWYgKG8xID4gNSkKLQkJbzEgPSA1OwogCX0K
IAogCXN0cm5jcHkodXRfbGluZSwgdGVybWluYWwgKyBvMSwgVVRfTElORVNJWkUpOwo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>342</attachid>
            <date>2004-02-09 02:02:00 +0300</date>
            <delta_ts>2004-02-09 02:02:00 +0300</delta_ts>
            <desc>SimplePAMApps-0.60-owl-alt-login-su-ut_id.patch</desc>
            <filename>SimplePAMApps-0.60-owl-alt-login-su-ut_id.patch</filename>
            <type>text/plain</type>
            <size>2339</size>
            <attacher name="Dmitry V. Levin">ldv</attacher>
            
              <data encoding="base64">ZGlmZiAtdXByay5vcmlnIFNpbXBsZVBBTUFwcHMtMC42MC5vcmlnL2NvbW1vbi9saWIvd3RtcC5j
IFNpbXBsZVBBTUFwcHMtMC42MC9jb21tb24vbGliL3d0bXAuYwotLS0gU2ltcGxlUEFNQXBwcy0w
LjYwLm9yaWcvY29tbW9uL2xpYi93dG1wLmMJMTk5OS0wMS0yNyAxOToyNzoxNiArMDMwMAorKysg
U2ltcGxlUEFNQXBwcy0wLjYwL2NvbW1vbi9saWIvd3RtcC5jCTIwMDQtMDItMDggMjA6MDE6NTYg
KzAzMDAKQEAgLTMsOSArMyw2IEBACiAgKi8KIAogI2RlZmluZSBSSE9TVF9VTktOT1dOX05BTUUg
ICAgICAgICIiICAgICAvKiBwZXJoYXBzICJbZnJvbS53aGVyZT9dIiAqLwotCi0jZGVmaW5lIERF
VklDRV9GSUxFX1BSRUZJWCAgICAgICAgIi9kZXYvIgotCiAjZGVmaW5lIFdUTVBfTE9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iAobzIgPCAwKQogCQlvMiA9IDA7CiAJfQpAQCAtMjAz
LDcgKzIxMiw2IEBAIGludCB1dG1wX2RvX29wZW5fc2Vzc2lvbihjb25zdCBjaGFyICp1c2UKICAg
ICBzZXRfdGVybWluYWxfbmFtZSh0ZXJtaW5hbCwgdXRfbGluZSwgdXRfaWQpOwogCiAgICAgdXRt
cG5hbWUoX1BBVEhfVVRNUCk7Ci0gICAgc2V0dXRlbnQoKTsgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgLyogcmV3aW5kIGZpbGUgKi8KICAgICB1X3RtcF9wID0gZmlu
ZF91dG1wX2VudHJ5KHV0X2xpbmUsIHV0X2lkKTsKIAogICAgIC8qIHJlc2V0IG5ldyBlbnRyeSAq
Lwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>