Bug 15371

Summary: keyinfo doesn't work without suidperl
Product: Base System Reporter: j <j>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.3-RELEASE   
Hardware: Any   
OS: Any   

Description j 1999-12-09 12:00:01 UTC
if suidperl is not buit, keyinfo is not work(similar this is only one programme whitch requires suidperl)

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;
}
---
How-To-Repeat: type: keyinfo
Comment 1 Johan Karlsson freebsd_committer freebsd_triage 2000-08-18 14:17:24 UTC
State Changed
From-To: open->closed

Originator asked for this to be closed on freebsd-current. 

----- 
Date: Fri, 18 Aug 2000 17:06:33 +0400 (MSD) (15:06 CEST)