Mail Archives: djgpp-workers/1998/08/16/05:53:13
Somebody complained that if there's no .000 file, djmerge doesn't behave 
itself, and suggested to document it at the least.  Here's a patch that 
should fix this, I think.
*** src/utils/djmerge.c~0	Sun Nov  2 15:21:28 1997
--- src/utils/djmerge.c	Fri Aug 14 11:52:26 1998
*************** main(int argc, char **argv)
*** 43,48 ****
--- 43,54 ----
  
    partnum = 0;
    f = p_open(argv[1], partnum);
+   if (f < 0)
+   {
+     fprintf(stderr,"FATAL: Cannot open %s.000", argv[1]);
+     perror("");
+     exit(1);
+   }
    while (1)
    {
      r = read(f, buf, BUFS);
- Raw text -