]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC: 228545,229572
authorbapt <bapt@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 2 Jun 2012 15:13:28 +0000 (15:13 +0000)
committerbapt <bapt@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 2 Jun 2012 15:13:28 +0000 (15:13 +0000)
commit715256f62d16a26be851ccaf1dd0d157cbbd89c6
tree026912f2f8fe90070a4f1d75800e7987ae78802d
parenta3168eb03dfcf563a3d91343c0fc173b5d84d7c1
MFC: 228545,229572

Modify pw_copy:
- if pw is NULL and oldpw is not NULL then the oldpw is deleted
- if pw->pw_name != oldpw->pw_name but pw->pw_uid == oldpw->pw_uid
then it renames the user

add new gr_* functions so now gr_util API is similar to pw_util API,
this allow to manipulate groups in a safe way.

Add new pw_make_v7 to make a passwd line (in v7 format) out of a struct passwd

Approved by: des (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/9@236451 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libutil/gr_util.c
lib/libutil/libutil.h
lib/libutil/pw_util.c