]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
homectl: drop redunant sort 41954/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Tue, 5 May 2026 20:08:19 +0000 (22:08 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Tue, 5 May 2026 20:08:19 +0000 (22:08 +0200)
Claude points out that prompt_groups() already does the sort
in every loop, including the last.

src/home/homectl.c

index 56e723fbfef9f34c110b5ec1e7eb8cb4d1a8022e..ce54da0d8c2b72f255627659941c9175e6a8c16b 100644 (file)
@@ -2734,8 +2734,6 @@ static int create_interactively(void) {
                         return r;
 
                 if (!strv_isempty(groups)) {
-                        strv_sort_uniq(groups);
-
                         r = sd_json_variant_set_field_strv(&arg_identity_extra, "memberOf", groups);
                         if (r < 0)
                                 return log_error_errno(r, "Failed to set memberOf field: %m");