From 4a777ec4d709d2fce2378b7b4d740aa73c32e73b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 14 Nov 2009 11:32:00 +0100 Subject: Attempt to fix the s4 build -- we can not use map_nt_error_from_unix in lib/ --- source3/lib/util.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source3/lib') diff --git a/source3/lib/util.c b/source3/lib/util.c index 247042d7d9..9d12e5b560 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -3080,3 +3080,14 @@ const char *strip_hostname(const char *s) return s; } + +bool tevent_req_poll_ntstatus(struct tevent_req *req, + struct tevent_context *ev, + NTSTATUS *status) +{ + bool ret = tevent_req_poll(req, ev); + if (!ret) { + *status = map_nt_error_from_unix(errno); + } + return ret; +} -- cgit