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

Diff for /mandoc/mandocdb.c between version 1.183 and 1.184

version 1.183, 2015/01/15 04:26:40 version 1.184, 2015/01/21 22:41:49
Line 613  treescan(void)
Line 613  treescan(void)
                                         say(path, "&realpath");                                          say(path, "&realpath");
                                 continue;                                  continue;
                         }                          }
                         if (strstr(buf, basedir) != buf) {                          if (strstr(buf, basedir) != buf
   #ifdef HOMEBREWDIR
                               && strstr(buf, HOMEBREWDIR) != buf
   #endif
                           ) {
                                 if (warnings) say("",                                  if (warnings) say("",
                                     "%s: outside base directory", buf);                                      "%s: outside base directory", buf);
                                 continue;                                  continue;
Line 818  filescan(const char *file)
Line 822  filescan(const char *file)
                 start = buf;                  start = buf;
         else if (strstr(buf, basedir) == buf)          else if (strstr(buf, basedir) == buf)
                 start = buf + strlen(basedir);                  start = buf + strlen(basedir);
   #ifdef HOMEBREWDIR
           else if (strstr(buf, HOMEBREWDIR) == buf)
                   start = buf;
   #endif
         else {          else {
                 exitcode = (int)MANDOCLEVEL_BADARG;                  exitcode = (int)MANDOCLEVEL_BADARG;
                 say("", "%s: outside base directory", buf);                  say("", "%s: outside base directory", buf);

Legend:
Removed from v.1.183  
changed lines
  Added in v.1.184

CVSweb