From 621ee75bb7ca185b1d428fa606d5d31c44c19e0d Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 17 Jan 2012 22:16:06 -0800 Subject: [PATCH] test for equality, and only complain about the conffile missing if debug is set --- Debbugs/Config.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.39.2