diff options
author | Eli Youngs <eli.m.youngs@gmail.com> | 2022-10-17 23:29:43 -0700 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2022-11-14 14:54:45 +0000 |
commit | ae68def54bb9d7422b13361f25629ea53a8eb25f (patch) | |
tree | 1491aaf698e221004c5bb8af2365dbdc82e1bf2d /Userland/Utilities/hexdump.cpp | |
parent | 93238edf8f5c207b5c1145d3745e97e2136abd65 (diff) | |
download | serenity-ae68def54bb9d7422b13361f25629ea53a8eb25f.zip |
hexdump: Pledge stdio and rpath
Diffstat (limited to 'Userland/Utilities/hexdump.cpp')
-rw-r--r-- | Userland/Utilities/hexdump.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Utilities/hexdump.cpp b/Userland/Utilities/hexdump.cpp index 89cf83fc79..4b2e21d03a 100644 --- a/Userland/Utilities/hexdump.cpp +++ b/Userland/Utilities/hexdump.cpp @@ -7,6 +7,7 @@ #include <AK/Array.h> #include <LibCore/ArgsParser.h> #include <LibCore/File.h> +#include <LibCore/System.h> #include <LibMain/Main.h> #include <ctype.h> #include <string.h> @@ -21,6 +22,8 @@ enum class State { ErrorOr<int> serenity_main(Main::Arguments args) { + TRY(Core::System::pledge("stdio rpath")); + Core::ArgsParser args_parser; char const* path = nullptr; bool verbose = false; |