🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by J.T. Conklin Thu, 10 Sep 1992 04:44
missing curly braces in tar-1.11.
#786
Author: J.T. Conklin
Date: Thu, 10 Sep 1992 04:44
50 lines
1878 bytes
Curly braces are missing around a two statement if clause in both
gnu.c and tar.c.

*** OLD/gnu.c	Wed Sep  9 18:24:15 1992
--- gnu.c	Wed Sep  9 18:24:45 1992
***************
*** 126,134 ****
  	time(&this_time);
  	if(gnu_dumpfile[0]!='/') {
  #if defined(__MSDOS__) || defined(USG) || defined(_POSIX_VERSION)
! 			if(!getcwd(path,PATH_MAX))
  				msg("Couldn't get current directory.");
  				exit(EX_SYSTEM);
  #else
  			char *getwd();

--- 126,135 ----
  	time(&this_time);
  	if(gnu_dumpfile[0]!='/') {
  #if defined(__MSDOS__) || defined(USG) || defined(_POSIX_VERSION)
! 			if(!getcwd(path,PATH_MAX)) {
  				msg("Couldn't get current directory.");
  				exit(EX_SYSTEM);
+ 			}
  #else
  			char *getwd();

*** OLD/tar.c	Wed Sep  9 18:24:15 1992
--- tar.c	Wed Sep  9 18:24:30 1992
***************
*** 973,981 ****
  		if(chdir_name[0]!='/') {
  			char *path = ck_malloc(PATH_MAX);
  #if defined(__MSDOS__) || defined(USG) || defined(_POSIX_VERSION)
! 			if(!getcwd(path,PATH_MAX))
  				msg("Couldn't get current directory.");
  				exit(EX_SYSTEM);
  #else
  			char *getwd();

--- 973,982 ----
  		if(chdir_name[0]!='/') {
  			char *path = ck_malloc(PATH_MAX);
  #if defined(__MSDOS__) || defined(USG) || defined(_POSIX_VERSION)
! 			if(!getcwd(path,PATH_MAX)) {
  				msg("Couldn't get current directory.");
  				exit(EX_SYSTEM);
+ 			}
  #else
  			char *getwd();
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads