diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-06-17 17:06:59 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-06-17 17:37:50 +0200 |
commit | e367b4266492fede564e5edb21eda465a59b60ff (patch) | |
tree | 873a2fa94495511b644ad7e30ff7bc674f7e95da /src/sysusers | |
parent | strv: introduce strv_sort_uniq() (diff) | |
download | systemd-e367b4266492fede564e5edb21eda465a59b60ff.tar.xz systemd-e367b4266492fede564e5edb21eda465a59b60ff.zip |
tree-wide: replace strv_sort() + strv_uniq() -> strv_sort_uniq()
Diffstat (limited to 'src/sysusers')
-rw-r--r-- | src/sysusers/sysusers.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c index 52f4a47aa1..9471c1843e 100644 --- a/src/sysusers/sysusers.c +++ b/src/sysusers/sysusers.c @@ -362,8 +362,7 @@ static int putgrent_with_members( if (added) { struct group t; - strv_uniq(l); - strv_sort(l); + strv_sort_uniq(l); t = *gr; t.gr_mem = l; @@ -411,8 +410,7 @@ static int putsgent_with_members( if (added) { struct sgrp t; - strv_uniq(l); - strv_sort(l); + strv_sort_uniq(l); t = *sg; t.sg_mem = l; |