summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/passwd.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/passwd.cpp b/Userland/passwd.cpp
index cfb2e7e57a..7735dfd887 100644
--- a/Userland/passwd.cpp
+++ b/Userland/passwd.cpp
@@ -131,6 +131,11 @@ int main(int argc, char** argv)
target_account.set_password(new_password.value().characters());
}
+ if (pledge("stdio", nullptr) < 0) {
+ perror("pledge");
+ return 1;
+ }
+
if (!target_account.sync()) {
perror("Core::Account::Sync");
}