copy_string_settings
source
parseconf.c
line
27 - 35
function
27 static void copy_string_settings(void);
28
29 /* Tables mapping setting names to runtime variables */
30 /* Boolean settings */
31 static struct parseconf_bool_setting
32 {
33 const char* p_setting_name;
34 int* p_variable;
35 }
36 parseconf_bool_array[] =
37 {
38 { "anonymous_enable", &tunable_anonymous_enable },
39 { "local_enable", &tunable_local_enable },
40 { "pasv_enable", &tunable_pasv_enable },
41 { "port_enable", &tunable_port_enable },
42 { "chroot_local_user", &tunable_chroot_local_user },
43 { "write_enable", &tunable_write_enable },
44 { "anon_upload_enable", &tunable_anon_upload_enable },
45 { "anon_mkdir_write_enable", &tunable_anon_mkdir_write_enable },
46 { "anon_other_write_enable", &tunable_anon_other_write_enable },
47 { "chown_uploads", &tunable_chown_uploads },
48 { "connect_from_port_20", &tunable_connect_from_port_20 },
49 { "xferlog_enable", &tunable_xferlog_enable },
50 { "dirmessage_enable", &tunable_dirmessage_enable },
51 { "anon_world_readable_only", &tunable_anon_world_readable_only },
52 { "async_abor_enable", &tunable_async_abor_enable },
53 { "ascii_upload_enable", &tunable_ascii_upload_enable },
54 { "ascii_download_enable", &tunable_ascii_download_enable },
55 { "one_process_model", &tunable_one_process_model },
56 { "xferlog_std_format", &tunable_xferlog_std_format },
57 { "pasv_promiscuous", &tunable_pasv_promiscuous },
58 { "deny_email_enable", &tunable_deny_email_enable },
59 { "chroot_list_enable", &tunable_chroot_list_enable },
60 { "setproctitle_enable", &tunable_setproctitle_enable },
61 { "text_userdb_names", &tunable_text_userdb_names },
62 { "ls_recurse_enable", &tunable_ls_recurse_enable },
63 { "log_ftp_protocol", &tunable_log_ftp_protocol },
64 { "guest_enable", &tunable_guest_enable },
65 { "userlist_enable", &tunable_userlist_enable },
66 { "userlist_deny", &tunable_userlist_deny },
67 { "use_localtime", &tunable_use_localtime },
68 { "check_shell", &tunable_check_shell },
69 { "hide_ids", &tunable_hide_ids },
70 { "listen", &tunable_listen },
71 { "port_promiscuous", &tunable_port_promiscuous },
72 { "passwd_chroot_enable", &tunable_passwd_chroot_enable },
73 { "no_anon_password", &tunable_no_anon_password },
74 { "tcp_wrappers", &tunable_tcp_wrappers },
75 { "use_sendfile", &tunable_use_sendfile },
76 { "force_dot_files", &tunable_force_dot_files },
77 { "listen_ipv6", &tunable_listen_ipv6 },
78 { "dual_log_enable", &tunable_dual_log_enable },
79 { "syslog_enable", &tunable_syslog_enable },
80 { "background", &tunable_background },
81 { "virtual_use_local_privs", &tunable_virtual_use_local_privs },
82 { "session_support", &tunable_session_support },
83 { "download_enable", &tunable_download_enable },
84 { "dirlist_enable", &tunable_dirlist_enable },
85 { "chmod_enable", &tunable_chmod_enable },
86 { "secure_email_list_enable", &tunable_secure_email_list_enable },
87 { 0, 0 }
88 };
89
90 static struct parseconf_uint_setting
91 {
92 const char* p_setting_name;
93 unsigned int* p_variable;
94 }
95 parseconf_uint_array[] =
96 {
97 { "accept_timeout", &tunable_accept_timeout },
98 { "connect_timeout", &tunable_connect_timeout },
99 { "local_umask", &tunable_local_umask },
100 { "anon_umask", &tunable_anon_umask },
101 { "ftp_data_port", &tunable_ftp_data_port },
102 { "idle_session_timeout", &tunable_idle_session_timeout },
103 { "data_connection_timeout", &tunable_data_connection_timeout },
104 { "pasv_min_port", &tunable_pasv_min_port },
105 { "pasv_max_port", &tunable_pasv_max_port },
106 { "anon_max_rate", &tunable_anon_max_rate },
107 { "local_max_rate", &tunable_local_max_rate },
108 { "listen_port", &tunable_listen_port },
109 { "max_clients", &tunable_max_clients },
110 { "file_open_mode", &tunable_file_open_mode },
111 { "max_per_ip", &tunable_max_per_ip },
112 { "trans_chunk_size", &tunable_trans_chunk_size },
113 { 0, 0 }
114 };
115
116 static struct parseconf_str_setting
117 {
118 const char* p_setting_name;
119 const char** p_variable;
120 }
121 parseconf_str_array[] =
122 {
123 { "secure_chroot_dir", &tunable_secure_chroot_dir },
124 { "ftp_username", &tunable_ftp_username },
125 { "chown_username", &tunable_chown_username },
126 { "xferlog_file", &tunable_xferlog_file },
127 { "vsftpd_log_file", &tunable_vsftpd_log_file },
128 { "message_file", &tunable_message_file },
129 { "nopriv_user", &tunable_nopriv_user },
130 { "ftpd_banner", &tunable_ftpd_banner },
131 { "banned_email_file", &tunable_banned_email_file },
132 { "chroot_list_file", &tunable_chroot_list_file },
133 { "pam_service_name", &tunable_pam_service_name },
134 { "guest_username", &tunable_guest_username },
135 { "userlist_file", &tunable_userlist_file },
136 { "anon_root", &tunable_anon_root },
137 { "local_root", &tunable_local_root },
138 { "banner_file", &tunable_banner_file },
139 { "pasv_address", &tunable_pasv_address },
140 { "listen_address", &tunable_listen_address },
141 { "user_config_dir", &tunable_user_config_dir },
142 { "listen_address6", &tunable_listen_address6 },
143 { "cmds_allowed", &tunable_cmds_allowed },
144 { "hide_file", &tunable_hide_file },
145 { "deny_file", &tunable_deny_file },
146 { "user_sub_token", &tunable_user_sub_token },
147 { "email_password_file", &tunable_email_password_file },
148 { 0, 0 }
149 };
最終更新:2009年02月05日 00:08