Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mdoc sweep | 2013-05-13 | 1 | -0/+318 | |
| | |||||
* | commit correct tested fix for gr_util.c | 2013-03-09 | 1 | -46/+58 | |
| | | | | Approved by: theraven | ||||
* | Cleanup gr_add() so it does not leak mem | 2013-03-07 | 2 | -53/+86 | |
| | | | | | | | | | This is part of ongoing work on sbin/pw M libutil.h M gr_util.c Approved by: theraven | ||||
* | Prevent a null pointer dereference in pw userdel when deleting | 2013-02-01 | 1 | -1/+1 | |
| | | | | a user whose group != username. | ||||
* | IFC @ r245509 | 2013-01-17 | 2 | -19/+17 | |
|\ | |||||
| * | Remove unused variables | 2013-01-16 | 1 | -2/+0 | |
| | | | | | | | | | | Approved by: cperciva MFC After: 3 days | ||||
| * | libutil: fix typo in comment for gr_fini. | 2013-01-13 | 1 | -1/+1 | |
| | | | | | | | | Submitted by: Christoph Mallon <christoph.mallon gmx.de> | ||||
| * | libutil: utilize strsep instead of strcat in a loop in gr_make | 2013-01-13 | 1 | -6/+10 | |
| | | | | | | | | Submitted by: Christoph Mallon <christoph.mallon gmx.de> | ||||
| * | libutil: move group_line_format into the scop of its only user. | 2013-01-13 | 1 | -2/+1 | |
| | | | | | | | | Submitted by: Christoph Mallon <christoph.mallon gmx.de> | ||||
| * | libutil: eliminate 'found' variable in gr_equal | 2013-01-13 | 1 | -8/+5 | |
| | | | | | | | | Submitted by: Christoph Mallon <christoph.mallon gmx.de> | ||||
* | | IFC @ r245178 | 2013-01-09 | 1 | -0/+1 | |
|\| | |||||
| * | pw: free group returned by gr_add | 2013-01-06 | 1 | -0/+1 | |
| | | |||||
* | | IFC @ r244983. | 2013-01-04 | 10 | -230/+362 | |
|\| | |||||
| * | Simplify pointing dst after the end of all the gr_mem pointers in newgr | 2012-12-28 | 1 | -2/+1 | |
| | | | | | | | | | | Submitted by: pjd Reviewed by: db | ||||
| * | errno = ENOMEM was supposed to be removed not return (NULL); | 2012-12-28 | 1 | -1/+1 | |
| | | | | | | | | Submitted by: gcooper | ||||
| * | malloc() sets errno to ENOMEM already. | 2012-12-28 | 1 | -5/+1 | |
| | | | | | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> | ||||
| * | Do not leave parts of the new group uninitialized in gr_dup(). | 2012-12-28 | 1 | -0/+4 | |
| | | | | | | | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Reported by: pjd | ||||
| * | avoid arithmetic on uintptr_t | 2012-12-27 | 1 | -1/+1 | |
| | | | | | | | | | | Submitted by: pjd Reviewed by: jilles | ||||
| * | cast to uintptr_t to properly calculate offset | 2012-12-27 | 1 | -1/+1 | |
| | | | | | | | | | | Reported by: mdf Submitted by: db | ||||
| * | Add O_CLOEXEC to flopen | 2012-12-27 | 2 | -2/+2 | |
| | | | | | | | | Requested by: jilles | ||||
| * | Simplify vnextgrent and vnextpwent reusing pw_scan and gr_scan from libutil. | 2012-12-27 | 1 | -169/+67 | |
| | | |||||
| * | gr_dup: simplify duplication of group | 2012-12-27 | 1 | -21/+20 | |
| | | | | | | | | Submitted by: db | ||||
| * | - Clean up previous gr_add use malloc instead of calloc | 2012-12-27 | 2 | -5/+4 | |
| | | | | | | | | | | | | - Fix tinderbox error Submitted by: db | ||||
| * | Fix a regression in "pw group show" introduced r242349: | 2012-12-27 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | print a newline after printing each group line. PR: bin/174731 Submitted by: Jan Beich <jbeich@tormail.org> | ||||
| * | Simplify the code by using the new gr_add function | 2012-12-27 | 1 | -15/+9 | |
| | | |||||
| * | New gr_add function to provide a clean and safe method to append a new member | 2012-12-27 | 2 | -0/+42 | |
| | | | | | | | | | | | | into an existing group. Submitted by: db | ||||
| * | Use flopen(3) instead of open(2) + flock(2) | 2012-12-27 | 2 | -9/+4 | |
| | | |||||
| * | Simplify copying of group members by using memcpy | 2012-12-26 | 1 | -2/+1 | |
| | | | | | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> | ||||
| * | Fix off-by-one error in memory allocation: j entries, one new and a null | 2012-12-26 | 1 | -1/+1 | |
| | | | | | | | | | | | | terminator is j + 2. Submitted by: Christoph Mallon <christoph.mallon@gmx.de> | ||||
| * | In case of the deletion of a user those whole database has to be regenerated, | 2012-12-26 | 1 | -1/+5 | |
| | | | | | | | | | | otherwise the user planned to be deleted remain in the pwd.db while removed from the plain text password file. | ||||
| * | Fix creating a user and adding it to a group | 2012-12-26 | 1 | -7/+8 | |
| | | | | | | | | Reported by: "Sam Fourman Jr." <sfourman@gmail.com>, dim | ||||
| * | Simplify string duplication: use strdup instead of malloc + strcpy | 2012-12-05 | 1 | -6/+5 | |
| | | | | | | | | | | | | Submitted by: db Approved by: cperciva MFC after: 2 weeks | ||||
| * | Avoid overflowing the file buffer | 2012-12-05 | 1 | -0/+75 | |
| | | | | | | | | | | | | Submitted by: db Approved by: cperciva MFC after: 2 weeks | ||||
| * | Use strdup instead of malloc + strcpy | 2012-12-05 | 1 | -6/+4 | |
| | | | | | | | | | | | | Submitted by: db Approved by: cperciva MFC after: 2 weeks | ||||
| * | Avoid overflow of file buffer | 2012-12-05 | 1 | -1/+1 | |
| | | | | | | | | | | | | Submitted by: db Approved by: cperciva MFC after: 2 weeks | ||||
| * | Remove useless check for NULL prior to free. | 2012-12-05 | 2 | -2/+132 | |
| | | | | | | | | | | Approved by: cperciva MFC after: 2 weeks | ||||
* | | IFC @r243836 | 2012-12-04 | 2 | -0/+5 | |
|\| | |||||
| * | In NIS mode first chmod(2) the temporary file and is succeed then rename(2) | 2012-11-20 | 1 | -2/+2 | |
| | | |||||
| * | only rename(2) after chmod(2) has succeed | 2012-11-20 | 1 | -7/+3 | |
| | | | | | | | | | | | | report error if chmod(2) fails Reported by: jh | ||||
| * | Correctly set the password file mode after renaming in NIS mode | 2012-11-20 | 1 | -0/+2 | |
| | | |||||
| * | change mode the group file to 0644 after a successfull rename(2) | 2012-11-20 | 1 | -1/+8 | |
| | | |||||
* | | IFC @ r243164 | 2012-11-17 | 1 | -0/+305 | |
|\| | |||||
| * | Avoid possible null deref if ypclnt_new returns null | 2012-11-15 | 1 | -0/+305 | |
| | | | | | | | | | | | | | | PR: bin/172979 Submitted by: Erik Cederstrand <erik@cederstrand.dk> Approved by: cperciva MFC after: 3 days | ||||
* | | IFC @ r242684 | 2012-11-11 | 15 | -15/+2510 | |
|\| | |||||
| * | Teach pw(8) about how to use pw/gr API to reduce code duplication | 2012-10-30 | 13 | -88/+1888 | |
| | | | | | | | | MFC after: 2 months | ||||
| * | backout r242319, racy and not done in the right place | 2012-10-29 | 2 | -18/+0 | |
| | | | | | | | | Reported by: Garrett Cooper <yanegomi@gmail.com> | ||||
| * | make pw_init and gr_init fail if the specified master password or group file is | 2012-10-29 | 2 | -0/+20 | |
| | | | | | | | | | | | | a directory. MFC after: 1 month | ||||
| * | Do not treat empty name as an uid 0 | 2012-10-01 | 1 | -1/+2 | |
| | | | | | | | | Reported by: Robert Bonomi <bonomi@mail.r-bonomi.com> | ||||
| * | Remove useless atoi(3), previous strspn(3) makes sure that a_name->val is a | 2012-10-01 | 1 | -2/+1 | |
| | | | | | | | | | | | | | | | | | | number. This also allow pw user show to work as expected. PR: bin/172112 Submitted by: "Ilya A. Arkhipov" <rum1cro@yandex.ru> MFC after: 1 month | ||||
| * | Make sure that each va_start has one and only one matching va_end, | 2012-09-28 | 1 | -0/+214 | |
| | | | | | | | | especially in error cases. |