Parcourir la source

LibC: setspent() should not print to stderr

Gunnar Beutner il y a 4 ans
Parent
commit
3b759451c6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Userland/Libraries/LibC/shadow.cpp

+ 1 - 1
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));
         }
     }
 }