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

Diff for /src/usr.bin/file/file.c between version 1.28 and 1.29

version 1.28, 2015/04/24 16:28:00 version 1.29, 2015/04/24 16:30:06
Line 405 
Line 405 
         if (inf->fd != -1)          if (inf->fd != -1)
                 return (0);                  return (0);
   
         if (inf->sb.st_mode & 0222)          if (inf->sb.st_mode & (S_IWUSR|S_IWGRP|S_IWOTH))
                 strlcat(tmp, "writable, ", sizeof tmp);                  strlcat(tmp, "writable, ", sizeof tmp);
         if (inf->sb.st_mode & 0111)          if (inf->sb.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH))
                 strlcat(tmp, "executable, ", sizeof tmp);                  strlcat(tmp, "executable, ", sizeof tmp);
         if (S_ISREG(inf->sb.st_mode))          if (S_ISREG(inf->sb.st_mode))
                 strlcat(tmp, "regular file, ", sizeof tmp);                  strlcat(tmp, "regular file, ", sizeof tmp);

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29