mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
usermod: Remove premature root user check
This allows the use of `--help`, for example.
This commit is contained in:
parent
827e23940a
commit
0875446b38
1 changed files with 0 additions and 5 deletions
|
@ -38,11 +38,6 @@ static Optional<gid_t> group_string_to_gid(StringView group)
|
||||||
|
|
||||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
{
|
{
|
||||||
if (geteuid() != 0) {
|
|
||||||
warnln("Not running as root :^(");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
TRY(Core::System::pledge("stdio wpath rpath cpath fattr tty"));
|
TRY(Core::System::pledge("stdio wpath rpath cpath fattr tty"));
|
||||||
TRY(Core::System::unveil("/etc", "rwc"));
|
TRY(Core::System::unveil("/etc", "rwc"));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue