]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Clean up error handling in fileupdate(), which now returns 0 on success
authordavidn <davidn@FreeBSD.org>
Tue, 26 Oct 1999 04:27:14 +0000 (04:27 +0000)
committerdavidn <davidn@FreeBSD.org>
Tue, 26 Oct 1999 04:27:14 +0000 (04:27 +0000)
commit7f7ff280d14b2c60d92e922c66eb7f433fb633ce
tree668b7aa997740786ba3a4ea82d82763d8aabd19b
parentfeb9306786b253f27c2d97a6a5bed74154eaf59a
Clean up error handling in fileupdate(), which now returns 0 on success
instead of a boolean. This replicated through he front-end sub-functions
relating to add, delete, modify entries in passwd & group files
Errno is now preserved so output of errc()/warnc() will be less obfuscated
by subsequent errors when reporting the problem.

Add more intelligent error handling when attempting to modify/delete NIS
entries with no corresponding local database entry.

[MFC to stable in a couple of weeks to keep both in sync]
usr.sbin/pw/fileupd.c
usr.sbin/pw/grupd.c
usr.sbin/pw/pw_group.c
usr.sbin/pw/pw_user.c
usr.sbin/pw/pwupd.c