From 8606579f8b9d0bd7bd1b090a8e90d7ac4a4b3b44 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Mon, 25 May 2026 14:25:08 +0200 Subject: [PATCH] debug --- src/connect.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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,