*BSD News Article 8579


Return to BSD News archive

Xref: sserve comp.unix.bsd:8635 alt.security.pgp:76
Newsgroups: comp.unix.bsd,alt.security.pgp
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!agate!ames!network.ucsd.edu!qualcom.qualcomm.com!servo.qualcomm.com!karn
From: karn@servo.qualcomm.com (Phil Karn)
Subject: Re: [386bsd] right patch for pgp port
Message-ID: <1992Dec7.060652.1288@qualcomm.com>
Sender: news@qualcomm.com
Nntp-Posting-Host: servo.qualcomm.com
Organization: Very little
References: <LHNHd8h0MT@astral.msk.su>
Date: Mon, 7 Dec 1992 06:06:52 GMT
Lines: 17


PGP also triggers a bug in the fseek() library function that 386BSD
inherits from NET-2. Here's the diff to
/usr/src/lib/libc/stdio/fseek.c, courtesy of Branko Lankester:

*** fseek.c.orig	Tue May  7 13:43:56 1991
--- fseek.c	Mon Nov 23 23:44:37 1992
***************
*** 215,220 ****
--- 215,221 ----
  	if ((*seekfn)(fp->_cookie, curoff, SEEK_SET) == POS_ERR)
  		goto dumb;
  	fp->_r = 0;
+  	fp->_p = fp->_bf._base;
  	if (HASUB(fp))
  		FREEUB(fp);
  	fp->_flags &= ~__SEOF;