Commit Graph

7 Commits

Author SHA1 Message Date
Mario Fetka
c80861b92b nwconn: implement extracted base handle restore
All checks were successful
Source release / source-package (push) Successful in 54s
Wire NCP 0x16/0x17 Extract a Base Handle and NCP 0x16/0x18 Restore an
Extracted Base Handle to connection-local directory-handle state.

The WebSDK documents NCP 0x2222/22/23 as taking a DirectoryHandle and
returning a 14-byte save buffer composed of a 10-byte ServerNetworkAddress
plus a 4-byte HandleID. The same documentation describes NCP 0x2222/22/24 as
taking that saved ServerNetworkAddress/HandleID pair and returning a
NewDirectoryHandle plus AccessRightsMask.

The SDK headers expose these calls as NWSaveDirectoryHandle() and
NWRestoreDirectoryHandle(), with the save buffer explicitly documented as 14
bytes. The Rust nwserver and lwared references do not implement this older
save/restore pair, and newer clients typically use the normal allocate/set
directory-handle calls instead, so keep the MARS-NWE HandleID opaque and
connection-local rather than guessing a global NetWare directory-base number.

Store extracted base-handle IDs in a small per-connection table that records
the saved volume/path tuple. Extract requires a live permanent directory
handle, and Restore validates the saved server address against this server
before allocating a new permanent directory handle for the saved path.

Add the SDK request/reply semantics to the inline endpoint comments and remove
the corresponding TODO entry.

This enables the documented endpoint path while keeping the saved HandleID
conservative and private to MARS-NWE.
2026-05-30 00:12:31 +02:00
Mario Fetka
cb63088676 Directory Rename/Move über NCP22/2E
All checks were successful
Source release / source-package (push) Successful in 37s
2026-05-25 18:13:31 +02:00
Mario Fetka
d9f7d226b9 fist implementation NCP23/F4 / F3
All checks were successful
Source release / source-package (push) Successful in 38s
2026-05-25 15:48:45 +02:00
Mario Fetka
0bc4a4b9c5 grant/revoke Request-Layout
All checks were successful
Source release / source-package (push) Successful in 46s
2026-05-25 14:11:06 +02:00
Mario Fetka
2c21eb77fd NCP22/4 Modify Maximum/Inherit Rights Mask
All checks were successful
Source release / source-package (push) Successful in 44s
2026-05-25 13:12:19 +02:00
Mario Fetka
e817405919 feat: add DOS long-name alias support 2026-05-24 00:50:32 +02:00
Mario Fetka
0fbc9baf41 Restructure for camke build 2011-11-13 17:37:22 +01:00