[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#224856: marked as done (getlogin returns at best null at worst random results)



Your message dated Sat, 16 Apr 2005 21:23:38 +0900
with message-id <81pswu52r9.wl@omega.webmasters.gr.jp>
and subject line Bug#224856: getlogin returns at best null at worst random results
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 23 Dec 2003 00:21:25 +0000
>From kevins@netgate.net.nz Mon Dec 22 18:21:24 2003
Return-path: <kevins@netgate.net.nz>
Received: from uhura.netgate.net.nz [202.37.247.17] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AYXfK-0006hH-00; Mon, 22 Dec 2003 15:32:39 -0600
Received: from SKAVIN (skavin.stewart.gen.nz [202.37.22.42])
	by uhura.netgate.net.nz (8.12.10/8.12.10) with ESMTP id hBMLWVoT008379
	for <submit@bugs.debian.org>; Tue, 23 Dec 2003 10:32:36 +1300 (NZDT)
From: "Kevin Stewart" <kevins@netgate.net.nz>
To: <submit@bugs.debian.org>
Subject: getlogin returns at best null at worst random results
Date: Tue, 23 Dec 2003 10:31:29 +1300
Message-ID: <000601c3c8d2$f9a12200$2a1625ca@SKAVIN>
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0007_01C3C93F.F09CB3F0"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4510
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Importance: Normal
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 
	2.60-master.debian.org_2003_11_25-bugs.debian.org_2003_12_15 
	(1.212-2003-09-23-exp) on master.debian.org
X-Spam-Status: No, hits=-0.5 required=4.0 tests=HAS_PACKAGE,HTML_70_80,
	HTML_MESSAGE autolearn=no 
	version=2.60-master.debian.org_2003_11_25-bugs.debian.org_2003_12_15
X-Spam-Level: 

This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C3C93F.F09CB3F0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Package: libc6-dev
Version: 2.3.2-9
 
Using this perl script and c code pair getlogin will often randomly return
another users name or null
exp.pl

#!/usr/local/bin/perl -w

 

use strict;

use Expect;

my $exp = Expect->spawn("./getlogin");

$exp->expect(10,"hello");

 

getlogin.c

#include <unistd.h>

 

int main (){

        char * name;

        name=getlogin();

        printf("%s\n",name);

}

 

it also happens with this expect script

#!/usr/bin/expect -f

 

set timeout 5

spawn ./a.out

expect "hello";

 

Kevin Stewart


------=_NextPart_000_0007_01C3C93F.F09CB3F0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p
	{margin-right:0cm;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman";}
code
	{font-family:"Courier New";}
pre
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.EmailStyle17
	{font-family:Arial;
	color:windowtext;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-NZ link=3Dblue vlink=3Dpurple>

<div class=3DSection1><pre><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt'>Package: =
libc6-dev</span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>Version: =
2.3.2-9</span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;</span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>Using =
this perl script and c code pair getlogin will often randomly return =
another users name or null</span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>exp.pl</span></font></pre>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>#!/usr/local/bin/perl -w</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>use strict;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>use Expect;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>my $exp =3D =
Expect-&gt;spawn(&quot;./getlogin&quot;);</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>$exp-&gt;expect(10,&quot;hello&quot;);</span></font></=
p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>getlogin.c</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>#include &lt;unistd.h&gt;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>int main (){</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; char * =
name;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
name=3Dgetlogin();</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
printf(&quot;%s\n&quot;,name);</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>}</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>it also happens with this expect =
script</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>#!/usr/bin/expect -f</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>set timeout 5</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>spawn ./a.out</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>expect &quot;hello&quot;;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Kevin Stewart</span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0007_01C3C93F.F09CB3F0--



---------------------------------------
Received: (at 224856-done) by bugs.debian.org; 16 Apr 2005 12:23:40 +0000
>From gotom@debian.or.jp Sat Apr 16 05:23:40 2005
Return-path: <gotom@debian.or.jp>
Received: from omega.webmasters.gr.jp (webmasters.gr.jp) [218.44.239.78] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DMmKp-0006bQ-00; Sat, 16 Apr 2005 05:23:39 -0700
Received: from omega.webmasters.gr.jp (localhost [127.0.0.1])
	by webmasters.gr.jp (Postfix) with ESMTP
	id 05340DEB3B; Sat, 16 Apr 2005 21:23:39 +0900 (JST)
Date: Sat, 16 Apr 2005 21:23:38 +0900
Message-ID: <81pswu52r9.wl@omega.webmasters.gr.jp>
From: GOTO Masanori <gotom@debian.or.jp>
To: "Kevin Stewart" <kevins@netgate.net.nz>,
	224856-done@bugs.debian.org
Subject: Re: Bug#224856: getlogin returns at best null at worst random results
In-Reply-To: <81n01k8hit.wl@omega.webmasters.gr.jp>
References: <000601c3c8d2$f9a12200$2a1625ca@SKAVIN>
	<81n01k8hit.wl@omega.webmasters.gr.jp>
User-Agent: Wanderlust/2.9.9 (Unchained Melody) SEMI/1.14.3 (Ushinoya)
 FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.2
 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya")
Content-Type: text/plain; charset=US-ASCII
Delivered-To: 224856-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

At Wed, 28 Jul 2004 21:04:26 +0900,
GOTO Masanori wrote:
> At Tue, 23 Dec 2003 10:31:29 +1300,
> Kevin Stewart wrote:
> > Package: libc6-dev
> > Version: 2.3.2-9
> >  
> > Using this perl script and c code pair getlogin will often randomly return
> > another users name or null
> 
> Is this bug still alive in the latest 2.3.2.ds1-13?  I couldn't
> reappear it.  So I tagged this bug as unreproducible.  Could you test
> it again?  If you have no objection, I'll close this bug.

No reply - I think this bug is fixed.  I've closed it.  Kevin, if you
see this bug again, please let us know and reopen this bug with the
detailed information.

Regards,
-- gotom



Reply to: