Re: Bug in fetch.c:doit?
[email protected] (Paul Jarc) Mon, 17 Oct 2005 13:53:22 -0400
| Newsgroups | gmane.comp.djb.publicfile |
|---|---|
| Organization | What did you have in mind? A short, blunt, human pyramid? |
| Message-ID | <[email protected]> |
--=-=-= malc <[email protected]> wrote: > As far as i can see, it will always continue on error. Agreed. This patch should fix it. paul --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=publicfile-0.52-eq.patch diff -ur publicfile-0.52-orig/fetch.c publicfile-0.52/fetch.c --- publicfile-0.52-orig/fetch.c 1999-11-09 02:23:24.000000000 -0500 +++ publicfile-0.52/fetch.c 2005-10-17 13:39:41.421336792 -0400 @@ -122,7 +122,7 @@ for (;;) { r = read(fdfile,inbuf,sizeof inbuf); if (r == -1) { - if (errno = error_intr) continue; + if (errno == error_intr) continue; _exit(23); } if (r == 0) --=-=-=--