[3173] in Release_Engineering

home help back first fref pref prev next nref lref last post

bug-fix for install

daemon@ATHENA.MIT.EDU (Richard Basch)
Fri Mar 25 11:12:05 1994

Date: Fri, 25 Mar 1994 11:12:00 -0500
To: rel-eng@MIT.EDU, dcns-dev-np@MIT.EDU
From: "Richard Basch" <basch@MIT.EDU>


Fixes netprob #1573

-R

*** /tmp/,RCSt1bdkAr5	Fri Mar 25 11:09:52 1994
--- util/pinstall/install.c	Fri Mar 25 11:09:07 1994
***************
*** 50,56 ****
  	perror(msg); \
  }
  
! #define MAXARGS	256
  
  #ifndef MAXBSIZE
  #define MAXBSIZE 10240
--- 50,56 ----
  	perror(msg); \
  }
  
! #define MAXARGS	1024
  
  #ifndef MAXBSIZE
  #define MAXBSIZE 10240
***************
*** 102,107 ****
--- 102,112 ----
  		while (*++inst_env && *inst_env != ' ' && *inst_env != '\t');
  		if (*inst_env)
  			*inst_env++ = '\0';
+ 	}
+ 
+ 	if (argc_extend + argc > MAXARGS) {
+ 		fprintf(stderr, "install: too many command-line arguments.\n");
+ 		exit(1);
  	}
  	
  	argc_extra = argc_extend;

home help back first fref pref prev next nref lref last post