mirror of
https://github.com/samba-team/samba.git
synced 2025-10-29 04:23:51 +03:00
r8340: - added sys_gmtime()
- added sys_unlink() - added sys_file_load() and sys_file_save() - use mprString() instead of mprCreateStringVar() to cope with NULL strings - removed smbcalls_irpc.c as its not needed any more - allow ldbAdd() and ldbModify() to take multiple ldif records - added a sprintf() function to ejs. Quite complex, but very useful!
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
322c213783
commit
625628a3f6
@@ -226,7 +226,7 @@ NTSTATUS ejs_pull_string(struct ejs_rpc *ejs,
|
||||
NTSTATUS ejs_push_string(struct ejs_rpc *ejs,
|
||||
struct MprVar *v, const char *name, const char *s)
|
||||
{
|
||||
return mprSetVar(v, name, mprCreateStringVar(s, True));
|
||||
return mprSetVar(v, name, mprString(s));
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -264,7 +264,7 @@ NTSTATUS ejs_push_dom_sid(struct ejs_rpc *ejs,
|
||||
{
|
||||
char *sidstr = dom_sid_string(ejs, r);
|
||||
NT_STATUS_HAVE_NO_MEMORY(sidstr);
|
||||
return mprSetVar(v, name, mprCreateStringVar(sidstr, True));
|
||||
return mprSetVar(v, name, mprString(sidstr));
|
||||
}
|
||||
|
||||
NTSTATUS ejs_pull_GUID(struct ejs_rpc *ejs,
|
||||
@@ -279,7 +279,7 @@ NTSTATUS ejs_push_GUID(struct ejs_rpc *ejs,
|
||||
{
|
||||
char *guid = GUID_string(ejs, r);
|
||||
NT_STATUS_HAVE_NO_MEMORY(guid);
|
||||
return mprSetVar(v, name, mprCreateStringVar(guid, True));
|
||||
return mprSetVar(v, name, mprString(guid));
|
||||
}
|
||||
|
||||
NTSTATUS ejs_push_null(struct ejs_rpc *ejs, struct MprVar *v, const char *name)
|
||||
|
||||
Reference in New Issue
Block a user