[BACK]Return to roff.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/roff.c between version 1.209 and 1.210

version 1.209, 2014/04/23 16:08:33 version 1.210, 2014/06/25 00:20:19
Line 1938  roff_so(ROFF_ARGS)
Line 1938  roff_so(ROFF_ARGS)
 {  {
         char *name;          char *name;
   
         mandoc_msg(MANDOCERR_SO, r->parse, ln, ppos, NULL);          name = *bufp + pos;
           mandoc_vmsg(MANDOCERR_SO, r->parse, ln, ppos, ".so %s", name);
   
         /*          /*
          * Handle `so'.  Be EXTREMELY careful, as we shouldn't be           * Handle `so'.  Be EXTREMELY careful, as we shouldn't be
Line 1947  roff_so(ROFF_ARGS)
Line 1948  roff_so(ROFF_ARGS)
          * or using absolute paths.           * or using absolute paths.
          */           */
   
         name = *bufp + pos;  
         if ('/' == *name || strstr(name, "../") || strstr(name, "/..")) {          if ('/' == *name || strstr(name, "../") || strstr(name, "/..")) {
                 mandoc_msg(MANDOCERR_SOPATH, r->parse, ln, pos, NULL);                  mandoc_vmsg(MANDOCERR_SO_PATH, r->parse, ln, ppos,
                       ".so %s", name);
                 return(ROFF_ERR);                  return(ROFF_ERR);
         }          }
   

Legend:
Removed from v.1.209  
changed lines
  Added in v.1.210

CVSweb