diff options
author | Poornima G <pgurusid@redhat.com> | 2014-05-22 16:46:15 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-05-29 10:09:31 -0700 |
commit | a726e3e538f65d028d5da4cdbdd7892b9577dba1 (patch) | |
tree | 682b2a5cfa687c986043b044eed7d64e31a9ba0c /xlators/mgmt/glusterd/src | |
parent | cc0378d39f4082f51d5ef6e02b3007fe9e78cb31 (diff) |
rpm: Rename old hookscripts in an RPM-standard way.
Change-Id: I5e47ac8af8033821787281574276f38933de73cf
BUG: 1100251
Signed-off-by: Poornima G <pgurusid@redhat.com>
Reviewed-on: http://review.gluster.org/7362
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra Talur <rtalur@redhat.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-hooks.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-hooks.c b/xlators/mgmt/glusterd/src/glusterd-hooks.c index a845f540afa..2d402b0dd56 100644 --- a/xlators/mgmt/glusterd/src/glusterd-hooks.c +++ b/xlators/mgmt/glusterd/src/glusterd-hooks.c @@ -66,7 +66,8 @@ char glusterd_hook_dirnames[GD_OP_MAX][256] = static inline gf_boolean_t glusterd_is_hook_enabled (char *script) { - return (script[0] == 'S'); + return (script[0] == 'S' && (fnmatch ("*.rpmsave", script, 0) != 0) + && (fnmatch ("*.rpmnew", script, 0) != 0)); } int |