aboutsummaryrefslogtreecommitdiffstats
path: root/lacme
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2020-08-03 22:57:32 +0200
committerGuilhem Moulin <guilhem@fripost.org>2020-08-04 01:39:39 +0200
commite419eb68718085fa2e2505eb4b4aa08145f7dc1c (patch)
treeb71aa88e60d4775bec2efece141acbb9f024a88d /lacme
parentda8b727f156d23553eecb90e8731d39c6027cb02 (diff)
Ignore [accountd] section from lacme.conf when the --socket option is defined.
This allows remotely-controlled lacme processes being controlled without modifying an config files. See https://bugs.debian.org/955767 .
Diffstat (limited to 'lacme')
-rwxr-xr-xlacme2
1 files changed, 1 insertions, 1 deletions
diff --git a/lacme b/lacme
index 566545b..8701047 100755
--- a/lacme
+++ b/lacme
@@ -87,7 +87,7 @@ do {
my $h = Config::Tiny::->read_string($conf) or die Config::Tiny::->errstr()."\n";
my $defaults = delete $h->{_} // {};
- my $accountd = exists $h->{accountd} ? 1 : 0;
+ my $accountd = defined $OPTS{socket} ? 0 : exists $h->{accountd} ? 1 : 0;
my %valid = (
client => {
socket => (defined $ENV{XDG_RUNTIME_DIR} ? "$ENV{XDG_RUNTIME_DIR}/S.lacme" : undef),