From hartmans@MIT.EDU Fri Nov 22 18:40:13 1996
Received: from MIT.EDU (SOUTH-STATION-ANNEX.MIT.EDU [18.72.1.2]) by rt-11.MIT.EDU (8.7.5/8.7.3) with SMTP id SAA13829 for <bugs@RT-11.MIT.EDU>; Fri, 22 Nov 1996 18:40:13 -0500
Received: from STARKILLER.MIT.EDU by MIT.EDU with SMTP
id AA17847; Fri, 22 Nov 96 18:40:12 EST
Received: by starkiller.MIT.EDU (5.x/4.7) id AA29895; Fri, 22 Nov 1996 18:40:12 -0500
Message-Id: <9611222340.AA29895@starkiller.MIT.EDU>
Date: Fri, 22 Nov 1996 18:40:12 -0500
From: hartmans@MIT.EDU
Reply-To: hartmans@MIT.EDU
To: krb5-bugs@MIT.EDU
Subject: kpasswd casts getuid() to int
X-Send-Pr-Version: 3.99
System: SunOS starkiller 5.4 Generic_101945-37 sun4m sparc
When trying to find the user in the passwd file, kpasswd casts the
return of getuid() to int in a call to getpwuid(); this is wrong.
Let the prototypes deal. You don't need a cast on most operating
systems, and if you find one that gives an error, we can special case.
State-Changed-From-To: open-closed
State-Changed-By: hartmans
State-Changed-When: Fri Nov 22 19:10:34 1996
State-Changed-Why:
It turns out it is the linking against libdb that was causing
the problem; since we no longer build passwd.local, linking libdb.a is
not needed in this dir.
Received: from MIT.EDU (SOUTH-STATION-ANNEX.MIT.EDU [18.72.1.2]) by rt-11.MIT.EDU (8.7.5/8.7.3) with SMTP id SAA13829 for <bugs@RT-11.MIT.EDU>; Fri, 22 Nov 1996 18:40:13 -0500
Received: from STARKILLER.MIT.EDU by MIT.EDU with SMTP
id AA17847; Fri, 22 Nov 96 18:40:12 EST
Received: by starkiller.MIT.EDU (5.x/4.7) id AA29895; Fri, 22 Nov 1996 18:40:12 -0500
Message-Id: <9611222340.AA29895@starkiller.MIT.EDU>
Date: Fri, 22 Nov 1996 18:40:12 -0500
From: hartmans@MIT.EDU
Reply-To: hartmans@MIT.EDU
To: krb5-bugs@MIT.EDU
Subject: kpasswd casts getuid() to int
X-Send-Pr-Version: 3.99
Show quoted text
>Number: 228
>Category: krb5-admin
>Synopsis: kpasswd casts getuid() to int
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bjaspan
>State: closed
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Fri Nov 22 18:41:00 EST 1996
>Last-Modified: Fri Nov 22 19:11:31 EST 1996
>Originator: Sam Hartman
>Organization:
mit>Category: krb5-admin
>Synopsis: kpasswd casts getuid() to int
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bjaspan
>State: closed
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Fri Nov 22 18:41:00 EST 1996
>Last-Modified: Fri Nov 22 19:11:31 EST 1996
>Originator: Sam Hartman
>Organization:
Show quoted text
>Release: 1.0-development
>Environment:
>Environment:
System: SunOS starkiller 5.4 Generic_101945-37 sun4m sparc
Show quoted text
>Description:
When trying to find the user in the passwd file, kpasswd casts the
return of getuid() to int in a call to getpwuid(); this is wrong.
Show quoted text
>How-To-Repeat:
Show quoted text
>Fix:
Let the prototypes deal. You don't need a cast on most operating
systems, and if you find one that gives an error, we can special case.
Show quoted text
>Audit-Trail:
State-Changed-From-To: open-closed
State-Changed-By: hartmans
State-Changed-When: Fri Nov 22 19:10:34 1996
State-Changed-Why:
It turns out it is the linking against libdb that was causing
the problem; since we no longer build passwd.local, linking libdb.a is
not needed in this dir.
Show quoted text
>Unformatted: