HomeFreeBSD

fusefs: test that open(2) can return a writable fd for a readonly file

Description

fusefs: test that open(2) can return a writable fd for a readonly file

Surprisingly, open(..., O_WRONLY | O_CREAT, 0444) should work. POSIX
requires it. But it didn't work in early FUSE implementations. Add a
regression test so that our FUSE driver doesn't make the same mistake.

Sponsored by: The FreeBSD Foundation

Details