[haiku-development] BFS reporting S_STR_INDEX in stat::st_mode for directories

  • From: François Revol <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 23 May 2016 00:40:19 +0200

Hi,

I've been porting libgit2:
https://github.com/libgit2/libgit2/pull/3796

Appart from their test suite calling inet_pton() with dst=NULL which
asserts, it seems they have some picky checks on the filesystem.

One of them complains that the st_mode field is not what it expects:

  st.st_mode != (GIT_FILEMODE_TREE | 0701) & ~um
  100040701 != 0040701

It actually seems like BFS is reporting S_STR_INDEX in addition to S_IFDIR.

Is this intended?

Their test could probably use the S_IFMT mask but well...

François.

Other related posts: