NetBSD Problem Report #28495
From www@netbsd.org Wed Dec 1 11:42:30 2004
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
id 68D7E2525ED; Wed, 1 Dec 2004 11:42:30 +0000 (UTC)
Message-Id: <20041201114230.68D7E2525ED@narn.netbsd.org>
Date: Wed, 1 Dec 2004 11:42:30 +0000 (UTC)
From: jeffi@rcn.com
Reply-To: jeffi@rcn.com
To: gnats-bugs@netbsd.org
Subject: skey's -x output does not match described behavior
X-Send-Pr-Version: www-1.0
>Number: 28495
>Category: bin
>Synopsis: skey's -x output does not match described behavior
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 01 11:45:00 +0000 2004
>Closed-Date: Mon Dec 11 02:09:06 +0000 2023
>Last-Modified: Mon Dec 11 02:09:06 +0000 2023
>Originator: Jeff Ito
>Release: NetBSD 2.99.10
>Organization:
>Environment:
NetBSD 2.99.10
>Description:
skey(1) suggests that the -x argument "list in hexadecimal instead of words". In fact it lists hex in addition to the words. This is contradictory to skeyinit's -x output, as well.
>How-To-Repeat:
{2180} skeyinit -x
...
Next login password: A4E7 C328 4A5C 6C63
{2182} skey -x -n 3 98 tesd0059
...
96: LOGE FUSE TUM CREW SOY CHOW B190 F50A 3633 DCCC
97: MEAL BOAT ETC RAM AIRY STAG B92B 4848 1B14 A3C6
98: ELY NOEL BITE DUTY AIM CRY 1198 A162 3C70 1218
>Fix:
Modify the man page to accurately describe the output (and ideally keep skeyinit's in sync)
or, modify skey's -x output
Index: skey.c
===================================================================
RCS file: /export/cvs/netbsd/src/usr.bin/skey/skey.c,v
retrieving revision 1.17
diff -u -r1.17 skey.c
--- skey.c 1 Nov 2004 21:52:07 -0000 1.17
+++ skey.c 24 Nov 2004 14:36:28 -0000
@@ -140,10 +140,10 @@
for (i = 0; i <= n - cnt; i++)
f(key);
for (; i <= n; i++) {
- (void)printf("%3d: %-29s", i, btoe(buf, key));
if (hexmode)
- (void)printf("\t%s", put8(buf, key));
- puts("");
+ (void)printf("%3d: %-29s\n", i, put8(buf, key));
+ else
+ (void)printf("%3d: %-29s\n", i, btoe(buf, key));
f(key);
}
}
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Mon, 11 Dec 2023 02:09:06 +0000
State-Changed-Why:
man page fixed
(I guess we can pull this up if anyone still cares about skey)
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.