aboutsummaryrefslogtreecommitdiffstats
path: root/loadparm.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-05-15 01:02:49 +0000
committerAndrew Tridgell <tridge@samba.org>1998-05-15 01:02:49 +0000
commit8f3a2d54a6d3ffa7eefa13478c67ccfa9a3df513 (patch)
tree1606a0d7e37d4bfce5c09796804f4d4b19a4f029 /loadparm.c
parente22de16264d3c5a05b3869692af52b1ccdf3aa80 (diff)
downloadandroid_external_rsync-8f3a2d54a6d3ffa7eefa13478c67ccfa9a3df513.tar.gz
android_external_rsync-8f3a2d54a6d3ffa7eefa13478c67ccfa9a3df513.tar.bz2
android_external_rsync-8f3a2d54a6d3ffa7eefa13478c67ccfa9a3df513.zip
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.c8
1 files changed, 8 insertions, 0 deletions
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 );