From c256b3aab50856a0a410a5f6e9e2725faf08ced0 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Mar 06 2017 09:48:42 +0000 Subject: Fixed using of uninitialized value (CPAN RT#18960) --- diff --git a/File-Pid-1.01-RT-18960-Fixed-using-of-uninitialized-value.patch b/File-Pid-1.01-RT-18960-Fixed-using-of-uninitialized-value.patch new file mode 100644 index 0000000..cc3d869 --- /dev/null +++ b/File-Pid-1.01-RT-18960-Fixed-using-of-uninitialized-value.patch @@ -0,0 +1,11 @@ +--- File-Pid-1.01/lib/File/Pid.pm.orig 2005-01-11 14:09:54.000000000 +0100 ++++ File-Pid-1.01/lib/File/Pid.pm 2011-02-04 18:28:50.000000000 +0100 +@@ -119,7 +119,7 @@ + + sub running { + my $self = shift; +- my $pid = $self->_get_pid_from_file; ++ my $pid = $self->_get_pid_from_file or return undef; + + return kill(0, $pid) + ? $pid diff --git a/perl-File-Pid.spec b/perl-File-Pid.spec index ca299d6..1336f6f 100644 --- a/perl-File-Pid.spec +++ b/perl-File-Pid.spec @@ -1,10 +1,11 @@ Name: perl-File-Pid Version: 1.01 -Release: 21%{?dist} +Release: 22%{?dist} Summary: Pid File Manipulation License: GPL+ or Artistic URL: http://search.cpan.org/dist/File-Pid/ Source0: http://www.cpan.org/authors/id/C/CW/CWEST/File-Pid-%{version}.tar.gz +Patch0: File-Pid-1.01-RT-18960-Fixed-using-of-uninitialized-value.patch BuildArch: noarch # Build BuildRequires: make @@ -32,6 +33,7 @@ the pid file. %prep %setup -q -n File-Pid-%{version} +%patch0 -p1 %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 @@ -50,6 +52,9 @@ make test %{_mandir}/man3/* %changelog +* Mon Mar 06 2017 Jitka Plesnikova - 1.01-22 +- Fixed using of uninitialized value (CPAN RT#18960) + * Sat Feb 11 2017 Fedora Release Engineering - 1.01-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild