home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sources / bugs / 243 < prev    next >
Encoding:
Text File  |  1992-09-15  |  2.2 KB  |  71 lines

  1. Newsgroups: comp.sources.bugs
  2. Path: sparky!uunet!gatech!concert!sas!mozart.unx.sas.com!foster!sherman
  3. From: sherman@unx.sas.com (Chris Sherman)
  4. Subject: Re: REPOST: patch 12u8 to patch, part 02 of 02
  5. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  6. Message-ID: <sherman.716613946@foster>
  7. Date: Wed, 16 Sep 1992 03:25:46 GMT
  8. References: <DJM.92Sep15160742@nutrimat.gnu.ai.mit.edu>
  9. Nntp-Posting-Host: foster.unx.sas.com
  10. Organization: SAS Institute Inc.
  11. Lines: 58
  12.  
  13.  
  14. The repost seems to have a problem too.  Here is the error I get:
  15.  
  16. |diff -C2 -N patch-2.0.12u7/util.c patch-2.0.12u8/util.c
  17. |*** patch-2.0.12u7/util.c      Mon Jul  6 15:25:27 1992
  18. |--- patch-2.0.12u8/util.c      Mon Sep 14 22:04:46 1992
  19. --------------------------
  20. Patching file util.c using Plan A...
  21. Hunk #1 succeeded at 5.
  22. Hunk #2 succeeded at 40.
  23. Hunk #3 succeeded at 55.
  24. Hunk #4 succeeded at 64.
  25. Hunk #5 succeeded at 76.
  26. Hunk #6 succeeded at 99.
  27. Hunk #7 succeeded at 105.
  28. Hunk #8 succeeded at 123.
  29. Hunk #9 succeeded at 129.
  30. Malformed patch at line 637: ;
  31.  
  32.  
  33. Line 637 is the one below that has just a ';' on the line...
  34. I'm guessing that I should delete that line, and the one below it,
  35. and everything will be cool...  Is this correct?
  36.  
  37.  
  38. ***************
  39. *** 136,146 ****
  40.       tofd = creat(to, 0666);
  41.       if (tofd < 0)
  42. !     fatal2("patch: can't create %s.\n", to);
  43.       fromfd = open(from, 0);
  44.       if (fromfd < 0)
  45. !     fatal2("patch: internal error, can't reopen %s\n", from);
  46.       while ((i=read(fromfd, buf, sizeof buf)) > 0)
  47.       if (write(tofd, buf, i) != i)
  48. !         fatal2("patch: write (%s) failed\n", to);
  49.       Close(fromfd);
  50.       Close(tofd);
  51. --- 152,162 ----
  52.       tofd = creat(to, 0666);
  53.       if (tofd < 0)
  54. !     pfatal2("can't create %s", to);
  55.       fromfd = open(from, 0);
  56.       if (fromfd < 0)
  57. ;
  58.       fromfd = open(from, 0);
  59.       if (fromfd < 0)
  60. !     pfatal2("internal error, can't reopen %s", from);
  61.       while ((i=read(fromfd, buf, sizeof buf)) > 0)
  62.       if (write(tofd, buf, i) != i)
  63. !         pfatal2("write to %s failed", to);
  64.       Close(fromfd);
  65.       Close(tofd);
  66. -- 
  67.      ____/     /     /     __  /    _  _/    ____/
  68.     /         /     /     /   /      /     /          Chris Sherman
  69.    /         ___   /        _/      /          /
  70.  _____/   __/   __/   __/ _\    _____/   _____/           sherman@unx.sas.com
  71.