|
|
a5fefec |
From 01729086bf3fa67e8ef4912aa6c727ab78a32112 Mon Sep 17 00:00:00 2001
|
|
|
a5fefec |
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
|
|
a5fefec |
Date: Tue, 11 Aug 2020 13:02:04 +0200
|
|
|
a5fefec |
Subject: [PATCH] Do not use lib from web-service-request tool
|
|
|
a5fefec |
MIME-Version: 1.0
|
|
|
a5fefec |
Content-Type: text/plain; charset=UTF-8
|
|
|
a5fefec |
Content-Transfer-Encoding: 8bit
|
|
|
a5fefec |
|
|
|
a5fefec |
Adding a relative path to @INC is insecure when running the script
|
|
|
a5fefec |
from a world-writable working directory. This patch removes the
|
|
|
a5fefec |
useless "use lib" from web-service-request.
|
|
|
a5fefec |
|
|
|
a5fefec |
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
|
a5fefec |
---
|
|
|
a5fefec |
Makefile.PL | 2 +-
|
|
|
a5fefec |
bin/web-service-request | 2 --
|
|
|
a5fefec |
2 files changed, 1 insertion(+), 3 deletions(-)
|
|
|
a5fefec |
|
|
|
a5fefec |
diff --git a/Makefile.PL b/Makefile.PL
|
|
|
a5fefec |
index 647d9fb..5b0af5b 100644
|
|
|
a5fefec |
--- a/Makefile.PL
|
|
|
a5fefec |
+++ b/Makefile.PL
|
|
|
a5fefec |
@@ -42,7 +42,6 @@ my %WriteMakefileArgs = (
|
|
|
a5fefec |
"Throwable::Error" => 0,
|
|
|
a5fefec |
"Try::Tiny" => 0,
|
|
|
a5fefec |
"URI" => 0,
|
|
|
a5fefec |
- "lib" => 0,
|
|
|
a5fefec |
"namespace::clean" => 0,
|
|
|
a5fefec |
"strict" => 0,
|
|
|
a5fefec |
"warnings" => 0
|
|
|
a5fefec |
@@ -60,6 +59,7 @@ my %WriteMakefileArgs = (
|
|
|
a5fefec |
"Test::More" => "0.96",
|
|
|
a5fefec |
"Test::Number::Delta" => 0,
|
|
|
a5fefec |
"base" => 0,
|
|
|
a5fefec |
+ "lib" => 0,
|
|
|
a5fefec |
"utf8" => 0
|
|
|
a5fefec |
},
|
|
|
a5fefec |
"VERSION" => "2.006002",
|
|
|
a5fefec |
diff --git a/bin/web-service-request b/bin/web-service-request
|
|
|
a5fefec |
index 2846739..14d3726 100755
|
|
|
a5fefec |
--- a/bin/web-service-request
|
|
|
a5fefec |
+++ b/bin/web-service-request
|
|
|
a5fefec |
@@ -5,8 +5,6 @@ use 5.008;
|
|
|
a5fefec |
use strict;
|
|
|
a5fefec |
use warnings;
|
|
|
a5fefec |
|
|
|
a5fefec |
-use lib 'lib';
|
|
|
a5fefec |
-
|
|
|
a5fefec |
use Data::Dumper;
|
|
|
a5fefec |
use Getopt::Long;
|
|
|
a5fefec |
use GeoIP2::WebService::Client;
|
|
|
a5fefec |
--
|
|
|
a5fefec |
2.25.4
|
|
|
a5fefec |
|