From f9c7a795df5036c761dca5eba1cdfd459587e92b Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Sat, 30 May 2026 18:37:47 +0000 Subject: [PATCH] nwconn: align AFP endpoint names with WebSDK --- src/nwconn.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/nwconn.c b/src/nwconn.c index 01cc66b..c1184d2 100644 --- a/src/nwconn.c +++ b/src/nwconn.c @@ -421,6 +421,8 @@ static void handle_nwbind_request(void) /* mst:25-Apr-00 */ static const char *afp_call_name(int ufunc) { switch (ufunc) { + case 0x01: return("AFP Create Directory"); + case 0x02: return("AFP Create File"); case 0x03: return("AFP Delete"); case 0x04: return("AFP Get Entry ID From Name"); case 0x05: return("AFP Get File Information"); @@ -437,6 +439,7 @@ static const char *afp_call_name(int ufunc) case 0x10: return("AFP 2.0 Set File Information"); case 0x11: return("AFP 2.0 Scan File Information"); case 0x12: return("AFP Get DOS Name From Entry ID"); + case 0x13: return("AFP Get Macintosh Info On Deleted Files"); default: return("unknown AFP call"); } } @@ -3851,16 +3854,16 @@ static int handle_ncp_serv(void) * namespace state. * * WebSDK / headers identify the old NCP 0x2222/35 AFP - * subfunctions used by nwafp.h, including AFP Delete - * (0x03), Get Entry ID From Name (0x04), Get File - * Information (0x05), Get Entry ID From - * NetWare Handle (0x06), Rename (0x07), Open File Fork - * (0x08), Alloc Temporary Dir Handle (0x0b), Get Entry ID - * From Path Name (0x0c), Get DOS Name From Entry ID - * (0x12), the AFP Set File Information - * write call (0x09), the AFP 2.0 create calls - * (0x0d/0x0e), Get/Set File Information (0x0f/0x10), and - * Scan File Information (0x11). + * subfunctions used by nwafp.h, including Create Directory + * (0x01), Create File (0x02), AFP Delete (0x03), Get Entry + * ID From Name (0x04), Get File Information (0x05), Get + * Entry ID From NetWare Handle (0x06), Rename (0x07), Open + * File Fork (0x08), Alloc Temporary Dir Handle (0x0b), Get + * Entry ID From Path Name (0x0c), Get DOS Name From Entry + * ID (0x12), Get Macintosh Info On Deleted Files (0x13), + * the AFP Set File Information write call (0x09), the AFP + * 2.0 create calls (0x0d/0x0e), Get/Set File Information + * (0x0f/0x10), and Scan File Information (0x11). * * Implement the path-name entry-id probe first because the * SDK helpers use it to test AFP support. The related AFP