1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
$NetBSD: patch-ag,v 1.4 2005/09/28 17:32:17 rillig Exp $
--- server/setup.c.orig Mon Mar 23 11:48:02 1998
+++ server/setup.c Wed Sep 28 19:23:29 2005
@@ -219,33 +219,56 @@ StrList **dst;
struct optlist {
char *optname;
u_char *(*optfunc)();
- int optarg;
+ long int optarg;
} option[] = {
- "DebugOut", get_str, (int)&debug_file,
- "DebugLevel", get_int, (int)&debug_level,
- "ForkFlag", get_flag, (int)&fork_flag,
+/*
+ * Add option flag.
+ * Because They are lacked in here. See document.
+ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/10
+ */
+ "DebugOut", get_str, (long int)&debug_file,
+ "debugout", get_str, (long int)&debug_file,
+ "DebugLevel", get_int, (long int)&debug_level,
+ "debuglevel", get_int, (long int)&debug_level,
+ "ForkFlag", get_flag, (long int)&fork_flag,
+ "forkflag", get_flag, (long int)&fork_flag,
- "PortName", get_str, (int)&port_name,
+ "PortName", get_str, (long int)&port_name,
+ "portname", get_str, (long int)&port_name,
#ifdef TLI
- "PortNumber", get_str, (int)&port_number,
- "ProtoName", get_str, (int)&proto_name,
+ "PortNumber", get_str, (long int)&port_number,
+ "portnumber", get_str, (long int)&port_number,
+ "ProtoName", get_str, (long int)&proto_name,
+ "protoname", get_str, (long int)&proto_name,
#else
- "PortNumber", get_int, (int)&port_number,
+ "PortNumber", get_int, (long int)&port_number,
+ "portnumber", get_int, (long int)&port_number,
#endif
- "SocketName", get_str, (int)&socket_name,
+ "SocketName", get_str, (long int)&socket_name,
+ "socketname", get_str, (long int)&socket_name,
#ifdef LOCK_FILE
- "LockFile", get_str, (int)&lock_file;
+ "LockFile", get_str, (long int)&lock_file;
+ "lockfile", get_str, (long int)&lock_file;
#endif
- "maxclient", get_int, (int)&max_client,
- "dictdir", get_str, (int)&dict_dir,
- "readdict", get_list, (int)&read_dict,
- "opendict", get_list, (int)&open_dict,
- "errorout", get_str, (int)&error_file,
- "logout", get_str, (int)&log_file,
- "dirmode", get_int, (int)&dir_mode,
- "filemode", get_int, (int)&file_mode,
- "allowuser", get_list, (int)&allow_user,
+ "MaxClient", get_int, (long int)&max_client,
+ "maxclient", get_int, (long int)&max_client,
+ "DictDir", get_str, (long int)&dict_dir,
+ "dictdir", get_str, (long int)&dict_dir,
+ "ReadDict", get_list, (long int)&read_dict,
+ "readdict", get_list, (long int)&read_dict,
+ "OpenDict", get_list, (long int)&open_dict,
+ "opendict", get_list, (long int)&open_dict,
+ "ErrorOut", get_str, (long int)&error_file,
+ "errorout", get_str, (long int)&error_file,
+ "LogOut", get_str, (long int)&log_file,
+ "logout", get_str, (long int)&log_file,
+ "DirMode", get_int, (long int)&dir_mode,
+ "dirmode", get_int, (long int)&dir_mode,
+ "FileMode", get_int, (long int)&file_mode,
+ "filemode", get_int, (long int)&file_mode,
+ "AllowUser", get_list, (long int)&allow_user,
+ "allowuser", get_list, (long int)&allow_user,
0, 0, 0
};
|