From owner-freebsd-ports Wed Oct 25 01:07:11 1995 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id BAA03411 for ports-outgoing; Wed, 25 Oct 1995 01:07:11 -0700 Received: from jhome.DIALix.COM (root@jhome.DIALix.COM [192.203.228.69]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id BAA03149 for ; Wed, 25 Oct 1995 01:01:36 -0700 Received: (from peter@localhost) by jhome.DIALix.COM (8.6.12/8.6.9) id PAA21715; Wed, 25 Oct 1995 15:59:18 +0800 Date: Wed, 25 Oct 1995 15:59:15 +0800 (WST) From: Peter Wemm To: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= cc: ports@freebsd.org Subject: Re: urgent bugfix for "screen". In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-ports@freebsd.org Precedence: bulk On Wed, 25 Oct 1995, =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= wrote: > In message > Peter Wemm writes: > > >#ifdef PASSWORD > >#include /* for _PASSWORD_LEN */ > >#endif > >#include "config.h" > >.... > >#ifndef _PASSWORD_LEN > >#define _PASSWORD_LEN 30 > >#endif > >char Password[_PASSWORD_LEN]; > > >This is wrong on two counts.. All the MD5 passwords I've seen were > >LONGER than 30 characters (34 or 35 I think), and config.h is where > >"PASSWORD" is defined! - meaning that the system include file is > >never #included (the system _PASSWORD_LEN is 128 BTW) because "PASSWORD" > >is not defined yet. > > You need to switch two lines instead, i.e. > > #include "config.h" > #ifdef PASSWORD > #include /* for _PASSWORD_LEN */ > #endif > > it is better way. I know.. that's what I sent in. I was commenting on the original file which was backwards, and appended my replacement patch-ac file onto the end of the message, because a diff of a diff is nearly impossible to read... -Peter