diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index 2e2005fa7e6..052d150dc13 100644 --- a/lib/libc/gen/getpwent.c +++ b/lib/libc/gen/getpwent.c @@ -268,7 +268,7 @@ __initdb() #endif return(1); } - if (!warned) + if (!warned++) syslog(LOG_ERR, "%s: %m", p); return(0); }