Commit Graph

5 Commits

Author SHA1 Message Date
Mario Fetka
186630753f nwserv: escape remaining protocol names in debug logs
All checks were successful
Source release / source-package (push) Successful in 45s
Use the bounded printable formatter for two remaining debug paths that can
log protocol-derived byte fields directly.

The SAP route suppression log can print SAP-derived server names, including
non-printable bytes advertised by newer NetWare service types.  The namespace
search diagnostic can also contain DOS wildcard bytes such as 0xff padding.

Format both fields through visable_data() so diagnostics stay readable and do
not emit raw control or high-bit bytes.

This is logging-only and does not change SAP, routing, or namespace behavior.
2026-05-29 22:22:10 +02:00
Mario Fetka
44a309de40 nwserv: escape SAP names in debug logs
All checks were successful
Source release / source-package (push) Successful in 45s
SAP service names are fixed-size 48-byte fields and are not guaranteed to be
safe C strings in diagnostics.  Some NetWare 6.5 SAP service types advertise
non-printable or high-bit bytes in the name field, which made the debug log
hard to read and could run past the intended protocol field if logged with a
plain %s.

Add bounded formatting for SAP names used in debug output.  Stop at NUL within
the fixed field, keep printable ASCII unchanged, and escape other bytes as
\\xNN.

This is logging-only and does not change SAP/RIP protocol behavior.
2026-05-29 21:51:57 +02:00
Mario Fetka
fd9daeb22f Clean up nwdbm, nwroute and trustee warnings 2026-04-20 23:39:42 +02:00
Mario Fetka
9087018b59 Handle ignored return values in extpipe and fix route/server format warnings 2026-04-20 23:39:42 +02:00
Mario Fetka
0fbc9baf41 Restructure for camke build 2011-11-13 17:37:22 +01:00