From 0b87ff7bc6f0a40b6fe6f3231826df513254bb19 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Sun, 5 Jul 2026 12:44:00 +0200 Subject: [PATCH] Add defaupt path to --conffile, if not set. Signed-off-by: Thomas Hochstein --- lib/NewsStats.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/NewsStats.pm b/lib/NewsStats.pm index a68e36d..3653a71 100644 --- a/lib/NewsStats.pm +++ b/lib/NewsStats.pm @@ -101,6 +101,8 @@ sub ReadConfig { my ($ConfFile) = @_; # set default $ConfFile = $HomePath . '/etc/newsstats.conf' if !$ConfFile; + # add default path if none is set + $ConfFile = $HomePath . '/etc/' . $ConfFile if ($ConfFile !~ /[\\\/]/); # mandatory configuration options my @Mandatory = ('DBDriver','DBHost','DBUser','DBPw','DBDatabase', 'DBTableRaw','DBTableGrps');