mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-25 23:21:33 +03:00
Merge pull request #10795 from poettering/generator-fixes
trivial fixes to some generators
This commit is contained in:
commit
62adb5d085
@ -4453,7 +4453,7 @@ static void manager_deserialize_uid_refs_one_internal(
|
||||
|
||||
r = hashmap_replace(*uid_refs, UID_TO_PTR(uid), UINT32_TO_PTR(c));
|
||||
if (r < 0) {
|
||||
log_debug("Failed to add UID reference entry");
|
||||
log_debug_errno(r, "Failed to add UID reference entry: %m");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -174,6 +174,8 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
finish:
|
||||
arg_default_unit = mfree(arg_default_unit);
|
||||
strv_free(arg_wants);
|
||||
strv_free(arg_mask);
|
||||
|
||||
return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||
}
|
||||
|
@ -95,10 +95,13 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
if (arg_noresume) {
|
||||
log_notice("Found \"noresume\" on the kernel command line, quitting.");
|
||||
return EXIT_SUCCESS;
|
||||
r = 0;
|
||||
goto finish;
|
||||
}
|
||||
|
||||
r = process_resume();
|
||||
|
||||
finish:
|
||||
free(arg_resume_device);
|
||||
|
||||
return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user