summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs/smbscript.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/ejs/smbscript.c')
-rw-r--r--source4/scripting/ejs/smbscript.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/ejs/smbscript.c b/source4/scripting/ejs/smbscript.c
index f1ff03ae49..0b0a446839 100644
--- a/source4/scripting/ejs/smbscript.c
+++ b/source4/scripting/ejs/smbscript.c
@@ -23,7 +23,7 @@
#include "includes.h"
#include "lib/ejs/ejs.h"
-void http_exception(const char *reason)
+void ejs_exception(const char *reason)
{
fprintf(stderr, "smbscript exception: %s", reason);
exit(1);
@@ -61,7 +61,7 @@ static int writeProc(MprVarHandle userHandle, int argc, char **argv)
exit(1);
}
- if (ejsEvalScript(eid, "write(\"hello\n\");", &result, &emsg) == -1) {
+ if (ejsEvalFile(eid, (char *)argv[1], &result, &emsg) == -1) {
fprintf(stderr, "smbscript: ejsEvalScript(): %s\n", emsg);
exit(1);
}