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

Diff for /mandoc/mandocdb.c between version 1.264 and 1.265

version 1.264, 2020/01/25 22:59:22 version 1.265, 2020/01/26 11:16:47
Line 801  filescan(const char *file)
Line 801  filescan(const char *file)
                 exitcode = (int)MANDOCLEVEL_BADARG;                  exitcode = (int)MANDOCLEVEL_BADARG;
                 say(file, "&lstat");                  say(file, "&lstat");
                 return;                  return;
         } else if ((st.st_mode & (S_IFREG | S_IFLNK)) == 0) {          } else if (S_ISREG(st.st_mode) == 0 && S_ISLNK(st.st_mode) == 0) {
                 exitcode = (int)MANDOCLEVEL_BADARG;                  exitcode = (int)MANDOCLEVEL_BADARG;
                 say(file, "Not a regular file");                  say(file, "Not a regular file");
                 return;                  return;
Line 840  filescan(const char *file)
Line 840  filescan(const char *file)
          * Note the stat(2) can still fail if the link target           * Note the stat(2) can still fail if the link target
          * doesn't exist.           * doesn't exist.
          */           */
         if (st.st_mode & S_IFLNK) {          if (S_ISLNK(st.st_mode)) {
                 if (stat(buf, &st) == -1) {                  if (stat(buf, &st) == -1) {
                         exitcode = (int)MANDOCLEVEL_BADARG;                          exitcode = (int)MANDOCLEVEL_BADARG;
                         say(file, "&stat");                          say(file, "&stat");

Legend:
Removed from v.1.264  
changed lines
  Added in v.1.265

CVSweb