summaryrefslogtreecommitdiff
path: root/testprogs/ejs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-08-18 09:33:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:33:31 -0500
commitf72c86d4dc0354453f0acaea1a17f90d537e23fa (patch)
tree214f0eaf82532ec7410f88651009759c6d4f79c8 /testprogs/ejs
parent92789c05efd61f7c500816ddd0e0b3a5b28b485a (diff)
downloadsamba-f72c86d4dc0354453f0acaea1a17f90d537e23fa.tar.gz
samba-f72c86d4dc0354453f0acaea1a17f90d537e23fa.tar.bz2
samba-f72c86d4dc0354453f0acaea1a17f90d537e23fa.zip
r9383: remove unused file
(This used to be commit dae90b6959508a19d35f711caf4c3f4bb9b3796a)
Diffstat (limited to 'testprogs/ejs')
-rwxr-xr-xtestprogs/ejs/winreg.js72
1 files changed, 0 insertions, 72 deletions
diff --git a/testprogs/ejs/winreg.js b/testprogs/ejs/winreg.js
deleted file mode 100755
index b1fc58e401..0000000000
--- a/testprogs/ejs/winreg.js
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/usr/bin/env smbscript
-/*
- test winreg calls from ejs
-*/
-
-libinclude("base.js");
-libinclude("winreg.js");
-
-var options = new Object();
-
-ok = GetOptions(ARGV, options,
- "POPT_AUTOHELP",
- "POPT_COMMON_SAMBA",
- "POPT_COMMON_CREDENTIALS");
-if (ok == false) {
- println("Failed to parse options: " + options.ERROR);
- return -1;
-}
-
-if (options.ARGV.length < 1) {
- println("Usage: winreg.js <BINDING>");
- return -1;
-}
-var binding = options.ARGV[0];
-reg = winreg_init();
-security_init(reg);
-
-print("Connecting to " + binding + "\n");
-status = reg.connect(binding);
-if (status.is_ok != true) {
- print("Failed to connect to " + binding + " - " + status.errstr + "\n");
- return -1;
-}
-
-function list_values(path) {
- var list = winreg_enum_values(reg, path);
- var i;
- if (list == undefined) {
- return;
- }
- for (i=0;i<list.length;i++) {
- printf("\ttype=%2d size=%4d '%s'\n", list[i].type, list[i].size, list[i].name);
- }
-}
-
-function list_path(path) {
- var list = winreg_enum_path(reg, path);
- var i;
- list_values(path);
- for (i=0;i<list.length;i++) {
- var npath;
- if (path) {
- npath = path + "\\" + list[i];
- } else {
- npath = list[i];
- }
- println(npath);
- list_path(npath);
- }
-}
-
-var root;
-
-if (options.ARGV.length > 1) {
- root = options.ARGV[1];
-} else {
- root = '';
-}
-
-printf("Listing registry tree '%s'\n", root);
-list_path(root);
-return 0;