[PATCH] Fix /usr/src/usr.sbin/pw/pwupd.c - pw_update() return success on failure

Unga unga888 at yahoo.com
Mon Jul 7 04:30:06 UTC 2008


Hi all

In the present implementation even if the pwdb() fails, pw_update() still return rc=0, therefore, subsequent functions still continue to proceed without passwd and master.passwd been updated. The attached patch fixes this issue. If this patch is acceptable, appreciate if it could be applied to both current and RELENG_7.

Kind regards
Unga


      
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pw_update-return-code-fix.patch
Type: application/octet-stream
Size: 555 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20080707/c1135fb7/pw_update-return-code-fix.obj


More information about the freebsd-current mailing list