Bug 36792: Limit POSIX imports 23.05.x
authorJanusz Kaczmarek <januszop@gmail.com>
Mon, 6 May 2024 12:06:22 +0000 (12:06 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 31 May 2024 15:56:28 +0000 (15:56 +0000)
commit822d7f43ab7437ce6f82108260f73e165db4b374
tree848b86aa038bec1dcd91c14b085923677de5b4dc
parenta7959a7d3004a9ac340b39c11181c93ab843f65d
Bug 36792: Limit POSIX imports

A Marcel's QA patch to Bug 36552 added use POSIX; in two spots.
In https://metacpan.org/pod/POSIX we read:

CAVEATS
Everything is exported by default (with a handful of exceptions). This is
an unfortunate backwards compatibility feature and its use is strongly
discouraged. You should either prevent the exporting (by saying use
POSIX ();, as usual) and then use fully qualified names (e.g.
POSIX::SEEK_END), or give an explicit import list. If you
do neither and opt for the default (as in use POSIX;), you will
import hundreds and hundreds of symbols into your namespace.

This patch fixes this.

No test plan.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 8d9ccd6fc371877fbd4d016ee3bc1de54721787e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit ca023b334cc9b79cfd85e6bb9a75c7037ae1fd95)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
authorities/authorities.pl
cataloguing/addbiblio.pl