Public bug reported:
The man page OPEN_MEMSTREAM(3) says, the buffer and size are updated
each time fflush and fclose are called and that a null byte is
maintained at the end of the buffer. The attached c program shows an
unexpected difference between fflush and fclose if you write to a
memstream
Sadly, this also is not a goot idea because of a zfs bug:
https://github.com/openzfs/zfs/issues/7734
** Bug watch added: github.com/openzfs/zfs/issues #7734
https://github.com/openzfs/zfs/issues/7734
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subsc