[PATCH] pw_update() return success on failure

Unga unga888 at yahoo.com
Fri Jul 11 04:22:41 UTC 2008


Hi all
 
In the present implementation if the pwdb() of /usr/src/usr.sbin/pw/pwupd.c fails,  pw_update() (of the same file) 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-bugs/attachments/20080711/4ca7b416/pw_update-return-code-fix.obj


More information about the freebsd-bugs mailing list