When I grow up, I want to be like Stuart so:

"remove incorrect getpwnam_shadow patch, spotted by Solar Designer (thanks!)"
This commit is contained in:
ajacoutot 2016-08-04 05:25:52 +00:00
parent 06ec039fdc
commit 20f95816d7
2 changed files with 2 additions and 13 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.15 2016/07/30 14:26:36 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.16 2016/08/04 05:25:52 ajacoutot Exp $
COMMENT= complexity checker for passwd(1) and password generator
DISTNAME= passwdqc-1.3.1
CATEGORIES= security sysutils
REVISION= 0
SHARED_LIBS= passwdqc 0.0 # .0

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-pwqcheck_c,v 1.3 2016/07/30 14:26:36 ajacoutot Exp $
--- pwqcheck.c.orig Tue Jul 26 16:16:56 2016
+++ pwqcheck.c Tue Jul 26 16:17:17 2016
@@ -67,7 +67,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");