From: Guilhem Moulin Date: Sun, 12 Jun 2016 20:17:44 +0000 (+0200) Subject: pullimap: Clean up PATH. X-Git-Url: https://git.g-eek.se/?a=commitdiff_plain;h=f2f4d314990f67ad1ad842951f724f6bda678cfd;p=interimap.git pullimap: Clean up PATH. --- diff --git a/interimap b/interimap index 17d28c2..150c754 100755 --- a/interimap +++ b/interimap @@ -33,7 +33,7 @@ use lib 'lib'; use Net::IMAP::InterIMAP qw/read_config compact_set/; # Clean up PATH -$ENV{PATH} = join ':', qw{/usr/local/bin /usr/bin /bin}; +$ENV{PATH} = join ':', qw{/usr/bin /bin}; delete @ENV{qw/IFS CDPATH ENV BASH_ENV/}; my %CONFIG; diff --git a/pullimap b/pullimap index 65e222b..054048c 100755 --- a/pullimap +++ b/pullimap @@ -33,6 +33,10 @@ use Socket qw/PF_INET PF_INET6 SOCK_STREAM/; use lib 'lib'; use Net::IMAP::InterIMAP qw/read_config compact_set/; +# Clean up PATH +$ENV{PATH} = join ':', qw{/usr/bin /bin}; +delete @ENV{qw/IFS CDPATH ENV BASH_ENV/}; + my %CONFIG; sub usage(;$) { my $rv = shift // 0;