delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/12/09:01:38

From: "Juan Manuel Guerrero, Student, FB05" <ST001906 AT HRZ1 DOT HRZ DOT TU-Darmstadt DOT De>
Organization: Darmstadt University of Technology
To: djgpp AT delorie DOT com
Date: Tue, 12 Oct 1999 10:17:52 +0200
Subject: djlsr203 (990819)
X-mailer: Pegasus Mail for Windows (v2.54DE)
Message-ID: <84E1E9836AE@HRZ1.hrz.tu-darmstadt.de>
Reply-To: djgpp AT delorie DOT com

i would like to report to minor bugs in djlsr203 (990819).
The first concern file: sys/config.h.
The second concern the djtar program.
When decompressing a tgz-file with an entry of the form:
libg++-1.2.3/libg++/readme.g++
the program performs the substitution:
++  -->  plus.
It should be clear that this substitution must be applied to all 
occuriences of "++" and not only to the first as the program does.

Patch follows.

*** djtar.org	Thu Jun  3 13:27:42 1999
--- djtar.c	Mon Oct 11 21:03:04 1999
*************** get_new_name(char *name_to_change, int *
*** 314,326 ****
        {
  	char *plus = strstr(changed_name, "++"), *plus2;
  	if (plus)
  	{
  	  strcpy(new, changed_name);
! 	  plus2 = strstr(new, "++");
! 	  strcpy(plus2, "plus");
! 	  strcpy(plus2+4, plus+2);
  	  fprintf(log_out, "[ changing %s to %s ]\n", changed_name, new);
  	}
  	else
  	{
  	  strcpy(new, changed_name);
--- 314,331 ----
        {
  	char *plus = strstr(changed_name, "++"), *plus2;
  	if (plus)
  	{
  	  strcpy(new, changed_name);
! 	  while (plus)
! 	  {
! 	    plus2 = strstr(new, "++");
! 	    strcpy(plus2, "plus");
! 	    plus += 2;
! 	    strcpy(plus2+4, plus);
! 	    plus = strstr(plus, "++");
! 	  }
  	  fprintf(log_out, "[ changing %s to %s ]\n", changed_name, new);
  	}
  	else
  	{
  	  strcpy(new, changed_name);

*** config.h.org	Wed Aug  4 15:55:00 1999
--- config.h	Mon Oct 11 14:56:52 1999
***************
*** 337,347 ****
  #undef  HAVE_GETDTABLESIZE
  #define HAVE_GETDTABLESIZE  1
  
  /* Define if you have the getgroups function.  */
  #undef  HAVE_GETGROUPS
! #define HAVE_GETGROUPS
  
  /* Define if you have gethostname() function in your library.  */
  #undef  HAVE_GETHOSTNAME
  #define HAVE_GETHOSTNAME  1
  
--- 337,347 ----
  #undef  HAVE_GETDTABLESIZE
  #define HAVE_GETDTABLESIZE  1
  
  /* Define if you have the getgroups function.  */
  #undef  HAVE_GETGROUPS
! #define HAVE_GETGROUPS  1
  
  /* Define if you have gethostname() function in your library.  */
  #undef  HAVE_GETHOSTNAME
  #define HAVE_GETHOSTNAME  1
  

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019