]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: swap cached_id_map and cached_name_map at one more place
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 23 Dec 2023 16:32:29 +0000 (01:32 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 23 Dec 2023 18:41:09 +0000 (03:41 +0900)
Follow-up for 2962a508508564ec35f231bd4246846d6d057115.
Fortunately, this does not change any behavior.

Replaces #30601.
Fixes CID#1532831.

src/systemctl/systemctl-util.c

index 2498725d3f4e593f616729ffdae0283e984c5c15..d3668dd12ee9e95abe973106e5ccbb53b89f4c43 100644 (file)
@@ -480,8 +480,8 @@ int unit_find_paths(
                 const char *unit_name,
                 LookupPaths *lp,
                 bool force_client_side,
-                Hashmap **cached_name_map,
                 Hashmap **cached_id_map,
+                Hashmap **cached_name_map,
                 char **ret_fragment_path,
                 char ***ret_dropin_paths) {