summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs/smbcalls_nss.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-12 02:34:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:20:07 -0500
commitb1e93b296ea8f62ce0f15ccef5f6ae5339f4929f (patch)
tree2ba5c18f14d374a29a79061ee17b7dff28186355 /source4/scripting/ejs/smbcalls_nss.c
parent36bb0ffd4c59b17c7f942d874e18865707d3c696 (diff)
downloadsamba-b1e93b296ea8f62ce0f15ccef5f6ae5339f4929f.tar.gz
samba-b1e93b296ea8f62ce0f15ccef5f6ae5339f4929f.tar.bz2
samba-b1e93b296ea8f62ce0f15ccef5f6ae5339f4929f.zip
r8337: - use 64 bit access functions in ejs calls
- added access to smbd random functions - fixed ordering in join() - added sys_interfaces(), sys_hostname(), sys_nttime() and sys_ldaptime() (This used to be commit 28c1a1f3c0cd2f8228fd8c3c695ab6f45226fa3f)
Diffstat (limited to 'source4/scripting/ejs/smbcalls_nss.c')
-rw-r--r--source4/scripting/ejs/smbcalls_nss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/ejs/smbcalls_nss.c b/source4/scripting/ejs/smbcalls_nss.c
index abbf6cf10f..81ab02729a 100644
--- a/source4/scripting/ejs/smbcalls_nss.c
+++ b/source4/scripting/ejs/smbcalls_nss.c
@@ -93,7 +93,7 @@ static int ejs_getpwnam(MprVarHandle eid, int argc, struct MprVar **argv)
static int ejs_getpwuid(MprVarHandle eid, int argc, struct MprVar **argv)
{
/* validate arguments */
- if (argc != 1 || argv[0]->type != MPR_TYPE_INT) {
+ if (argc != 1 || !mprVarIsNumber(argv[0]->type)) {
ejsSetErrorMsg(eid, "getpwuid invalid arguments");
return -1;
}