1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:47:45 +00:00

LibCore: Sync groups, getgrent to getgrent_r, fix gr_mem bug

This commit is contained in:
ne0ndrag0n 2022-11-12 19:42:27 -05:00 committed by Andreas Kling
parent 8a09895bc1
commit d8f25ad644
2 changed files with 70 additions and 1 deletions

View file

@ -34,11 +34,15 @@ public:
Vector<String>& members() { return m_members; }
ErrorOr<void> sync();
private:
static ErrorOr<bool> name_exists(StringView name);
static ErrorOr<bool> id_exists(gid_t id);
ErrorOr<struct group> to_libc_group();
ErrorOr<String> generate_group_file() const;
String m_name;
gid_t m_id { 0 };
Vector<String> m_members;