]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
import-generator: open up NotifyAccess for varlinkctl
authorMike Yuan <me@yhndnzj.com>
Tue, 25 Jun 2024 12:50:11 +0000 (14:50 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 25 Jun 2024 21:00:26 +0000 (23:00 +0200)
So that it can report errors through VARLINKERROR=.

src/import/import-generator.c

index 29fa5aad320a4aa515c59c7653aad21f2d432b45..a7660c44e0c63e729133fc62cba43f0eb3992c24 100644 (file)
@@ -240,7 +240,8 @@ static int transfer_generate(sd_json_variant *v, size_t c) {
 
         fputs("\n"
               "[Service]\n"
-              "Type=oneshot\n", f);
+              "Type=oneshot\n"
+              "NotifyAccess=main\n", f);
 
         _cleanup_free_ char *formatted = NULL;
         r = sd_json_variant_format(v, /* flags= */ 0, &formatted);