diff options
author | Amar Tumballi <amar@gluster.com> | 2010-10-04 13:27:43 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-10-04 12:09:12 -0700 |
commit | 4c28d069b5be71bb2136d85e7a9b9fe0d07e04a1 (patch) | |
tree | 1c0b0d6eedcefb8eb0d28a1380059942ee47b6e7 | |
parent | dc1113c4a02b1b1186bf37e09685631891d85537 (diff) |
glusterd-volgen: fix the auth.allow/auth.reject keys
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1798 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1798
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c index 0218a3c7634..dc336369ad5 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.c +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c @@ -642,15 +642,19 @@ server_auth_option_handler (glusterfs_graph_t *graph, xlator_list_t *trav = NULL; char *aa = NULL; int ret = 0; + char *key = NULL; if (strcmp (vme->option, "!server-auth") != 0) return 0; xl = first_of (graph); + /* from 'auth.allow' -> 'allow', and 'auth.reject' -> 'reject' */ + key = strchr (vme->key, '.') + 1; + for (trav = xl->children; trav; trav = trav->next) { ret = gf_asprintf (&aa, "auth.addr.%s.%s", trav->xlator->name, - vme->key); + key); if (ret != -1) { ret = xlator_set_option (xl, aa, vme->value); GF_FREE (aa); |