diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2020-08-03 22:57:32 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2020-08-04 01:39:39 +0200 |
commit | e419eb68718085fa2e2505eb4b4aa08145f7dc1c (patch) | |
tree | b71aa88e60d4775bec2efece141acbb9f024a88d /lacme | |
parent | da8b727f156d23553eecb90e8731d39c6027cb02 (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-x | lacme | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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), |