summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-12-22 15:21:27 +0100
committerKarolin Seeger <kseeger@samba.org>2011-03-05 14:34:45 +0100
commit81333e1b9d67f58c05f44343a754376a0b5f4607 (patch)
treeebed80706aa3ed2d8d4ff3ad83926f7b8dc3aafc /source3/lib
parent73577282c23f5e5bab18f2b215d419daadbfaf80 (diff)
downloadsamba-81333e1b9d67f58c05f44343a754376a0b5f4607.tar.gz
v3-5-test: Pull in tevent_req_poll_ntstatus from master
(cherry picked from commit 0b13028cb4d6fc2ff267df477b5c2c4291286a43)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index fad6c7aa42f..ee45da09004 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -3070,3 +3070,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;
+}