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

Diff for /mandoc/mandocdb.c between version 1.238 and 1.239

version 1.238, 2017/01/27 00:56:32 version 1.239, 2017/01/27 01:04:25
Line 872  filescan(const char *file)
Line 872  filescan(const char *file)
         }          }
   
         /*          /*
            * In test mode or when the original name is absolute
            * but outside our tree, guess the base directory.
            */
   
           if (op == OP_TEST || (start == buf && *start == '/')) {
                   if (strncmp(buf, "man/", 4) == 0)
                           start = buf + 4;
                   else if ((start = strstr(buf, "/man/")) != NULL)
                           start += 5;
                   else
                           start = buf;
           }
   
           /*
          * First try to guess our directory structure.           * First try to guess our directory structure.
          * If we find a separator, try to look for man* or cat*.           * If we find a separator, try to look for man* or cat*.
          * If we find one of these and what's underneath is a directory,           * If we find one of these and what's underneath is a directory,

Legend:
Removed from v.1.238  
changed lines
  Added in v.1.239

CVSweb