when activation-details-unit-name is encountered multiple times.
Resolves: #27623
}
int activation_details_deserialize(const char *key, const char *value, ActivationDetails **details) {
+ int r;
+
assert(key);
assert(value);
assert(details);
}
if (streq(key, "activation-details-unit-name")) {
- (*details)->trigger_unit_name = strdup(value);
- if (!(*details)->trigger_unit_name)
- return -ENOMEM;
+ r = free_and_strdup(&(*details)->trigger_unit_name, value);
+ if (r < 0)
+ return r;
return 0;
}
--- /dev/null
+
+y.service
+job
+activation-details-unit-type=path
+activation-details-unit-name
+activation-details-unit-name
\ No newline at end of file