From owner-freebsd-bugs Thu Dec 9 4: 0:15 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 012FC15615 for ; Thu, 9 Dec 1999 04:00:13 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id EAA56887; Thu, 9 Dec 1999 04:00:07 -0800 (PST) (envelope-from gnats@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 To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: bin/15371: keyinfo doesn't work without suidperl Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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 #include #include #include 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