diff --git a/src/connect.c b/src/connect.c index 9de26a8..f5357cb 100644 --- a/src/connect.c +++ b/src/connect.c @@ -2918,7 +2918,19 @@ int nw_modify_max_right_mask(int dir_handle, uint8 *data, int len, old_mask = tru_get_inherited_mask(nwpath.volume, unname, &stbuff); new_mask = (old_mask | (grant_mask & 0xff)) & (~revoke_mask & 0xff); - return tru_set_inherited_mask(nwpath.volume, unname, &stbuff, new_mask); + result = tru_set_inherited_mask(nwpath.volume, unname, &stbuff, new_mask); + if (!result) { + int verify_mask = tru_get_inherited_mask(nwpath.volume, unname, &stbuff); + XDPRINTF((1, 0, "NCP22/4 Modify Max Right Mask: path=`%s`, old=0x%02x, grant=0x%02x, revoke=0x%02x, new=0x%02x, verify=0x%02x", + unname, + old_mask & 0xff, + grant_mask & 0xff, + revoke_mask & 0xff, + new_mask & 0xff, + verify_mask & 0xff)); + } + + return result; } int nw_scan_user_trustee(int volume, int *sequence, uint32 id,