🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #191

UUCP doesn't properly negotiate MaxGrade with some HDB UUCPs

#191
From: Guy Harris
Date: Thu, 23 Aug 1990 18:29
44 lines
2109 bytes
Subject: UUCP doesn't properly negotiate MaxGrade with some HDB UUCPs
Index: usr.bin 4.3BSD-tahoe

Description:
	While the HDB shipped by AT&T as part of S5R3.x doesn't support
	the "MaxGrade" mechanism - that is, the mechanism that lets you
	specify, in the "Systems"/"L.sys" file, the maximum grade of
	work to be transferred at particular times of the day - Peter
	Honeyman has modified HDB to do so, and some vendors (including
	Sun) have picked up these patches.

	Two UUCPs negotiate the MaxGrade by sending their idea of the
	MaxGrade in the initial connection message.  The 4.3 UUCP sends
	it with both a "-p" and a "-vgrade=" flag; Peter's patches to
	HDB send only the "-vgrade=" flag.

	The 4.3 UUCP doesn't properly handle the "-vgrade=" flag, so
	while it can properly negotiate MaxGrade with other 4.3 UUCPs
	(since it does handle the "-p" flag which the 4.3 UUCP sends),
	it can't properly negotiate it with HDB with Peter's patches.
Repeat-By:
	Inspect the code.  (There is a scenario that will reproduce it,
	but I forget precisely what it is and I'm too lazy to
	reconstruct it.)
Fix:
*** cico.c.orig	Thu Aug 23 11:17:34 1990
--- cico.c	Thu Aug 23 11:18:51 1990
***************
*** 446,452 ****
  				DEBUG(4, "MaxGrade set to %c\n", MaxGrade);
  				break;
  			case 'v':
! 				if (strncmp(p, "grade", 5) == 0) {
  					p += 6;
  					MaxGrade = DefMaxGrade = *p++;
  					DEBUG(4, "MaxGrade set to %c\n", MaxGrade);
--- 446,452 ----
  				DEBUG(4, "MaxGrade set to %c\n", MaxGrade);
  				break;
  			case 'v':
! 				if (strncmp(++p, "grade=", 6) == 0) {
  					p += 6;
  					MaxGrade = DefMaxGrade = *p++;
  					DEBUG(4, "MaxGrade set to %c\n", MaxGrade);
Technical Details
Message-ID: <3949@auspex.auspex.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!uunet!auspex!guy

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!uunet!auspex!guy
From: guy@auspex.auspex.com (Guy Harris)
Newsgroups: comp.bugs.4bsd
Subject: UUCP doesn't properly negotiate MaxGrade with some HDB UUCPs
Message-ID: <3949@auspex.auspex.com>
Date: 23 Aug 90 18:29:33 GMT
Organization: Auspex Systems, Santa Clara
Lines: 44