aboutsummaryrefslogtreecommitdiffstats
path: root/lacme-accountd
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2021-02-16 17:24:31 +0100
committerGuilhem Moulin <guilhem@fripost.org>2021-02-18 00:42:32 +0100
commit2efd4458f4db7f489ecc81f4039b8e8103edf9d9 (patch)
tree96c97c31ae1edd6b2b5bc746d1adf4d7eb8fad96 /lacme-accountd
parentc75bc6c37840b8fc2c57424d24c06a0bfe399de6 (diff)
Don't load configuration files from ./ by default.
This is a breaking change: lacme(8) resp. lacme-accountd(1) no longer consider ./lacme.conf resp. ./lacme-accountd.conf as default location for the configuration file. Doing so has security implications when running these program from insecure directories.
Diffstat (limited to 'lacme-accountd')
-rwxr-xr-xlacme-accountd3
1 files changed, 1 insertions, 2 deletions
diff --git a/lacme-accountd b/lacme-accountd
index d05fb9c..36e9d9f 100755
--- a/lacme-accountd
+++ b/lacme-accountd
@@ -65,8 +65,7 @@ usage(0) if $OPTS{help};
do {
my $conffile = $OPTS{config} // first { -f $_ }
- ( "./$NAME.conf"
- , ($ENV{XDG_CONFIG_HOME} // "$ENV{HOME}/.config")."/lacme/$NAME.conf"
+ ( ($ENV{XDG_CONFIG_HOME} // "$ENV{HOME}/.config") . "/lacme/$NAME.conf"
, "@@sysconfdir@@/lacme/$NAME.conf"
);
die "Error: Can't find configuration file\n" unless defined $conffile;