Patch #1L to Arc v5.21L

egray at fthood.UUCP egray at fthood.UUCP
Tue Feb 7 07:17:00 AEST 1989


This is patch #1L to the Arc v5.21L distribution package.  Since this is
an *unofficial* patch, I've numbered the patch 1L ('L' for local).

Just so you don't get confused, here is a history of Arc v5.21

	Arc v5.21	posted to comp.sources.unix by Howard Chu
	Patch.1		official patch posted to comp.sources.bugs
	Patch.1B	official patch posted to comp.sources.bugs
	Patch.2		official patch posted to comp.sources.bugs
	Patch.2B	official patch posted to comp.sources.bugs
	Patch.3		official patch posted to comp.sources.bugs
	Arc v5.21L	my hacked version posted to unix-pc.sources
			which included all previous patches
	Patch.1L	patch #1 to my version.

You may have noticed a flurry of activity on my part...  I've been
posting source (and patches to source) almost every day for about a
week.  Well, I'm sorry to say, I'm about to leave the fold...  I've
bought a 386 box and I'm selling my 7300.

So, it's gonna good bye... sniff, sniff :-(

Emmet P. Gray				US Army, HQ III Corps & Fort Hood
...!uunet!uiucuxc!fthood!egray		Attn: AFZF-DE-ENV
					Directorate of Engineering & Housing
					Environmental Management Office
					Fort Hood, TX 76544-5057

-------------------------------------------------------------------------------
*** old/arcmisc.c	Tue Dec  6 09:06:28 1988
--- arcmisc.c	Mon Feb  6 09:15:48 1989
***************
*** 342,345
   * Filename match - here, * matches everything 
   */
  
  int

--- 342,350 -----
   * Filename match - here, * matches everything 
   */
+ #ifdef MAXNAMLEN
+ #define NAME_LEN MAXNAMLEN
+ #else /* MAXNAMLEN */
+ #define NAME_LEN DIRSIZ
+ #endif /* MAXNAMLEN */
  
  int
***************
*** 347,351
  	struct DIRECT  *direntry;
  {
! 	char           *string;
  
  	string = direntry->d_name;

--- 352,356 -----
  	struct DIRECT  *direntry;
  {
! 	char           string[NAME_LEN+1], *strncpy();
  
  	strncpy(string, direntry->d_name, NAME_LEN);
***************
*** 349,353
  	char           *string;
  
! 	string = direntry->d_name;
  
  	if (!strcmp(pattern, "") || !strcmp(pattern, "*.*") || !strcmp(pattern, "*"))

--- 354,359 -----
  	char           string[NAME_LEN+1], *strncpy();
  
! 	strncpy(string, direntry->d_name, NAME_LEN);
! 	string[NAME_LEN] = '\0';
  
  	if (!strcmp(pattern, "") || !strcmp(pattern, "*.*") || !strcmp(pattern, "*"))



More information about the Unix-pc.sources mailing list