mirror of
https://github.com/samba-team/samba.git
synced 2025-03-07 00:58:40 +03:00
s3:cli_np_tstream: pass a leading backslash for the pipe name for SMB1
metze
This commit is contained in:
parent
1e5010fd99
commit
697c88d6b1
@ -151,8 +151,20 @@ struct tevent_req *tstream_cli_np_open_send(TALLOC_CTX *mem_ctx,
|
||||
}
|
||||
|
||||
if (state->is_smb1) {
|
||||
const char *smb1_npipe;
|
||||
|
||||
/*
|
||||
* Windows and newer Samba versions allow
|
||||
* the pipe name without leading backslash,
|
||||
* but we should better behave like windows clients
|
||||
*/
|
||||
smb1_npipe = talloc_asprintf(state, "\\%s", state->npipe);
|
||||
if (tevent_req_nomem(smb1_npipe, req)) {
|
||||
return tevent_req_post(req, ev);
|
||||
}
|
||||
|
||||
subreq = cli_ntcreate_send(state, ev, cli,
|
||||
npipe,
|
||||
smb1_npipe,
|
||||
0,
|
||||
DESIRED_ACCESS_PIPE,
|
||||
0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user