Closed infeo closed 11 months ago
Also, can you add tests for the new utility methods?
What about fi in macOS? Is it always non-null in fuse 2?
In fuse 2 the above methods either do not have a file info as parameter or the documentation only mentions the path to be nullable.
Also, can you add tests for the new utility methods?
@overheadhunter Done in https://github.com/cryptomator/jfuse/pull/39/commits/c3bb1540f6a5f9e869af1c928e8d66f93afc4327
According to the fuse 3.x documentation, the methods
releasedir
,getattr
,chmod
,chown
,fsyncdir
,truncate
andutimens
can have NULL parameter. Before this PR this was not accounted for, leading to crashes of the JVM.This PR fixes it. If the MemorySegment handed over to the JVM is the NULL-Pointer, the methods translate it to Javas
null
value.