From 6ef6bd1ccb7a675a5529ae7d5d9ebe833dc93f93 Mon Sep 17 00:00:00 2001 From: brapru Date: Sun, 13 Jun 2021 07:17:57 -0400 Subject: [PATCH] LibCore: Add setters for all user account properties --- Userland/Libraries/LibCore/Account.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Userland/Libraries/LibCore/Account.h b/Userland/Libraries/LibCore/Account.h index c103468dbc..8b8cce2de9 100644 --- a/Userland/Libraries/LibCore/Account.h +++ b/Userland/Libraries/LibCore/Account.h @@ -46,6 +46,11 @@ public: // You must call sync to apply changes. void set_password(const char* password); void set_password_enabled(bool enabled); + void set_home_directory(const char* home_directory) { m_home_directory = home_directory; } + void set_uid(uid_t uid) { m_uid = uid; } + void set_gid(gid_t gid) { m_gid = gid; } + void set_shell(const char* shell) { m_shell = shell; } + void set_gecos(const char* gecos) { m_gecos = gecos; } void delete_password(); // A null password means that this account was missing from /etc/shadow.