Gregory Nutt ea13e24392 Correct a problem that was causing an apparent directory to be reported as a file instead of a directory by opendir.
This happened after adding these three new procfs entries:

  fs/block
  fs/mount
  fs/usage

Of course, there is no directory fs in this case, only three files that have fs/ in their relative pathnames.  The logic was detecting that fs was the name of the enty to report, but it was then declaring that fs was a file (because fs/block is of type file).

This was fixed by adding a check for matching lenghts.  i.e., if strlen(fs) != strlen(fs/block), then report fs as a directory instead of a file.
2017-10-26 16:30:59 -06:00
..
2017-02-12 14:47:05 -06:00
2017-10-04 15:22:27 -06:00
2017-10-20 12:36:25 -06:00
2017-10-04 15:22:27 -06:00
2017-10-04 15:22:27 -06:00
2017-10-26 13:33:08 -06:00
2017-10-10 08:44:12 -06:00
2017-10-04 15:22:27 -06:00
2017-10-04 15:22:27 -06:00
2017-10-04 15:22:27 -06:00
2017-10-04 15:22:27 -06:00
2017-10-04 15:22:27 -06:00