diff options
author | Rafal Szczesniak <mimir@samba.org> | 2007-05-24 21:51:25 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:52:52 -0500 |
commit | c64358e339aed0adba3dc66c1e598a0d3e8073a7 (patch) | |
tree | 9bac192383ad380953bb91486ee4f081f27f5f89 /source4/scripting/ejs/ejsnet/mpr_user.c | |
parent | b0a1cf01e3cfba45273d636fd759fd2dd254f9d3 (diff) | |
download | samba-c64358e339aed0adba3dc66c1e598a0d3e8073a7.tar.gz samba-c64358e339aed0adba3dc66c1e598a0d3e8073a7.tar.bz2 samba-c64358e339aed0adba3dc66c1e598a0d3e8073a7.zip |
r23126: this was sitting on my laptop for a while...
change the way the ejs object is being created and return listing
context (with status) rather than collecting all entries gathered
from libnet call.
rafal
(This used to be commit b16787a56120498c985f2617f43250df725c285a)
Diffstat (limited to 'source4/scripting/ejs/ejsnet/mpr_user.c')
-rw-r--r-- | source4/scripting/ejs/ejsnet/mpr_user.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/scripting/ejs/ejsnet/mpr_user.c b/source4/scripting/ejs/ejsnet/mpr_user.c index efeb68ffc1..23be089fde 100644 --- a/source4/scripting/ejs/ejsnet/mpr_user.c +++ b/source4/scripting/ejs/ejsnet/mpr_user.c @@ -101,6 +101,7 @@ done: UserListCtx.ResumeIndex UserListCtx.Count UserListCtx.EndOfList + UserListCtx.Status */ struct MprVar mprUserListCtx(TALLOC_CTX *mem_ctx, struct libnet_UserList *list, NTSTATUS result) { @@ -144,6 +145,8 @@ struct MprVar mprUserListCtx(TALLOC_CTX *mem_ctx, struct libnet_UserList *list, status = mprSetVar(&mprListCtx, "ResumeIndex", mprCreateIntegerVar((int)list->out.resume_index)); if (!NT_STATUS_IS_OK(status)) goto done; status = mprSetVar(&mprListCtx, "EndOfList", mprCreateBoolVar(endOfList)); + if (!NT_STATUS_IS_OK(status)) goto done; + status = mprSetVar(&mprListCtx, "Status", mprNTSTATUS(result)); done: return mprListCtx; |