diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-18 10:45:23 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-18 11:35:47 +0100 |
commit | 00fa2aa0ec268ab8052db7cbd8a1dfa34c388b0e (patch) | |
tree | 514e04053af124a73b9d93213fea6b5f8ad4bf5e /Userland | |
parent | 7281214af2c908868b09a139d8284d82cf075e70 (diff) | |
download | serenity-00fa2aa0ec268ab8052db7cbd8a1dfa34c388b0e.zip |
rmdir: Use pledge()
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/rmdir.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/rmdir.cpp b/Userland/rmdir.cpp index 7c2b8154af..c72d0b06a6 100644 --- a/Userland/rmdir.cpp +++ b/Userland/rmdir.cpp @@ -30,6 +30,11 @@ int main(int argc, char** argv) { + if (pledge("stdio cpath", nullptr) < 0) { + perror("pledge"); + return 1; + } + if (argc != 2) { fprintf(stderr, "usage: rmdir <path>\n"); return 1; |