Date: Thu, 9 Dec 1999 03:57:18 -0800 (PST) From: j@avias.com To: freebsd-gnats-submit@freebsd.org Subject: bin/15371: keyinfo doesn't work without suidperl Message-ID: <19991209115718.BCF91155AF@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 15371 >Category: bin >Synopsis: keyinfo doesn't work without suidperl >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 9 04:00:01 PST 1999 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991209115718.BCF91155AF>