From 76d9f279b819eeec32b4a2cba896c3a289c33013 Mon Sep 17 00:00:00 2001 From: Martin Gruner Date: Thu, 28 May 2020 08:47:24 +0200 Subject: [PATCH] Changed shebang commandline of Perl scripts from `/usr/bin/perl` (which hardcodes the system Perl) to `/usr/bin/env perl` (which uses the first found Perl from the $PATH). This should not cause any changes on systems where there is only one Perl installed, but more predictable behaviour on systems which have an additional "custom" Perl installed. --- CHANGES.md | 1 + bin/cgi-bin/customer.pl | 2 +- bin/cgi-bin/index.pl | 2 +- bin/cgi-bin/installer.pl | 2 +- bin/cgi-bin/nph-genericinterface.pl | 2 +- bin/cgi-bin/public.pl | 2 +- bin/cgi-bin/rpc.pl | 2 +- bin/fcgi-bin/customer.pl | 2 +- bin/fcgi-bin/index.pl | 2 +- bin/fcgi-bin/installer.pl | 2 +- bin/fcgi-bin/nph-genericinterface.pl | 2 +- bin/fcgi-bin/public.pl | 2 +- bin/otrs.CheckModules.pl | 2 +- bin/otrs.CheckSum.pl | 2 +- bin/otrs.Console.pl | 2 +- bin/otrs.Daemon.pl | 2 +- bin/otrs.PostMaster.pl | 2 +- bin/otrs.SetPermissions.pl | 2 +- development/webservices/otrs.RESTRequest.pl | 2 +- development/webservices/otrs.SOAPRequest.pl | 2 +- scripts/DBUpdate-to-6.pl | 2 +- scripts/apache2-perl-startup.pl | 2 +- scripts/backup.pl | 2 +- scripts/contrib/otrs.SyncLDAP2DB.pl | 2 +- scripts/restore.pl | 2 +- scripts/rpc-example.pl | 2 +- scripts/test/sample/GenericAgent/CustomCode/DeleteTmp.pl | 2 +- scripts/tools/base64.pl | 2 +- scripts/tools/md5sum.pl | 2 +- 29 files changed, 29 insertions(+), 28 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 656c422ab14..11f8e508841 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,5 @@ # 6.0.29 ????-??-?? + - 2020-05-28 Changed shebang commandline of Perl scripts from `/usr/bin/perl` (which hardcodes the system Perl) to `/usr/bin/env perl` (which uses the first found Perl from the $PATH). This should not cause any changes on systems where there is only one Perl installed, but more predictable behaviour on systems which have an additional "custom" Perl installed. - 2020-05-26 Fixed bug#[15143](https://bugs.otrs.org/show_bug.cgi?id=15143) - SysConfig broken for editing array of hashes. - 2020-05-18 Fixed bug#[13924](https://bugs.otrs.org/show_bug.cgi?id=13924) - Error creating DateTime object. - 2020-05-13 Fixed bug#[15016](https://bugs.otrs.org/show_bug.cgi?id=15016) - Processing of sequence flows throws error for tickets assigned to unknown or invalid processes. diff --git a/bin/cgi-bin/customer.pl b/bin/cgi-bin/customer.pl index 0f55576702a..6f1efdb9e67 100755 --- a/bin/cgi-bin/customer.pl +++ b/bin/cgi-bin/customer.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/bin/cgi-bin/index.pl b/bin/cgi-bin/index.pl index 5c8a8ed546b..b9b000abee2 100755 --- a/bin/cgi-bin/index.pl +++ b/bin/cgi-bin/index.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/bin/cgi-bin/installer.pl b/bin/cgi-bin/installer.pl index aa340aaa84b..f9e979559e9 100755 --- a/bin/cgi-bin/installer.pl +++ b/bin/cgi-bin/installer.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/bin/cgi-bin/nph-genericinterface.pl b/bin/cgi-bin/nph-genericinterface.pl index cc488bbb2e4..949550853ef 100755 --- a/bin/cgi-bin/nph-genericinterface.pl +++ b/bin/cgi-bin/nph-genericinterface.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/bin/cgi-bin/public.pl b/bin/cgi-bin/public.pl index 4ae52885ea1..50ac76e85ef 100755 --- a/bin/cgi-bin/public.pl +++ b/bin/cgi-bin/public.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/bin/cgi-bin/rpc.pl b/bin/cgi-bin/rpc.pl index f192b0faee3..eef149c289b 100755 --- a/bin/cgi-bin/rpc.pl +++ b/bin/cgi-bin/rpc.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/bin/fcgi-bin/customer.pl b/bin/fcgi-bin/customer.pl index 39df396bc33..cc68b9f55ff 100755 --- a/bin/fcgi-bin/customer.pl +++ b/bin/fcgi-bin/customer.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/bin/fcgi-bin/index.pl b/bin/fcgi-bin/index.pl index 0502680eb32..70c6afe45a2 100755 --- a/bin/fcgi-bin/index.pl +++ b/bin/fcgi-bin/index.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/bin/fcgi-bin/installer.pl b/bin/fcgi-bin/installer.pl index ab548076632..81f2415d3f5 100755 --- a/bin/fcgi-bin/installer.pl +++ b/bin/fcgi-bin/installer.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/bin/fcgi-bin/nph-genericinterface.pl b/bin/fcgi-bin/nph-genericinterface.pl index 9ac6b1b137e..627beb5e054 100755 --- a/bin/fcgi-bin/nph-genericinterface.pl +++ b/bin/fcgi-bin/nph-genericinterface.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/bin/fcgi-bin/public.pl b/bin/fcgi-bin/public.pl index fe2e6314e2f..7c693334a0e 100755 --- a/bin/fcgi-bin/public.pl +++ b/bin/fcgi-bin/public.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/bin/otrs.CheckModules.pl b/bin/otrs.CheckModules.pl index ac1e07cae2d..60dcbd25a91 100755 --- a/bin/otrs.CheckModules.pl +++ b/bin/otrs.CheckModules.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/bin/otrs.CheckSum.pl b/bin/otrs.CheckSum.pl index 75699e89686..1841deb988d 100755 --- a/bin/otrs.CheckSum.pl +++ b/bin/otrs.CheckSum.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/bin/otrs.Console.pl b/bin/otrs.Console.pl index c35b90e4fb1..0005829ac3a 100755 --- a/bin/otrs.Console.pl +++ b/bin/otrs.Console.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/bin/otrs.Daemon.pl b/bin/otrs.Daemon.pl index 7e2deebd9d8..117a7efc7b0 100755 --- a/bin/otrs.Daemon.pl +++ b/bin/otrs.Daemon.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -X +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/bin/otrs.PostMaster.pl b/bin/otrs.PostMaster.pl index 71e720e14cf..e2892e3c495 100755 --- a/bin/otrs.PostMaster.pl +++ b/bin/otrs.PostMaster.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/bin/otrs.SetPermissions.pl b/bin/otrs.SetPermissions.pl index 8a975f05b9e..957609ec295 100755 --- a/bin/otrs.SetPermissions.pl +++ b/bin/otrs.SetPermissions.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/development/webservices/otrs.RESTRequest.pl b/development/webservices/otrs.RESTRequest.pl index cfb978d492b..387a202a2c0 100755 --- a/development/webservices/otrs.RESTRequest.pl +++ b/development/webservices/otrs.RESTRequest.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/development/webservices/otrs.SOAPRequest.pl b/development/webservices/otrs.SOAPRequest.pl index ec68e35debd..d01b3335042 100755 --- a/development/webservices/otrs.SOAPRequest.pl +++ b/development/webservices/otrs.SOAPRequest.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/scripts/DBUpdate-to-6.pl b/scripts/DBUpdate-to-6.pl index 5e41bb403f6..da57c1d377c 100755 --- a/scripts/DBUpdate-to-6.pl +++ b/scripts/DBUpdate-to-6.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/scripts/apache2-perl-startup.pl b/scripts/apache2-perl-startup.pl index 495a9441efa..514909cf428 100755 --- a/scripts/apache2-perl-startup.pl +++ b/scripts/apache2-perl-startup.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/scripts/backup.pl b/scripts/backup.pl index 04a2664d1c0..6208d21b801 100755 --- a/scripts/backup.pl +++ b/scripts/backup.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/scripts/contrib/otrs.SyncLDAP2DB.pl b/scripts/contrib/otrs.SyncLDAP2DB.pl index 996b8c8b899..130d2c25acc 100755 --- a/scripts/contrib/otrs.SyncLDAP2DB.pl +++ b/scripts/contrib/otrs.SyncLDAP2DB.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/scripts/restore.pl b/scripts/restore.pl index 61548111d42..e0bbf1be922 100755 --- a/scripts/restore.pl +++ b/scripts/restore.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/scripts/rpc-example.pl b/scripts/rpc-example.pl index 53a9842b81c..43606a0784d 100755 --- a/scripts/rpc-example.pl +++ b/scripts/rpc-example.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/scripts/test/sample/GenericAgent/CustomCode/DeleteTmp.pl b/scripts/test/sample/GenericAgent/CustomCode/DeleteTmp.pl index 91a1f6a8591..11c62352d57 100755 --- a/scripts/test/sample/GenericAgent/CustomCode/DeleteTmp.pl +++ b/scripts/test/sample/GenericAgent/CustomCode/DeleteTmp.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -X +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/scripts/tools/base64.pl b/scripts/tools/base64.pl index 10070a2d774..22647c63e8d 100755 --- a/scripts/tools/base64.pl +++ b/scripts/tools/base64.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- diff --git a/scripts/tools/md5sum.pl b/scripts/tools/md5sum.pl index 5da82e098a1..2dd14eaa6e6 100755 --- a/scripts/tools/md5sum.pl +++ b/scripts/tools/md5sum.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # --