Subject: CVS commit: src/lib/libutil
To: None <source-changes@NetBSD.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 03/19/2006 22:18:25
Module Name: src
Committed By: christos
Date: Sun Mar 19 22:18:25 UTC 2006
Modified Files:
src/lib/libutil: pw_policy.c
Log Message:
- Don't trash error number returned by the handler; return it instead.
- Add default cases and return EINVAL
- Don't check for NULL arguments and return EFAULT. Let it core-dump instead.
(or add DIAGASSERT)
- Coverity CID 799: Don't dereference m and n if they are known to be NULL.
Bail out sooner with EINVAL.
To generate a diff of this commit:
cvs rdiff -r1.7 -r1.8 src/lib/libutil/pw_policy.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.