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

tizoo

Well-Known Member
Jan 6, 2004
77
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,903
2,237
463
I still have this issue on EasyApache v3.34.3 rev9999. tizoo's changes worked.
Hello,

Could you let us know the specific steps you were taking to reproduce this issue before you manually updated the file?

Thank you.