🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1162

(none)

#1162
From: gnulists
Date: Sun, 27 Dec 1992 17:45
53 lines
1944 bytes
tar 1.11.1 has an annoying habit of printing out a number instead of a name
if it can't find the directory to untar into...

Here's a patch: (I wish everything was this simple!)

leisner@annapurna$ !rcsdiff
rcsdiff -c tar.c
===================================================================
RCS file: tar.c,v
retrieving revision 1.1
diff -c -r1.1 tar.c
*** 1.1 1992/12/27 23:55:25
--- tar.c       1992/12/28 00:07:12
***************
*** 433,439 ****
  #if 0
                case 'C':
                        if(chdir(optarg)<0)
!                               msg_perror("Can't change directory to %d",optarg);
                        break;
  #endif
  
--- 433,439 ----
  #if 0
                case 'C':
                        if(chdir(optarg)<0)
!                               msg_perror("Can't change directory to %s",optarg);
                        break;
  #endif
  
***************
*** 1051,1057 ****
        if (nlp->fake)
          {
            if (nlp->change_dir && chdir (nlp->change_dir))
!             msg_perror ("Can't change to directory %d", nlp->change_dir);
            namelist = 0;
            return 1;
          }
--- 1051,1057 ----
        if (nlp->fake)
          {
            if (nlp->change_dir && chdir (nlp->change_dir))
!             msg_perror ("Can't change to directory %s", nlp->change_dir);
            namelist = 0;
            return 1;
          }


--
marty
leisner.henr801c@xerox.com  leisner@eso.mc.xerox.com
Member of the League for Programming Freedom
Technical Details
Message-ID: <9212280345.AA09454@news.cis.ohio-state.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ai.mit.edu!gnulists

Show 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!ai.mit.edu!gnulists
From: gnulists@ai.mit.edu
Subject: (none)
Message-ID: <9212280345.AA09454@news.cis.ohio-state.edu>
Sender: daemon@cis.ohio-state.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sun, 27 Dec 1992 17:45:17 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 54