Article View: gnu.utils.bug
Article #786missing curly braces in tar-1.11.
From: J.T. Conklin
Date: Thu, 10 Sep 1992 04:44
Date: Thu, 10 Sep 1992 04:44
50 lines
1878 bytes
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();
Technical Details
Message-ID:
<9209101844.AA22960@rangoon.gain.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!gain.COM!jtcShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!gain.COM!jtc From: jtc@gain.COM (J.T. Conklin) Subject: missing curly braces in tar-1.11. Message-ID: <9209101844.AA22960@rangoon.gain.com> Sender: gnulists@ai.mit.edu Reply-To: jtc@gain.com Organization: GAIN Technology Inc., Palo Alto, CA Distribution: gnu Date: Thu, 10 Sep 1992 04:44:48 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 53