diff options
author | Kenneth Myhra <kennethmyhra@gmail.com> | 2021-12-23 09:41:00 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-28 23:23:54 +0100 |
commit | 77723091696863e471cf8c27361fc203616a7b3e (patch) | |
tree | cecd591945b88d351c5d409690cc65ccc51d783f /Base | |
parent | ab324c1dae86cdaf084b92ca88854cc7a15640eb (diff) | |
download | serenity-77723091696863e471cf8c27361fc203616a7b3e.zip |
LibCore+chown: Return ErrorOr<Optional<...>> for getgrnam and getpwnam
This patch returns an empty Optional<...> instead of an Error for
Core::System::getgrname and Core::System::getpwnam if we can't find a
matching group or user entry.
It also updates the 'chown' utility to support this new behavior.
Diffstat (limited to 'Base')
0 files changed, 0 insertions, 0 deletions