From: Michael Stapelberg Date: Tue, 10 Jul 2012 16:55:05 +0000 (+0200) Subject: taint mode fix for FreeBSD X-Git-Tag: 4.14~14^2~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4c97c94a0a29e0b775974c780d574639372e76c2;p=i3%2Fi3 taint mode fix for FreeBSD --- diff --git a/lib/AnyEvent/I3.pm b/lib/AnyEvent/I3.pm index 831f350d..b08fdf63 100644 --- a/lib/AnyEvent/I3.pm +++ b/lib/AnyEvent/I3.pm @@ -114,6 +114,8 @@ sub new { if ($paths =~ /^(.*)$/) { $ENV{PATH} = $1; } + # Otherwise the qx() operator wont work: + delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'}; chomp($path = qx(i3 --get-socketpath)); # Circumventing taint mode again: the socket can be anywhere on the # system and that’s okay.