]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
userdbctl: set shell/home cell type to TABLE_PATH
authorLennart Poettering <lennart@poettering.net>
Wed, 23 Oct 2024 20:34:34 +0000 (22:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 24 Oct 2024 08:17:35 +0000 (10:17 +0200)
This only matters for sorting, and we currently don't support sorting by
path, hence this is of no real effect, but it certainly is more correct.

src/userdb/userdbctl.c

index 321edc28c7a9503e187a158025b04413651b39da..d74251fd86ec0e01f273a201628620fe8bb013d0 100644 (file)
@@ -121,8 +121,8 @@ static int show_user(UserRecord *ur, Table *table) {
                                 TABLE_UID, ur->uid,
                                 TABLE_GID, user_record_gid(ur),
                                 TABLE_STRING, empty_to_null(ur->real_name),
-                                TABLE_STRING, user_record_home_directory(ur),
-                                TABLE_STRING, sh,
+                                TABLE_PATH, user_record_home_directory(ur),
+                                TABLE_PATH, sh,
                                 TABLE_SET_COLOR, shell_to_color(sh),
                                 TABLE_INT, 0);
                 if (r < 0)