[BACK]Return to read.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/read.c between version 1.178 and 1.179

version 1.178, 2018/12/14 06:33:03 version 1.179, 2018/12/20 21:27:51
Line 370 
Line 370 
                                 mparse_readfd(curp, fd, ln.buf + of);                                  mparse_readfd(curp, fd, ln.buf + of);
                                 close(fd);                                  close(fd);
                         } else {                          } else {
                                 mandoc_msg(MANDOCERR_SO_FAIL, curp->line,                                  mandoc_msg(MANDOCERR_SO_FAIL,
                                     pos, ".so %s", ln.buf + of);                                      curp->line, of, ".so %s: %s",
                                       ln.buf + of, strerror(errno));
                                 ln.sz = mandoc_asprintf(&cp,                                  ln.sz = mandoc_asprintf(&cp,
                                     ".sp\nSee the file %s.\n.sp",                                      ".sp\nSee the file %s.\n.sp",
                                     ln.buf + of);                                      ln.buf + of);
Line 631 
Line 632 
   
         /* Neither worked, give up. */          /* Neither worked, give up. */
   
         mandoc_msg(MANDOCERR_FILE, 0, 0, "%s", strerror(errno));  
         return -1;          return -1;
 }  }
   

Legend:
Removed from v.1.178  
changed lines
  Added in v.1.179