From 3b759451c6b736cd2a2e796b51dc5c06a01d91cb Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 4 May 2021 14:34:14 +0200 Subject: [PATCH] LibC: setspent() should not print to stderr --- Userland/Libraries/LibC/shadow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibC/shadow.cpp b/Userland/Libraries/LibC/shadow.cpp index 0aa5cae1f9..c79c7fc218 100644 --- a/Userland/Libraries/LibC/shadow.cpp +++ b/Userland/Libraries/LibC/shadow.cpp @@ -32,7 +32,7 @@ void setspent() } else { s_stream = fopen("/etc/shadow", "r"); if (!s_stream) { - perror("open /etc/shadow"); + dbgln("open /etc/shadow failed: {}", strerror(errno)); } } }