Fix RenameOp compatibility with macfuse 4.x (#107)
Fix RenameOp compatibility with macfuse 4.x (#107)

Closed-source macfuse 4.x has broken compatibility with osxfuse 3.x:
it passes an additional 64-bit field (flags) after RenameIn regardless
that we don't enable the support for RENAME_SWAP/RENAME_EXCL.

The simplest fix is just to check for the presence of all-zero flags
and strip them when they're present.

Co-authored-by: Vitaliy Filippov <53e369a295c879c0950c38ac4f6245a0983f1438@yourcmc.ru>
jacobsa/fuse