home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume2 / fs-analyzer / patch1 next >
Internet Message Format  |  1991-08-07  |  892b

  1. From: lvc@tut.cis.ohio-state.edu (Lawrence V. Cipriani)
  2. Newsgroups: comp.sources.misc
  3. Subject: v02i012: Patches for File System Analyzer Tool
  4. Message-ID: <7105@ncoast.UUCP>
  5. Date: 20 Jan 88 01:12:06 GMT
  6. Approved: allbery@ncoast.UUCP
  7.  
  8. Comp.sources.misc: Volume 2, Issue 12
  9. Submitted-By: Lawrence V. Cipriani <lvc@tut.cis.ohio-state.edu>
  10. Archive-Name: fs-analyzer/patch1
  11.  
  12. The system 5 file system analysis program contains 3 bugs in the
  13. definition of the IS_SPECIAL macro.  It is defined at line 87 of
  14. the fsanalyze.c file.
  15.  
  16. # define IS_SPECIAL(a)    (((a) & S_IFMT == S_IFBLK) ||
  17.     ((a) & S_IFMT == S_IFCHR) || ((a) & S_IFMT == S_IFIFO))
  18.  
  19. It should be:
  20.  
  21. # define IS_SPECIAL(a)    ((((a) & S_IFMT) == S_IFBLK) ||
  22.     (((a) & S_IFMT) == S_IFCHR) || (((a) & S_IFMT) == S_IFIFO))
  23. -- 
  24. Larry Cipriani - using a guest account at
  25. lvc@tut.cis.ohio-state.edu a.k.a.
  26. ...!cbosgd!osu-cis!tut.cis.ohio-state.edu!lvc
  27.  
  28.  
  29.