diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-12-27 14:30:19 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-12-27 14:30:19 +0000 |
commit | ac1681ea5c7980246ca789137e852441e10207d5 (patch) | |
tree | 53bacb93ac6e8d76ec1fb3138997050d7892ea15 /libutil/libutil.h | |
parent | 758c4f17afd4a148f62b0b87647f242acf074aa9 (diff) | |
download | pw-darwin-ac1681ea5c7980246ca789137e852441e10207d5.tar.gz pw-darwin-ac1681ea5c7980246ca789137e852441e10207d5.tar.zst pw-darwin-ac1681ea5c7980246ca789137e852441e10207d5.zip |
New gr_add function to provide a clean and safe method to append a new member
into an existing group.
Submitted by: db
Diffstat (limited to 'libutil/libutil.h')
-rw-r--r-- | libutil/libutil.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libutil/libutil.h b/libutil/libutil.h index bf42766..fcd74e1 100644 --- a/libutil/libutil.h +++ b/libutil/libutil.h @@ -166,6 +166,8 @@ int gr_copy(int __ffd, int _tfd, const struct group *_gr, struct group *_old_gr); struct group * gr_dup(const struct group *_gr); +struct group * + gr_add(struct group *_gr, const char *_newmember); int gr_equal(const struct group *_gr1, const struct group *_gr2); void gr_fini(void); int gr_init(const char *_dir, const char *_master); |