/scripts/remservlets w/ cpanel::Getopt::Param 0.0.5.1

tizoo

Well-Known Member
Jan 6, 2004
75
3
158
cPanel Access Level
DataCenter Provider
Hi all and cPanel developpers,

CloudLinux 6
WHM 56.0 build 22
cpanel-perl-522-Getopt-Param-0.0.5-1.cp1156.x86_64

The Perl module is installed in
Code:
# rpm -ql cpanel-perl-522-Getopt-Param
/usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/Getopt/Param.pm
Then I guess the following patch will correct this new directory installation :

Code:
diff -Naur a/remservlets b/remservlets
--- a/remservlets   2016-06-07 19:14:46.333948772 +0200
+++ b/remservlets   2016-06-07 19:17:59.917948592 +0200
@@ -17,7 +17,7 @@
 }
 use Cpanel::HttpUtils  ();  #issafe
-use Cpanel::CPAN::Getopt::Param ();  #issafe
+use Getopt::Param  ();  #issafe
 use Cpanel::EditHttpdconf  ();  #issafe
 use Cpanel::SafeDir  ();
@@ -37,7 +37,7 @@
  exit;
 };
-my $prm = Cpanel::CPAN::Getopt::Param->new(
+my $prm = Getopt::Param->new(
  {  #issafe
  'help_coderef' => $help_cr,
  }
Hope this helps.

Philippe