From: Don Armstrong Date: Wed, 11 Apr 2012 21:03:37 +0000 (-0700) Subject: no longer check for uid equality with DEBBUGS_CONFIG_FILE env var X-Git-Tag: release/2.6.0~395 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=1df784bf875bea9bc14b82d4e0bfc413ba202f06 no longer check for uid equality with DEBBUGS_CONFIG_FILE env var --- diff --git a/Debbugs/Config.pm b/Debbugs/Config.pm index f4761a0..87e61a2 100644 --- a/Debbugs/Config.pm +++ b/Debbugs/Config.pm @@ -103,13 +103,15 @@ use Safe; # untaint $ENV{DEBBUGS_CONFIG_FILE} if it's owned by us # This enables us to test things that are -T. if (exists $ENV{DEBBUGS_CONFIG_FILE}) { - if (${[stat($ENV{DEBBUGS_CONFIG_FILE})]}[4] == $<) { +# This causes all sorts of problems for mirrors of debbugs; disable +# it. +# if (${[stat($ENV{DEBBUGS_CONFIG_FILE})]}[4] == $<) { $ENV{DEBBUGS_CONFIG_FILE} =~ /(.+)/; $ENV{DEBBUGS_CONFIG_FILE} = $1; - } - else { - die "Environmental variable DEBBUGS_CONFIG_FILE set, and $ENV{DEBBUGS_CONFIG_FILE} is not owned by the user running this script."; - } +# } +# else { +# die "Environmental variable DEBBUGS_CONFIG_FILE set, and $ENV{DEBBUGS_CONFIG_FILE} is not owned by the user running this script."; +# } } read_config(exists $ENV{DEBBUGS_CONFIG_FILE}?$ENV{DEBBUGS_CONFIG_FILE}:'/etc/debbugs/config');