summaryrefslogtreecommitdiff
path: root/Userland/Utilities/usermod.cpp
AgeCommit message (Collapse)Author
2022-09-27LibCore: Use `StringView` instead of `char *` in AccountLucas CHOLLET
2022-07-12Everywhere: Add sv suffix to strings relying on StringView(char const*)sin-ack
Each of these strings would previously rely on StringView's char const* constructor overload, which would call __builtin_strlen on the string. Since we now have operator ""sv, we can replace these with much simpler versions. This opens the door to being able to remove StringView(char const*). No functional changes.
2022-07-12Everywhere: Explicitly specify the size in StringView constructorssin-ack
This commit moves the length calculations out to be directly on the StringView users. This is an important step towards the goal of removing StringView(char const*), as it moves the responsibility of calculating the size of the string to the user of the StringView (which will prevent naive uses causing OOB access).
2022-04-01Everywhere: Run clang-formatIdan Horowitz
2021-12-16LibCore+passwd+usermod: Make Core::Account::sync() return ErrorOr<void>Andreas Kling
2021-12-16usermod: Use LibCore syscall wrapper for setegid()Andreas Kling
2021-11-28Everywhere: Use default execpromises argument for Core::System::pledgeBrian Gianforcaro
2021-11-23usermod: Port to LibMainfaxe1008
2021-11-08LibCore: Use ErrorOr<T> for Core::File::copy_file()Andreas Kling
2021-08-01Utilities: Remove unused header includesBrian Gianforcaro
2021-07-14Utilities: Implement usermod commandbrapru
Previously there was no way to modify existing user accounts.