Raw-Dump-Debug
All checks were successful
Source release / source-package (push) Successful in 44s

This commit is contained in:
Mario Fetka
2026-05-26 07:33:33 +02:00
parent adbb1211aa
commit 8ffadff3e6

View File

@@ -781,8 +781,12 @@ static int handle_ncp_serv(void)
int trustee_rights = (int)input->trustee_right_mask;
int copylen = input->pathlen;
uint8 pathbuf[256];
int raw_len = requestlen - (int)((uint8 *)&input->dir_handle - readbuff);
int result;
ncp23_debug_dump("NCP22/0D AddTrustee raw",
(uint8 *)&input->dir_handle, raw_len);
if (copylen > 255) copylen = 255;
memcpy(pathbuf, input->path, copylen);
pathbuf[copylen] = '\0';
@@ -814,8 +818,12 @@ static int handle_ncp_serv(void)
uint32 trustee_id = GET_BE32(input->trustee_id);
int copylen = input->pathlen;
uint8 pathbuf[256];
int raw_len = requestlen - (int)((uint8 *)&input->dir_handle - readbuff);
int result;
ncp23_debug_dump("NCP22/0E DelTrustee raw",
(uint8 *)&input->dir_handle, raw_len);
if (copylen > 255) copylen = 255;
memcpy(pathbuf, input->path, copylen);
pathbuf[copylen] = '\0';
@@ -1177,8 +1185,12 @@ static int handle_ncp_serv(void)
int trustee_rights = GET_16(input->trustee_rights);
int copylen = input->pathlen;
uint8 pathbuf[256];
int raw_len = requestlen - (int)((uint8 *)&input->dir_handle - readbuff);
int result;
ncp23_debug_dump("NCP22/27 SetTrustee raw",
(uint8 *)&input->dir_handle, raw_len);
if (copylen > 255) copylen = 255;
memcpy(pathbuf, input->path, copylen);
pathbuf[copylen] = '\0';
@@ -1287,8 +1299,12 @@ static int handle_ncp_serv(void)
uint32 trustee_id = GET_BE32(input->trustee_id);
int copylen = input->pathlen;
uint8 pathbuf[256];
int raw_len = requestlen - (int)((uint8 *)&input->dir_handle - readbuff);
int result;
ncp23_debug_dump("NCP22/2B DelTrustee raw",
(uint8 *)&input->dir_handle, raw_len);
if (copylen > 255) copylen = 255;
memcpy(pathbuf, input->path, copylen);
pathbuf[copylen] = '\0';