Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
09e13ae2
Commit
09e13ae2
authored
May 14, 1998
by
Andrew Tridgell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed "syslog facility" to an enumerated type so the string name is
used in rsyncd.conf
parent
5a96ee05
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
1 deletion
+67
-1
loadparm.c
loadparm.c
+67
-1
No files found.
loadparm.c
View file @
09e13ae2
...
...
@@ -152,6 +152,72 @@ static BOOL bInGlobalSection = True;
#define NUMPARAMETERS (sizeof(parm_table) / sizeof(struct parm_struct))
static
struct
enum_list
enum_facilities
[]
=
{
#ifdef LOG_AUTH
{
LOG_AUTH
,
"auth"
},
#endif
#ifdef LOG_AUTHPRIV
{
LOG_AUTHPRIV
,
"authpriv"
},
#endif
#ifdef LOG_CRON
{
LOG_CRON
,
"cron"
},
#endif
#ifdef LOG_DAEMON
{
LOG_DAEMON
,
"daemon"
},
#endif
#ifdef LOG_FTP
{
LOG_FTP
,
"ftp"
},
#endif
#ifdef LOG_KERN
{
LOG_KERN
,
"kern"
},
#endif
#ifdef LOG_LPR
{
LOG_LPR
,
"lpr"
},
#endif
#ifdef LOG_MAIL
{
LOG_MAIL
,
"mail"
},
#endif
#ifdef LOG_NEWS
{
LOG_NEWS
,
"news"
},
#endif
#ifdef LOG_AUTH
{
LOG_AUTH
,
"security"
},
#endif
#ifdef LOG_SYSLOG
{
LOG_SYSLOG
,
"syslog"
},
#endif
#ifdef LOG_USER
{
LOG_USER
,
"user"
},
#endif
#ifdef LOG_UUCP
{
LOG_UUCP
,
"uucp"
},
#endif
#ifdef LOG_LOCAL0
{
LOG_LOCAL0
,
"local0"
},
#endif
#ifdef LOG_LOCAL1
{
LOG_LOCAL1
,
"local1"
},
#endif
#ifdef LOG_LOCAL2
{
LOG_LOCAL2
,
"local2"
},
#endif
#ifdef LOG_LOCAL3
{
LOG_LOCAL3
,
"local3"
},
#endif
#ifdef LOG_LOCAL4
{
LOG_LOCAL4
,
"local4"
},
#endif
#ifdef LOG_LOCAL5
{
LOG_LOCAL5
,
"local5"
},
#endif
#ifdef LOG_LOCAL6
{
LOG_LOCAL6
,
"local6"
},
#endif
#ifdef LOG_LOCAL7
{
LOG_LOCAL7
,
"local7"
},
#endif
{
-
1
,
NULL
}};
/* note that we do not initialise the defaults union - it is not allowed in ANSI C */
static
struct
parm_struct
parm_table
[]
=
...
...
@@ -159,7 +225,7 @@ static struct parm_struct parm_table[] =
{
"max connections"
,
P_INTEGER
,
P_GLOBAL
,
&
Globals
.
max_connections
,
NULL
,
0
},
{
"motd file"
,
P_STRING
,
P_GLOBAL
,
&
Globals
.
motd_file
,
NULL
,
0
},
{
"lock file"
,
P_STRING
,
P_GLOBAL
,
&
Globals
.
lock_file
,
NULL
,
0
},
{
"syslog facility"
,
P_
INTEGER
,
P_GLOBAL
,
&
Globals
.
syslog_facility
,
NULL
,
0
},
{
"syslog facility"
,
P_
ENUM
,
P_GLOBAL
,
&
Globals
.
syslog_facility
,
enum_facilities
,
0
},
{
"name"
,
P_STRING
,
P_LOCAL
,
&
sDefault
.
name
,
NULL
,
0
},
{
"comment"
,
P_STRING
,
P_LOCAL
,
&
sDefault
.
comment
,
NULL
,
0
},
{
"path"
,
P_STRING
,
P_LOCAL
,
&
sDefault
.
path
,
NULL
,
0
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment