summaryrefslogtreecommitdiff
path: root/lib/libutil/gr_util.c
AgeCommit message (Expand)Author
2023-11-26lib: Automated cleanup of cdefs and other formattingWarner Losh
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
2023-05-12spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh
2020-06-20libutil: remove extraneous ": " from error messagesPiotr Pawel Stefaniak
2017-11-26lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni
2017-04-21lib: initial use of reallocarray(3).Pedro F. Giffuni
2016-11-28Use malloc()ed buffers instead of stack buffers in gr_copy() and pw_copy().Dag-Erling Smørgrav
2016-11-18Speed up pw operations that edit /etc/group or /etc/passwdAlan Somers
2015-07-02When passwd or group information is changed (by pw, vipw, chpass, ...)Renato Botelho
2015-01-25gr_equal(): Fix a crash that could occur if the first group's member listMark Johnston
2014-10-28Fix renaming a group via the gr_copy functionBaptiste Daroussin
2013-03-09commit correct tested fix for gr_util.cDiane Bruce
2013-03-07Cleanup gr_add() so it does not leak memDiane Bruce
2013-01-13libutil: fix typo in comment for gr_fini.Mateusz Guzik
2013-01-13libutil: utilize strsep instead of strcat in a loop in gr_makeMateusz Guzik
2013-01-13libutil: move group_line_format into the scop of its only user.Mateusz Guzik
2013-01-13libutil: eliminate 'found' variable in gr_equalMateusz Guzik
2012-12-28Simplify pointing dst after the end of all the gr_mem pointers in newgrBaptiste Daroussin
2012-12-28errno = ENOMEM was supposed to be removed not return (NULL);Baptiste Daroussin
2012-12-28malloc() sets errno to ENOMEM already.Baptiste Daroussin
2012-12-28Do not leave parts of the new group uninitialized in gr_dup().Baptiste Daroussin
2012-12-27avoid arithmetic on uintptr_tBaptiste Daroussin
2012-12-27cast to uintptr_t to properly calculate offsetBaptiste Daroussin
2012-12-27Add O_CLOEXEC to flopenBaptiste Daroussin
2012-12-27gr_dup: simplify duplication of groupBaptiste Daroussin
2012-12-27- Clean up previous gr_add use malloc instead of callocBaptiste Daroussin
2012-12-27New gr_add function to provide a clean and safe method to append a new memberBaptiste Daroussin
2012-12-27Use flopen(3) instead of open(2) + flock(2)Baptiste Daroussin
2012-11-20only rename(2) after chmod(2) has succeedBaptiste Daroussin
2012-11-20change mode the group file to 0644 after a successfull rename(2)Baptiste Daroussin
2012-10-29backout r242319, racy and not done in the right placeBaptiste Daroussin
2012-10-29make pw_init and gr_init fail if the specified master password or group file isBaptiste Daroussin
2011-12-15Modify pw_copy:Baptiste Daroussin
2009-12-12Remove a dead store.Sean Farley
2008-11-23Fixed style issues with variable ordering and naming, spacing andSean Farley
2008-11-11style(9) fixes.Sean Farley
2008-04-23Add four utility functions related to struct grp processing modeled in-partSean Farley