From nobody@FreeBSD.ORG  Thu Dec  9 03:57:18 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id BCF91155AF; Thu,  9 Dec 1999 03:57:18 -0800 (PST)
Message-Id: <19991209115718.BCF91155AF@hub.freebsd.org>
Date: Thu,  9 Dec 1999 03:57:18 -0800 (PST)
From: j@avias.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: keyinfo doesn't work without suidperl
X-Send-Pr-Version: www-1.0

>Number:         15371
>Category:       bin
>Synopsis:       keyinfo doesn't work without suidperl
>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:   Thu Dec  9 04:00:01 PST 1999
>Closed-Date:    Fri Aug 18 06:17:24 PDT 2000
>Last-Modified:  Fri Aug 18 06:19:04 PDT 2000
>Originator:     Juriy Goloveshkin
>Release:        FreeBSD 3.3-RELEASE i386
>Organization:
Juriy Goloveshkin
>Environment:
FreeBSD li.avias.local 3.3-RELEASE FreeBSD 3.3-RELEASE #6: Sun Nov 28 21:29:09 MSK 1999     juriy@
li.avias.local:/usr/local/home/juriy/src/PAO3/src/sys/compile/LI  i386
>Description:
if suidperl is not buit, keyinfo is not work(similar this is only one programme whitch requires suidperl)

>How-To-Repeat:
type: keyinfo
>Fix:
I offer to use c instead perl.
like this:
--- keyinfo.c ---
#include <unistd.h>
#include <stdio.h>
#include <skey.h>
#include <sys/param.h>

int
main(argc, argv)
	int             argc;
	char          **argv;
{
	struct passwd  *pw;
	struct skey     skey;
	pw = getpwuid(getuid());
	if (skeylookup(&skey, argc > 1 ? argv[1] : pw->pw_name) != 0)
		return 1;
	printf("%d %s\n", skey.n - 1, skey.seed);
	return 0;
}
---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: johan 
State-Changed-When: Fri Aug 18 06:17:24 PDT 2000 
State-Changed-Why:  
Originator asked for this to be closed on freebsd-current. 

----- 
Date: Fri, 18 Aug 2000 17:06:33 +0400 (MSD) (15:06 CEST) 
From: Juriy Goloveshkin <juriy@avias.com> 
To: freebsd-current@FreeBSD.ORG 
Subject: keyinfo... 

Hi all. 

1) somebody close bin/15371. I wrote to imp, but he kept silent.  
or I must send pr for close pr? 
----- 

http://www.freebsd.org/cgi/query-pr.cgi?pr=15371 
>Unformatted:
