mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
libsmb: Correctly return ioctl error from cli_readlink()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
ba70eb480c
commit
767eb33480
@ -362,6 +362,8 @@ static void cli_readlink_closed(struct tevent_req *subreq)
|
||||
{
|
||||
struct tevent_req *req = tevent_req_callback_data(
|
||||
subreq, struct tevent_req);
|
||||
struct cli_readlink_state *state = tevent_req_data(
|
||||
req, struct cli_readlink_state);
|
||||
NTSTATUS status;
|
||||
|
||||
status = cli_close_recv(subreq);
|
||||
@ -369,6 +371,9 @@ static void cli_readlink_closed(struct tevent_req *subreq)
|
||||
if (tevent_req_nterror(req, status)) {
|
||||
return;
|
||||
}
|
||||
if (tevent_req_nterror(req, state->get_reparse_status)) {
|
||||
return;
|
||||
}
|
||||
tevent_req_done(req);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user