git.samba.org
/
obnox
/
samba-ctdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
v3-4-test: Pull in tevent_req_poll_ntstatus from master
[obnox/samba-ctdb.git]
/
source3
/
lib
/
util.c
diff --git
a/source3/lib/util.c
b/source3/lib/util.c
index 4bd124743800cf7b0ed39a44ae9f44231bbf7999..9efc4cca6a611e54a4a63962eda6e14be1c2d04c 100644
(file)
--- a/
source3/lib/util.c
+++ b/
source3/lib/util.c
@@
-3202,3
+3202,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;
+}