mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:27:45 +00:00
LibCore: Sync groups, getgrent to getgrent_r, fix gr_mem bug
This commit is contained in:
parent
8a09895bc1
commit
d8f25ad644
2 changed files with 70 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue