diff --git a/src/nwconn.c b/src/nwconn.c index 1aada6b..d8074c4 100644 --- a/src/nwconn.c +++ b/src/nwconn.c @@ -617,9 +617,11 @@ static int handle_ncp_serv(void) p+3, (int)*(p+2), 0); if (result > -1) { - xdata->eff_right_mask = (uint8) result; + int ncp22_rights = trustee_v3_to_ncp22_rights(result); + xdata->eff_right_mask = (uint8)ncp22_rights; data_len = 1; - XDPRINTF((5,0,"Got eff Dir Rights=%d", (int)result)); + XDPRINTF((5,0,"NCP22/3 Get Dir Rights=%d ncp22=%d", + (int)result, (int)ncp22_rights)); } else completition = (uint8) -result; } break; @@ -1103,12 +1105,12 @@ static int handle_ncp_serv(void) int ncp22_rights = trustee_v3_to_ncp22_rights(result); U16_TO_16(ncp22_rights, xdata->eff_rights); data_len = sizeof(struct XDATA); - XDPRINTF((1,0, + XDPRINTF((5,0, "NCP22/42 GetEffectiveRights: dh=%d pathlen=%d path=`%s` rights=0x%04x ncp22=0x%04x", dir_handle, pathlen, pathbuf, result, ncp22_rights)); } else { completition = (uint8) (-result); - XDPRINTF((1,0, + XDPRINTF((5,0, "NCP22/42 GetEffectiveRights: dh=%d pathlen=%d path=`%s` rc=%d", dir_handle, pathlen, pathbuf, result)); }