mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
unison: fix escaping of arguments
The `ExecStart=` option of systemd must take arguments fully quoted.
That is,
"-sshargs=-i somekey"
and not
-ssargs="-i somekey"
Additionally, inside arguments passed to unison, `=` characters must
be quoted. After unquotation by systemd, one must have
-sshargs=-o Foo\=4
instead of
-sshargs=-o Foo=4
(cherry picked from commit 92c682cd10)
Fixes #1500
This commit is contained in:
committed by
Robert Helgesson
parent
4a8d628054
commit
e6f96b6aa3
@@ -60,7 +60,7 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
serialiseArg = key: val: "-${key}=${escapeShellArg val}";
|
||||
serialiseArg = key: val: escapeShellArg "-${key}=${escape [ "=" ] val}";
|
||||
|
||||
serialiseArgs = args: concatStringsSep " " (mapAttrsToList serialiseArg args);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user