diff options
author | Volker Lendecke <vl@samba.org> | 2009-11-14 11:32:00 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-11-14 11:32:38 +0100 |
commit | 4a777ec4d709d2fce2378b7b4d740aa73c32e73b (patch) | |
tree | 724b1c29254ffb73a3d1e580a6bca32f28e3a44b /source3 | |
parent | f668e4104f5fc5e3c0a48502e30163b1ffc777ae (diff) | |
download | samba-4a777ec4d709d2fce2378b7b4d740aa73c32e73b.tar.gz samba-4a777ec4d709d2fce2378b7b4d740aa73c32e73b.tar.bz2 samba-4a777ec4d709d2fce2378b7b4d740aa73c32e73b.zip |
Attempt to fix the s4 build -- we can not use map_nt_error_from_unix in lib/
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/proto.h | 3 | ||||
-rw-r--r-- | source3/lib/util.c | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 8c0a3e319d..d4e0ac55c5 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1228,6 +1228,9 @@ bool is_valid_policy_hnd(const struct policy_handle *hnd); bool policy_hnd_equal(const struct policy_handle *hnd1, const struct policy_handle *hnd2); const char *strip_hostname(const char *s); +bool tevent_req_poll_ntstatus(struct tevent_req *req, + struct tevent_context *ev, + NTSTATUS *status); /* The following definitions come from lib/util_file.c */ 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; +} |