diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-05-15 01:02:49 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-05-15 01:02:49 +0000 |
commit | 8f3a2d54a6d3ffa7eefa13478c67ccfa9a3df513 (patch) | |
tree | 1606a0d7e37d4bfce5c09796804f4d4b19a4f029 /loadparm.c | |
parent | e22de16264d3c5a05b3869692af52b1ccdf3aa80 (diff) | |
download | rsync-8f3a2d54a6d3ffa7eefa13478c67ccfa9a3df513.tar.gz |
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.
Diffstat (limited to 'loadparm.c')
-rw-r--r-- | loadparm.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 ); |