$OpenBSD: patch-pwqcheck_c,v 1.1 2015/11/19 14:19:05 sthen Exp $
--- pwqcheck.c.orig	Thu Nov 19 14:16:18 2015
+++ pwqcheck.c	Thu Nov 19 14:17:33 2015
@@ -66,7 +66,7 @@ static char *extract_string(char **stringp)
 static struct passwd *parse_pwline(char *line, struct passwd *pw)
 {
 	if (!strchr(line, ':')) {
-		struct passwd *p = getpwnam(line);
+		struct passwd *p = getpwnam_shadow(line);
 		endpwent();
 		if (!p) {
 			fprintf(stderr, "pwqcheck: User not found.\n");
