OpenBSD CVS

CVS log for src/usr.bin/passwd/pwd_check.c


[BACK] Up to [local] / src / usr.bin / passwd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.18 / (download) - annotate - [select for diffs], Mon May 8 16:11:41 2023 UTC (12 months, 1 week ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.17: +7 -3 lines
Diff to previous 1.17 (colored)

Improve error handling

Close pipe file descriptors if fork fails.
Also do not parse exit status of child if waitpid fails.

with input by and ok millert@

Revision 1.17 / (download) - annotate - [select for diffs], Sat Aug 28 06:46:49 2021 UTC (2 years, 8 months ago) by robert
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored)

use stderr for printing error and informational messages

this makes it easier to parse what passwd(1) is doing if
spawned from a GUI

ok millert@

Revision 1.16 / (download) - annotate - [select for diffs], Mon Aug 21 21:41:13 2017 UTC (6 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.15: +10 -5 lines
Diff to previous 1.15 (colored)

Use waitpid()/EINTR idiom for the specific pid, rather than generic wait(),
in case the parent process was started with a dangling child.  This style
ensures any potential parent:child interlock isn't disrupted due to the
"wrong" child being waited on first.  Then the other other childs can safely
zombie.
ok millert jca brynet

Revision 1.15 / (download) - annotate - [select for diffs], Wed Dec 9 19:39:10 2015 UTC (8 years, 5 months ago) by mmcc
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.14: +3 -5 lines
Diff to previous 1.14 (colored)

Remove NULL-checks before free(). ok tb@

Revision 1.14 / (download) - annotate - [select for diffs], Thu Nov 26 19:01:47 2015 UTC (8 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +7 -1 lines
Diff to previous 1.13 (colored)

Delete YP password related code.  As a result, these can also be
pledged.  Keep an eye out for regressions, because they could be
uncomfortable.
ok beck semarie

Revision 1.13 / (download) - annotate - [select for diffs], Sat Mar 2 09:07:37 2013 UTC (11 years, 2 months ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.12: +14 -14 lines
Diff to previous 1.12 (colored)

When using an external password quality check program, do not run the
patterns checks which may contradict the rules set by the external
helper.

ok millert@

Revision 1.12 / (download) - annotate - [select for diffs], Thu Nov 6 05:35:56 2008 UTC (15 years, 6 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.11: +4 -1 lines
Diff to previous 1.11 (colored)

-Wall -Wshadow clean, no binary change

Revision 1.11 / (download) - annotate - [select for diffs], Sun May 1 00:05:10 2005 UTC (19 years ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.10: +68 -38 lines
Diff to previous 1.10 (colored)

run password strength checking regexes as user; ok deraadt@

Revision 1.10 / (download) - annotate - [select for diffs], Fri Mar 4 15:36:03 2005 UTC (19 years, 2 months ago) by moritz
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

make :passwordtries=0:\ in login.conf work.
from Ross Richardson. closes PR 4133.

ok henning@ millert@

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jul 13 21:29:12 2004 UTC (19 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.8: +22 -25 lines
Diff to previous 1.8 (colored)

Simplify some things now that we only have login.conf to worry about
and fix two bugs introduced in the last commit (a duplicate free
and reversed logic for the default cipher types).

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jul 13 21:09:48 2004 UTC (19 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.7: +12 -88 lines
Diff to previous 1.7 (colored)

passwd.conf has been deprecated since login.conf was imported.
Today it finally dies.  Based on a diff from Gabriel Kihlman.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Mar 14 22:53:18 2004 UTC (20 years, 2 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.6: +8 -7 lines
Diff to previous 1.6 (colored)

use pid_t for fork return.  started by Joris Vink

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jun 28 22:28:17 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.5: +32 -38 lines
Diff to previous 1.5 (colored)

various cleanups; ok millert

Revision 1.5 / (download) - annotate - [select for diffs], Mon May 27 21:12:54 2002 UTC (21 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.4: +15 -1 lines
Diff to previous 1.4 (colored)

support ":" prefix as group name, as username can contain ".".
(still support "." as welll).  passwd.conf support will go away in a
couple of months anyways... ok by millert

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jun 18 21:09:23 2001 UTC (22 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.3: +54 -26 lines
Diff to previous 1.3 (colored)

o move passwd.conf variables into login.conf
o no longer install passwd.conf (but it is used if it exists and the
  needed info is not in login.conf)
o added passwordtime and minpasswordlen login.conf variables

Revision 1.3 / (download) - annotate - [select for diffs], Fri Nov 24 21:07:04 2000 UTC (23 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.2: +3 -1 lines
Diff to previous 1.2 (colored)

Include err.h and util.h

Revision 1.2 / (download) - annotate - [select for diffs], Fri Nov 24 20:50:20 2000 UTC (23 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.1: +5 -3 lines
Diff to previous 1.1 (colored)

Include strings.h for strlen() prototype
Include errno.h, not sys/errno.h since this is userland

Revision 1.1 / (download) - annotate - [select for diffs], Tue Aug 1 22:27:51 2000 UTC (23 years, 9 months ago) by provos
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8

integrate password quality checking, disallow all digit passwords motivated
by Solar Designer.  External password checking program can be spawned now,
number of password trials configurable.  work by me and Bob Beck.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.