🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #74901

CVS-1.0 on prep.ai.mit.edu is missing an official patch

#74901
From: Paul Eggert
Date: Thu, 17 Jan 1991 18:15
103 lines
3739 bytes
bill@camco.Celestial.COM (Bill Campbell) writes:

>I am trying to get cvs 1.0 running on my Xenix 2.3.3 system and
>haven't been able to find any information on the timelocal
>function in patch.c.

Campbell's problem is that pub/gnu/cvs-1.0.tar.Z on prep.ai.mit.edu is missing
the following official patch, which I got from uunet.uu.net in
comp.sources.unix/volume22/cvs-berliner/patch01.Z.  Could whoever maintains the
CVS prep archive fix this?


Subject:  v22i033:  Patch to Brian Berliner's CVS system, Patch1
Newsgroups: comp.sources.unix
Approved: rsalz@uunet.UU.NET
X-Checksum-Snefru: fbd558cb 89d41894 54bfd8cf 7782ddba

Submitted-by: Brian Berliner <berliner@sun.com>
Posting-number: Volume 22, Issue 33
Archive-name: cvs-berliner/patch1
Patch-To: volume22/cvs-berliner

This patch addresses a major portability bug and is very small.  It will
probably be the only patch I send out for this version of CVS.  The 2.0
release of CVS is almost complete, and I'll likely be sending that one to
you in a couple of months.

	-Brian
	berliner@sun.com

---------CUT-FOR-PATCH---------CUT-FOR-PATCH---------CUT-FOR-PATCH----------
This patch fixes a major portability bug in the 1.0 release of CVS.  Apply
the following patch with the "patch" command or by hand.  Also, my new email
address is:

	berliner@sun.com

Please direct all future inquiries about CVS to this address.

	-Brian

diff -c cvs/src/patch.c:1.5 cvs/src/patch.c:1.6
*** cvs/src/patch.c:1.5	Wed Feb 14 10:02:10 1990
--- cvs/src/patch.c	Wed Feb 14 10:02:10 1990
***************
*** 1,5 ****
  #ifndef lint
! static char rcsid[] = "$Id: patch.c,v 1.5 89/11/19 23:40:41 berliner Exp $";
  #endif !lint
  
  /*
--- 1,5 ----
  #ifndef lint
! static char rcsid[] = "$Id: patch.c,v 1.6 90/02/14 10:01:33 berliner Exp $";
  #endif !lint
  
  /*
***************
*** 22,28 ****
  #include <ctype.h>
  #include "cvs.h"
  
! extern time_t timelocal();
  
  extern char update_dir[];
  extern DBM *open_module();
--- 22,28 ----
  #include <ctype.h>
  #include "cvs.h"
  
! extern long maketime();
  
  extern char update_dir[];
  extern DBM *open_module();
***************
*** 380,391 ****
  		ret = 0;
  		*semi = '\0';
  		ftm = &tm;
! 		bzero((char *)ftm, sizeof(*ftm));
  		(void) sscanf(cp, DATEFORM, &ftm->tm_year, &ftm->tm_mon,
  			      &ftm->tm_mday, &ftm->tm_hour, &ftm->tm_min,
  			      &ftm->tm_sec);
  		ftm->tm_mon--;
! 		revdate = timelocal(ftm) - 1;
  		ftm = localtime(&revdate);
  		(void) sprintf(date, DATEFORM, ftm->tm_year, ftm->tm_mon+1,
  			       ftm->tm_mday, ftm->tm_hour, ftm->tm_min,
--- 380,391 ----
  		ret = 0;
  		*semi = '\0';
  		ftm = &tm;
! 		zaptime((int *)ftm);
  		(void) sscanf(cp, DATEFORM, &ftm->tm_year, &ftm->tm_mon,
  			      &ftm->tm_mday, &ftm->tm_hour, &ftm->tm_min,
  			      &ftm->tm_sec);
  		ftm->tm_mon--;
! 		revdate = (time_t)maketime(ftm) - 1;
  		ftm = localtime(&revdate);
  		(void) sprintf(date, DATEFORM, ftm->tm_year, ftm->tm_mon+1,
  			       ftm->tm_mday, ftm->tm_hour, ftm->tm_min,

exit 0 # Just in case...
Technical Details
Message-ID: <1991Jan17.181557.9992@twinsun.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!sun-barr!rutgers!ucla-cs!twinsun!eggert
References: <656@camco.Celestial.COM>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1025b4,c813976e8f1fae24
X-Google-Attributes: gid1025b4,public
X-Google-ArrivalTime: 1991-01-20 06:12:25 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!sun-barr!rutgers!ucla-cs!twinsun!eggert
From: eggert@twinsun.com (Paul Eggert)
Newsgroups: gnu.misc.discuss
Subject: CVS-1.0 on prep.ai.mit.edu is missing an official patch
Message-ID: <1991Jan17.181557.9992@twinsun.com>
Date: 17 Jan 91 18:15:57 GMT
References: <656@camco.Celestial.COM>
Sender: news@twinsun.com
Organization: Twin Sun, Inc
Lines: 103
Nntp-Posting-Host: ata