1
Networking / Re: Updated Samba Client
« on: August 12, 2024, 02:06:06 pm »
Any reason to omit socket dir part such as lp_ncalrpc_dir() and socket_dir?
And in
I think, #ifndef is a typo. It should be #ifdef, right ?
And in
Code: [Select]
diff --git a/source3/rpc_client/local_np.c b/source3/rpc_client/local_np.c
index 791ded99a..e8f97f127 100644
--- a/source3/rpc_client/local_np.c
+++ b/source3/rpc_client/local_np.c
@@ -555,8 +555,13 @@ struct tevent_req *local_np_connect_send(
return tevent_req_post(req, ev);
}
+#ifndef __OS2__
+ state->socketpath = talloc_asprintf(
+ state, "\\socket\\np\\%s", lower_case_pipename);
+#else
state->socketpath = talloc_asprintf(
state, "%s/np/%s", socket_dir, lower_case_pipename);
+#endif
if (tevent_req_nomem(state->socketpath, req)) {
return tevent_req_post(req, ev);
}
I think, #ifndef is a typo. It should be #ifdef, right ?