diff options
Diffstat (limited to 'xlators')
-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 |