Bug 36792: Limit POSIX imports
authorJanusz Kaczmarek <januszop@gmail.com>
Mon, 6 May 2024 12:06:22 +0000 (12:06 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 30 May 2024 08:02:31 +0000 (10:02 +0200)
commitca023b334cc9b79cfd85e6bb9a75c7037ae1fd95
tree3eda149f74034b5ca88f8e7fbcd73da17b95f38c
parentb478d91b59a11574b0fd7689b5037c2c29ee8d42
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>
authorities/authorities.pl
cataloguing/addbiblio.pl