From kws@kstreet.interlog.com  Tue Mar  3 18:59:35 1998
Received: from kstreet.interlog.com (kws@kstreet.interlog.com [198.53.146.171])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA01952
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 3 Mar 1998 18:59:31 -0800 (PST)
          (envelope-from kws@kstreet.interlog.com)
Received: (from kws@localhost)
	by kstreet.interlog.com (8.8.8/8.8.8) id VAA07020;
	Tue, 3 Mar 1998 21:59:20 -0500 (EST)
	(envelope-from kws)
Message-Id: <199803040259.VAA07020@kstreet.interlog.com>
Date: Tue, 3 Mar 1998 21:59:20 -0500 (EST)
From: Kevin Street <street@iName.com>
Reply-To: Kevin Street <street@iName.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: kinit exits if no user name specified 
X-Send-Pr-Version: 3.2

>Number:         5912
>Category:       bin
>Synopsis:       kinit exits if no user name specified
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar  3 19:00:01 PST 1998
>Closed-Date:    Wed Jun 13 19:25:00 PDT 2001
>Last-Modified:  Wed Jun 13 19:26:15 PDT 2001
>Originator:     Kevin Street
>Release:        FreeBSD 2.2.5-STABLE i386
>Organization:
>Environment:

	FreeBSD cvsup from Feb 28 1998

>Description:

	Entering "kinit" used to default to obtaining a Kerberos
	ticket for the current user.  The new manual entry says
	it will prompt for the user id.  The current version of 
	the program does not do either, it just exits.

	It appears from the code that it should try to default to
	the current user, see patch below for the fix.

	The kinit man page has two errors - it says that kinit will
	prompt for an id if no options are supplied, and the synopsis
	does not mention that you can supply an id on the command line. 

>How-To-Repeat:

	type: kinit

>Fix:
	
*** /usr/src/crypto/kerberosIV/kuser/kinit.c	Mon Feb 16 07:36:49 1998
--- kinit.c	Tue Mar  3 20:40:08 1998
***************
*** 137,143 ****
  		    } else
  			strncpy(aname, pwd->pw_name, sizeof(aname));
  	    }
! 	    if (!*name)
  	        return 0;
  	    if (!k_isname(aname)) {
  	        errx(1, "%s", "bad Kerberos name format");
--- 137,143 ----
  		    } else
  			strncpy(aname, pwd->pw_name, sizeof(aname));
  	    }
! 	    if (!*aname)
  	        return 0;
  	    if (!k_isname(aname)) {
  	        errx(1, "%s", "bad Kerberos name format");

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: steve 
Responsible-Changed-When: Sat Mar 7 12:57:09 PST 1998 
Responsible-Changed-Why:  
Put this in the bin category (although we really need 
something like a crypto catgeory). 
State-Changed-From-To: open->closed 
State-Changed-By: mikeh 
State-Changed-When: Wed Jun 13 19:25:00 PDT 2001 
State-Changed-Why:  
This appears to have been fixed by rev 1.3 of kinit.c. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=5912 
>Unformatted:
