summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-12-22 15:21:27 +0100
committerKarolin Seeger <kseeger@samba.org>2011-01-13 17:58:53 +0100
commit14e272c5022cb74b47d1e6021c8d919e3b354342 (patch)
treea24594f5e236b950ca35f75e3e6517ee4c2f16f9 /source3/lib/util.c
parent88ce2c71e36b0e556dfbd74f6c8c4de7034b2075 (diff)
downloadsamba-14e272c5022cb74b47d1e6021c8d919e3b354342.tar.gz
v3-4-test: Pull in tevent_req_poll_ntstatus from master
(cherry picked from commit 9b79de1553cfa57d24d1ac0316b814933ef3d33d)
Diffstat (limited to 'source3/lib/util.c')
-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 3d7336f957b..c9afe7b6a91 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -3188,3 +3188,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;
+}