From 8f3a2d54a6d3ffa7eefa13478c67ccfa9a3df513 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 15 May 1998 01:02:49 +0000 Subject: added "exclude" and "exclude from" options to rsyncd.conf. This is useful for mirroring a web site when you don't want users to mirror everything. --- loadparm.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'loadparm.c') diff --git a/loadparm.c b/loadparm.c index 6755c4c9..52fdaa8a 100644 --- a/loadparm.c +++ b/loadparm.c @@ -123,6 +123,8 @@ typedef struct char *hosts_deny; char *auth_users; char *secrets_file; + char *exclude; + char *exclude_from; } service; @@ -140,6 +142,8 @@ static service sDefault = NULL, /* hosts deny */ NULL, /* auth users */ NULL, /* secrets file */ + NULL, /* exclude */ + NULL, /* exclude from */ }; @@ -238,6 +242,8 @@ static struct parm_struct parm_table[] = {"hosts deny", P_STRING, P_LOCAL, &sDefault.hosts_deny, NULL, 0}, {"auth users", P_STRING, P_LOCAL, &sDefault.auth_users, NULL, 0}, {"secrets file", P_STRING, P_LOCAL, &sDefault.secrets_file,NULL, 0}, + {"exclude", P_STRING, P_LOCAL, &sDefault.exclude, NULL, 0}, + {"exclude from", P_STRING, P_LOCAL, &sDefault.exclude_from,NULL, 0}, {NULL, P_BOOL, P_NONE, NULL, NULL, 0} }; @@ -300,6 +306,8 @@ FN_LOCAL_STRING(lp_hosts_allow, hosts_allow) FN_LOCAL_STRING(lp_hosts_deny, hosts_deny) FN_LOCAL_STRING(lp_auth_users, auth_users) FN_LOCAL_STRING(lp_secrets_file, secrets_file) +FN_LOCAL_STRING(lp_exclude, exclude) +FN_LOCAL_STRING(lp_exclude_from, exclude_from) /* local prototypes */ static int strwicmp( char *psz1, char *psz2 ); -- cgit v1.2.1