smb_inherit_flags
if (!smb_inherit_flags(flags, is_dir))
bool smb_inherit_flags(int flags, bool is_dir);