Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#561970: libdate-manip-perl: cannot be used in taint (-T) mode

20 views
Skip to first unread message

Scott Barker

unread,
Dec 21, 2009, 12:10:01 PM12/21/09
to
Package: libdate-manip-perl
Version: 6.05-1
Severity: normal


Perl scripts cannot be run in taint mode when using Date::Manip. This simple
perl script:

#!/usr/bin/perl -T
use Date::Manip;

fails with the following message:

Insecure $ENV{PATH} while running with -T switch at /usr/share/perl5/Date/Manip/TZ.pm line 588.
Compilation failed in require at ./test line 3.
BEGIN failed--compilation aborted at ./test line 3.

This seems to be a result of the TZ methods including commands to be run
with the _cmd subroutine.

-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_CA.utf8, LC_CTYPE=en_CA.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libdate-manip-perl depends on:
ii libyaml-syck-perl 1.07-1 fast, lightweight YAML loader and
ii perl 5.10.1-8 Larry Wall's Practical Extraction

libdate-manip-perl recommends no packages.

libdate-manip-perl suggests no packages.

-- debconf-show failed

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Scott Barker

unread,
Dec 21, 2009, 12:40:02 PM12/21/09
to
Following up, it appears that the problem is that Date::Manip::TZ does
not understand SystemV timezones as used by Debian. My /etc/timezone
file contains:

SystemV/MST7MDT

Changing it to:

America/Edmonton

fixes the insecure path taint error.

--
Scott Barker sc...@mostlylinux.ca
Linux Consultant http://www.mostlylinux.ca/scott

0 new messages