From: Don Armstrong Date: Wed, 18 Jan 2012 06:16:06 +0000 (-0800) Subject: test for equality, and only complain about the conffile missing if debug is set X-Git-Tag: release/2.6.0~415^2~15 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=621ee75bb7ca185b1d428fa606d5d31c44c19e0d test for equality, and only complain about the conffile missing if debug is set --- diff --git a/Debbugs/Config.pm b/Debbugs/Config.pm index ae4c04f..f4761a0 100644 --- a/Debbugs/Config.pm +++ b/Debbugs/Config.pm @@ -103,7 +103,7 @@ 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] = $<) { + if (${[stat($ENV{DEBBUGS_CONFIG_FILE})]}[4] == $<) { $ENV{DEBBUGS_CONFIG_FILE} =~ /(.+)/; $ENV{DEBBUGS_CONFIG_FILE} = $1; } @@ -1025,7 +1025,7 @@ set_default(\%config,'html_expire_note', sub read_config{ my ($conf_file) = @_; if (not -e $conf_file) { - print STDERR "configuration file '$conf_file' doesn't exist; skipping it"; + print STDERR "configuration file '$conf_file' doesn't exist; skipping it\n" if $DEBUG; return; } # first, figure out what type of file we're reading in.