home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / utils / bug / 2275 < prev    next >
Encoding:
Text File  |  1992-12-27  |  1.8 KB  |  67 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ai.mit.edu!gnulists
  3. From: gnulists@ai.mit.edu
  4. Subject: (none)
  5. Message-ID: <9212280345.AA09454@news.cis.ohio-state.edu>
  6. Sender: daemon@cis.ohio-state.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Sun, 27 Dec 1992 17:45:17 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 54
  12.  
  13. tar 1.11.1 has an annoying habit of printing out a number instead of a name
  14. if it can't find the directory to untar into...
  15.  
  16. Here's a patch: (I wish everything was this simple!)
  17.  
  18. leisner@annapurna$ !rcsdiff
  19. rcsdiff -c tar.c
  20. ===================================================================
  21. RCS file: tar.c,v
  22. retrieving revision 1.1
  23. diff -c -r1.1 tar.c
  24. *** 1.1 1992/12/27 23:55:25
  25. --- tar.c       1992/12/28 00:07:12
  26. ***************
  27. *** 433,439 ****
  28.   #if 0
  29.                 case 'C':
  30.                         if(chdir(optarg)<0)
  31. !                               msg_perror("Can't change directory to %d",optarg);
  32.                         break;
  33.   #endif
  34.   
  35. --- 433,439 ----
  36.   #if 0
  37.                 case 'C':
  38.                         if(chdir(optarg)<0)
  39. !                               msg_perror("Can't change directory to %s",optarg);
  40.                         break;
  41.   #endif
  42.   
  43. ***************
  44. *** 1051,1057 ****
  45.         if (nlp->fake)
  46.           {
  47.             if (nlp->change_dir && chdir (nlp->change_dir))
  48. !             msg_perror ("Can't change to directory %d", nlp->change_dir);
  49.             namelist = 0;
  50.             return 1;
  51.           }
  52. --- 1051,1057 ----
  53.         if (nlp->fake)
  54.           {
  55.             if (nlp->change_dir && chdir (nlp->change_dir))
  56. !             msg_perror ("Can't change to directory %s", nlp->change_dir);
  57.             namelist = 0;
  58.             return 1;
  59.           }
  60.  
  61.  
  62. --
  63. marty
  64. leisner.henr801c@xerox.com  leisner@eso.mc.xerox.com
  65. Member of the League for Programming Freedom
  66.  
  67.