home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1218 < prev    next >
Encoding:
Internet Message Format  |  1990-12-28  |  2.2 KB

  1. From: wht@n4hgf.uucp (Warren Tucker)
  2. Newsgroups: alt.sources
  3. Subject: shar321/patch01 ... corrected
  4.           Like, '=' should have been '==' on line 120
  5. Message-ID: <676@n4hgf.uucp>
  6. Date: 20 Apr 90 18:03:21 GMT
  7. References: <659@n4hgf.uucp>
  8. Sender: wht@n4hgf.uucp
  9. Organization: Amateur Radio Station N4HGF, Mountain Park, GA
  10. Lines: 55
  11. X-Checksum-Snefru: a80d4a9c fa16a2e1 3238de53 3c589313
  12.  
  13. Submitted-by: wht%n4hgf@gatech.edu
  14. Archive-name: shar321/patch01
  15.  
  16. This ought to do it for a while.  I'm sure the net has more
  17. interesting things to do than belabor this.  I got 31 requests
  18. for shar, which is the largest amount of mail I've ever received
  19. on a single subject.  So, if you are interested in shars, e-mail me
  20. and I'll managle/manage a mailing list.
  21.  
  22. >Subject: bug in shar321
  23. >Date: Fri, 20 Apr 90 10:29:40 -0100
  24. >From: Colas Nahaboo <gatech!mailrus!uunet!avahi.inria.fr!colas>
  25. >Status: ORS
  26. >
  27. >unshar need to check if the file argument is not an absolute path: otherwise,
  28. >when saying, in directory /foo: "unshar /bar/gee.shar", it will try to open the
  29. >file /foo/bar/gee.shar
  30. >
  31. >This patch corrects it.
  32.  
  33. avahi$ diff -c unshar.c.orig unshar.c
  34. *** unshar.c.orig       Fri Apr 20 09:23:10 1990
  35. --- unshar.c    Fri Apr 20 09:25:07 1990
  36. ***************
  37. *** 117,125
  38.       {
  39.           for(i= optind; i < argc; ++i)
  40.           {
  41. !             strcpy(s1024,argvdir);
  42. !             strcat(s1024,"/");
  43. !             strcat(s1024,argv[i]);
  44.               if(!(in = fopen(s1024,"r")))
  45.               {
  46.                   perror(s1024);
  47.  
  48. --- 117,129 -----
  49.       {
  50.           for(i= optind; i < argc; ++i)
  51.           {
  52. !             if(argv[i][0] == '/') {
  53. !                 strcpy(s1024,argv[i]);
  54. !             } else {
  55. !                 strcpy(s1024,argvdir);
  56. !                 strcat(s1024,"/");
  57. !                 strcat(s1024,argv[i]);
  58. !             }
  59.               if(!(in = fopen(s1024,"r")))
  60.               {
  61.                   perror(s1024);
  62.  
  63. Colas Nahaboo, BULL Research FRANCE -- Koala Project -- GWM X11 Window Manager
  64. colas@mirsa.inria.fr            Phone: (33) 93.65.77.70, Fax: (33) 93 65 77 66
  65. INRIA - Sophia Antipolis, 2004, rte des Lucioles, 06565 Valbonne Cedex, FRANCE
  66.  
  67. ------------------------------------------------------------------
  68. Warren Tucker, TuckerWare gatech!n4hgf!wht or wht%n4hgf@gatech.edu
  69. McCarthyism did to cinema what ANSI did to C,  cast a great number
  70. of characters into the void.
  71.