Browse Source

LibC: setspent() should not print to stderr

Gunnar Beutner 4 years ago
parent
commit
3b759451c6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibC/shadow.cpp

+ 1 - 1
Userland/Libraries/LibC/shadow.cpp

@@ -32,7 +32,7 @@ void setspent()
     } else {
     } else {
         s_stream = fopen("/etc/shadow", "r");
         s_stream = fopen("/etc/shadow", "r");
         if (!s_stream) {
         if (!s_stream) {
-            perror("open /etc/shadow");
+            dbgln("open /etc/shadow failed: {}", strerror(errno));
         }
         }
     }
     }
 }
 }