NetBSD Problem Report #266
From gnats Fri May 27 05:39:57 1994
Received: from wipux2.wifo.uni-mannheim.de (wipux2.wifo.uni-mannheim.de [134.155.59.2]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id FAA08429 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Fri, 27 May 1994 05:39:44 -0700
Message-Id: <199405271248.OAA00903@wipux2.wifo.uni-mannheim.de>
Date: Fri, 27 May 1994 14:48:19 +0200
From: andrew@wipux2.wifo.uni-mannheim.de (Andrew Wheadon)
Reply-To: andrew@wipux2.wifo.uni-mannheim.de
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: skeyinit fails with long hostnames.
X-Send-Pr-Version: 3.2
>Number: 266
>Category: bin
>Synopsis: skeyinit.c faulty.
>Confidential: no
>Severity: critical
>Priority: low
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 27 05:50:03 +0000 1994
>Closed-Date: Sun May 29 23:40:19 +0000 1994
>Last-Modified:
>Originator: Andrew Wheadon
>Release:
>Organization:
Uni Mannheim
>Environment:
486/66dx2, NetBSD-current, everything compiled today 27.5
System: NetBSD wipux2 0.9B NetBSD 0.9B (WIPUX) #0: Fri May 27 12:04:34 MET DST 1994 toor@wipux2.wifo.uni-mannheim.de:/src/src/sys/arch/i386/compile/WIPUX i386
>Description:
skeyinit fails in line 46 of skeyinit.c
if (gethostname(defaultseed,sizeof(defaultseed)) < 0)
exit(-1)
due to the usual hostname being longer than 17 chars. (defaultseed[17]);
(mine is 28 yours is 25 chars long)
>How-To-Repeat:
hostname set.average.length.hostname
skeyinit
(no output)
>Fix:
hostname short.name
or
change code to use first 17 chars of hostname
or (maybe)
set defaultseed to 255 chars.
or
...
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: jtc
State-Changed-When: Sun May 29 23:40:19 1994
State-Changed-Why:
Fixed by Theo.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.