From 154113f7187e2648ce47bdfcda73c2da03ea1fef Mon Sep 17 00:00:00 2001 From: William Brown Date: Mon, 9 May 2016 13:35:09 +1000 Subject: [PATCH] Ticket 48826 - 52updateAESplugin.pl may fail on older versions of perl Bug Description: The warning class for warnings 'experimental::smartmatch'; does not exist on EL7 Fix Description: Check the perl version before attempting the warning. https://fedorahosted.org/389/ticket/48826 Author: wibrown Review by: ??? --- ldap/admin/src/scripts/52updateAESplugin.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ldap/admin/src/scripts/52updateAESplugin.pl b/ldap/admin/src/scripts/52updateAESplugin.pl index ae258b6..9a27729 100644 --- a/ldap/admin/src/scripts/52updateAESplugin.pl +++ b/ldap/admin/src/scripts/52updateAESplugin.pl @@ -6,7 +6,8 @@ use File::Basename; use File::Copy; use DSUtil qw(debug serverIsRunning); -no warnings 'experimental::smartmatch'; +# no warnings 'experimental::smartmatch'; +no if $] >= 5.017011, warnings => 'experimental::smartmatch'; # # Check if there is a DES plugin and make sure the AES plugin contains the same attributes -- 2.5.5