summaryrefslogtreecommitdiffstats
path: root/source4/scripting
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2007-05-22 06:34:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:47 -0500
commit5088c8add2f6dda66c17f4b238cd71ff7096e482 (patch)
treeeae5c38d1aeba7429d2eb230c49c6eff23f834fe /source4/scripting
parent615fea1c5c6e742b6e2c9d7a79a7f76435d0788c (diff)
downloadsamba-5088c8add2f6dda66c17f4b238cd71ff7096e482.tar.gz
samba-5088c8add2f6dda66c17f4b238cd71ff7096e482.tar.xz
samba-5088c8add2f6dda66c17f4b238cd71ff7096e482.zip
r23065: revert local includes to prevent security problems (at least
temporarily...) rafal (This used to be commit 0ecb8fd81ebbd7327aa5c6b9347aa4dcb1ba6421)
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/ejs/smbcalls.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/source4/scripting/ejs/smbcalls.c b/source4/scripting/ejs/smbcalls.c
index 9a4a9f96240..04c534bdf5b 100644
--- a/source4/scripting/ejs/smbcalls.c
+++ b/source4/scripting/ejs/smbcalls.c
@@ -124,23 +124,6 @@ static int ejs_libinclude(int eid, int argc, char **argv)
char *path, *emsg;
int ret;
- /* First, try to include file from current working directory.
- This allows local includes which is handy sometimes. */
- path = talloc_asprintf(mprMemCtx(), "%s", script);
- if (path == NULL) {
- return -1;
- }
-
- if (file_exist(path)) {
- ret = ejsEvalFile(eid, path, &result, &emsg);
- talloc_free(path);
- if (ret < 0) {
- ejsSetErrorMsg(eid, "%s: %s", script, emsg);
- return -1;
- }
- continue;
- }
-
/* use specfied path to search for requested file */
for (j=0;js_include[j];j++) {
path = talloc_asprintf(mprMemCtx(), "%s/%s", js_include[j], script);