]> git.cameronkatri.com Git - pw-darwin.git/commit
Modify pw_copy:
authorBaptiste Daroussin <bapt@FreeBSD.org>
Thu, 15 Dec 2011 22:07:36 +0000 (22:07 +0000)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Thu, 15 Dec 2011 22:07:36 +0000 (22:07 +0000)
commitd8c29cf81746b7a5551462b1318f8ff9bb76eacf
tree84159dccacb6c27cf0953231da8afd3013dff5a8
parent354659ccc27c419b3a3043d64ca4820e24d36585
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.

Reviewed by: des
Approved by: des
MFC after: 1 month
libutil/gr_util.c [new file with mode: 0644]
libutil/libutil.h
libutil/pw_util.c [new file with mode: 0644]