summaryrefslogtreecommitdiff
path: root/vyatta-restricted.c
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-12-07 18:33:32 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-12-07 18:33:32 -0800
commit10959f9f48042c1623989a828048c76c9a24ad61 (patch)
tree14b51fd38410990cff0f1a086dcfb3eee41f5845 /vyatta-restricted.c
parentc246e6fcb064318dab5b64f84e0b68e49cb80500 (diff)
downloadvyatta-bash-10959f9f48042c1623989a828048c76c9a24ad61.tar.gz
vyatta-bash-10959f9f48042c1623989a828048c76c9a24ad61.zip
remove debug code
Diffstat (limited to 'vyatta-restricted.c')
-rw-r--r--vyatta-restricted.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/vyatta-restricted.c b/vyatta-restricted.c
index e23e25e..dc78ef2 100644
--- a/vyatta-restricted.c
+++ b/vyatta-restricted.c
@@ -452,38 +452,6 @@ init_vyatta_restricted_mode()
set_allowed_cfg_cmds();
set_allowed_pipe_cmds();
- if (0) {
- int i = 0;
- printf("\nlevel_dir={%s}\n", vyatta_user_level_dir);
- printf("default output=%d full=%d\n", vyatta_default_output_restricted,
- vyatta_default_full_restricted);
- printf("op:\n");
- if (allowed_op_cmds) {
- for (i = 0; allowed_op_cmds[i]; i++) {
- printf(" %d: {%s}\n", i, allowed_op_cmds[i]);
- }
- } else {
- printf(" <unlimited>\n");
- }
- printf("cfg:\n");
- if (allowed_cfg_cmds) {
- for (i = 0; allowed_cfg_cmds[i]; i++) {
- printf(" %d: {%s}\n", i, allowed_cfg_cmds[i]);
- }
- } else {
- printf(" <unlimited>\n");
- }
- printf("pipe:\n");
- if (allowed_pipe_cmds) {
- for (i = 0; allowed_pipe_cmds[i]; i++) {
- printf(" %d: {%s}(%d)\n", i, allowed_pipe_cmds[i], pipe_cmd_args[i]);
- }
- } else {
- printf(" <unlimited>\n");
- }
- printf("\n");
- }
-
return 1;
}