From 561500224336435ebd74a3c4de817fc113ef4cb8 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Sun, 16 Nov 2025 13:12:23 +0900 Subject: [PATCH] better --- src/users.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/users.c b/src/users.c index 02d0bdf..2a19bda 100644 --- a/src/users.c +++ b/src/users.c @@ -19,7 +19,7 @@ void MDEListUsers(void(*call)(const char* name, void* user), void* user){ if(pwd->pw_dir == NULL || pwd->pw_shell == NULL) continue; if(pwd->pw_name[0] == '_') continue; - if(strlen(pwd->pw_dir) >= 5 && memcmp(pwd->pw_dir, "/var/", 5) == 0) continue; + if(pwd->pw_uid != 0 && strstr(pwd->pw_dir, "/home/") == NULL) continue; shell = strrchr(pwd->pw_shell, '/'); if(shell == NULL) break;