| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Do not leave parts of the new group uninitialized in gr_dup(). | Baptiste Daroussin | 2012-12-28 | 1 | -0/+4 |
| | | | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Reported by: pjd | ||||
| * | avoid arithmetic on uintptr_t | Baptiste Daroussin | 2012-12-27 | 1 | -1/+1 |
| | | | | | | Submitted by: pjd Reviewed by: jilles | ||||
| * | cast to uintptr_t to properly calculate offset | Baptiste Daroussin | 2012-12-27 | 1 | -1/+1 |
| | | | | | | Reported by: mdf Submitted by: db | ||||
| * | Add O_CLOEXEC to flopen | Baptiste Daroussin | 2012-12-27 | 2 | -2/+2 |
| | | | | | Requested by: jilles | ||||
| * | Simplify vnextgrent and vnextpwent reusing pw_scan and gr_scan from libutil. | Baptiste Daroussin | 2012-12-27 | 1 | -169/+67 |
| | | |||||
| * | gr_dup: simplify duplication of group | Baptiste Daroussin | 2012-12-27 | 1 | -21/+20 |
| | | | | | Submitted by: db | ||||
| * | - Clean up previous gr_add use malloc instead of calloc | Baptiste Daroussin | 2012-12-27 | 2 | -5/+4 |
| | | | | | | | - Fix tinderbox error Submitted by: db | ||||
| * | Fix a regression in "pw group show" introduced r242349: | Baptiste Daroussin | 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 | Baptiste Daroussin | 2012-12-27 | 1 | -15/+9 |
| | | |||||
| * | New gr_add function to provide a clean and safe method to append a new member | Baptiste Daroussin | 2012-12-27 | 2 | -0/+42 |
| | | | | | | | into an existing group. Submitted by: db | ||||
| * | Use flopen(3) instead of open(2) + flock(2) | Baptiste Daroussin | 2012-12-27 | 2 | -9/+4 |
| | | |||||
| * | Simplify copying of group members by using memcpy | Baptiste Daroussin | 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 | Baptiste Daroussin | 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, | Baptiste Daroussin | 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 | Baptiste Daroussin | 2012-12-26 | 1 | -7/+8 |
| | | | | | Reported by: "Sam Fourman Jr." <sfourman@gmail.com>, dim | ||||
| * | Simplify string duplication: use strdup instead of malloc + strcpy | Eitan Adler | 2012-12-05 | 1 | -6/+5 |
| | | | | | | | Submitted by: db Approved by: cperciva MFC after: 2 weeks | ||||
| * | Avoid overflowing the file buffer | Eitan Adler | 2012-12-05 | 1 | -0/+75 |
| | | | | | | | Submitted by: db Approved by: cperciva MFC after: 2 weeks | ||||
| * | Use strdup instead of malloc + strcpy | Eitan Adler | 2012-12-05 | 1 | -6/+4 |
| | | | | | | | Submitted by: db Approved by: cperciva MFC after: 2 weeks | ||||
| * | Avoid overflow of file buffer | Eitan Adler | 2012-12-05 | 1 | -1/+1 |
| | | | | | | | Submitted by: db Approved by: cperciva MFC after: 2 weeks | ||||
| * | Remove useless check for NULL prior to free. | Eitan Adler | 2012-12-05 | 2 | -2/+132 |
| | | | | | | Approved by: cperciva MFC after: 2 weeks | ||||
| * | In NIS mode first chmod(2) the temporary file and is succeed then rename(2) | Baptiste Daroussin | 2012-11-20 | 1 | -2/+2 |
| | | |||||
| * | only rename(2) after chmod(2) has succeed | Baptiste Daroussin | 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 | Baptiste Daroussin | 2012-11-20 | 1 | -0/+2 |
| | | |||||
| * | change mode the group file to 0644 after a successfull rename(2) | Baptiste Daroussin | 2012-11-20 | 1 | -1/+8 |
| | | |||||
| * | Avoid possible null deref if ypclnt_new returns null | Eitan Adler | 2012-11-15 | 1 | -0/+305 |
| | | | | | | | | PR: bin/172979 Submitted by: Erik Cederstrand <erik@cederstrand.dk> Approved by: cperciva MFC after: 3 days | ||||
| * | Teach pw(8) about how to use pw/gr API to reduce code duplication | Baptiste Daroussin | 2012-10-30 | 13 | -88/+1888 |
| | | | | | MFC after: 2 months | ||||
| * | backout r242319, racy and not done in the right place | Baptiste Daroussin | 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 | Baptiste Daroussin | 2012-10-29 | 2 | -0/+20 |
| | | | | | | | a directory. MFC after: 1 month | ||||
| * | Do not treat empty name as an uid 0 | Baptiste Daroussin | 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 | Baptiste Daroussin | 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, | Kevin Lo | 2012-09-28 | 1 | -0/+214 |
| | | | | | especially in error cases. | ||||
| * | Remove a reference to CVS and to freefall from a user-facing man page. | Isabell Long | 2012-09-15 | 1 | -0/+479 |
| | | | | | | | | PR: docs/171658 Reported by: Chris Petrik (c dot petrik dot sosa at gmail dot com) Approved by: gabor (mentor) MFC after: 5 days | ||||
| * | Revert user comparison back to user names as some user can share uids (root/toor | Baptiste Daroussin | 2012-06-19 | 1 | -6/+13 |
| | | | | | | | | | | | | for example) get the username information from old_pw structures to still allow renaming of a user. Reported by: Claude Buisson <clbuisson@orange.fr> Approved by: des (mentor) MFC after: 3 weeks | ||||
| * | mdoc: add missing width argument to Bl -tag. | Joel Dahl | 2012-06-03 | 1 | -0/+210 |
| | | |||||
| * | A new jail(8) with a configuration file, ultimately to replace the work | Jamie Gritton | 2012-04-26 | 0 | -0/+0 |
| |\ | | | | | | | | | | | currently done by /etc/rc.d/jail. MFC after: 3 months | ||||
| | * | A new jail(8) with a configuration file, to replace the work currently done | Jamie Gritton | 2010-10-19 | 48 | -13002/+0 |
| | | | | | | | | | by /etc/rc.d/jail. | ||||
| * | | Remove trailing whitespace per mdoc lint warning | Eitan Adler | 2012-03-29 | 1 | -0/+221 |
| | | | | | | | | | | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days | ||||
| * | | When using uidstart in /etc/adduser.conf, get the next | Daniel Eischen | 2012-02-25 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | available user id and show it in the "Uid [xxx]" prompt. PR: 163863 Submitted by: Moritz Wilhelmy (mw at wzff dot de) MFC after: 2 weeks | ||||
| * | | Handle NULL return from crypt(3). Mostly from DragonFly | Kevin Lo | 2012-02-22 | 1 | -1/+5 |
| | | | |||||
| * | | readlink len-1 | Kevin Lo | 2012-02-14 | 1 | -1/+1 |
| | | | |||||
| * | | Remove unnecessary cast | Kevin Lo | 2012-02-14 | 1 | -0/+182 |
| | | | |||||
| * | | Detect file modification properly by using tv_nsec. | Ed Schouten | 2012-02-10 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | POSIX 2008 standardizes st_mtim, meaning we can simply use nanosecond precision to detect file modification. MFC after: 2 weeks | ||||
| * | | Consensus between bde and pjd seemed to be that if the function names | Guy Helmer | 2012-01-26 | 1 | -8/+8 |
| | | | | | | | | | | | | | are lined up, then any * after a long type should appear after the type instead of being in front of the function name on the following line. | ||||
| * | | Make the comments consistent (capitalization, punctuation, and | Guy Helmer | 2012-01-26 | 1 | -6/+10 |
| | | | | | | | | | | | | | format). Requested by bde | ||||
| * | | Restore the parenthesis that are necessary around the constant values. | Guy Helmer | 2012-01-26 | 1 | -7/+7 |
| | | | | | | | | | Requested by bde. | ||||
| * | | Fix more disorder in prototypes and constants. | Guy Helmer | 2012-01-16 | 1 | -46/+43 |
| | | | | | | | | | | | | | Fix header comments for each section of constants. Fix whitespace in #define lines. Fix unnecessary parenthesis in constants. | ||||
| * | | Move struct pidfh definition into pidfile.c, and leave a forward declaration | Guy Helmer | 2012-01-12 | 1 | -12/+6 |
| | | | | | | | | | | | | | | | | | | | for pidfh in libutil.h in its place. This allows us to hide the contents of the pidfh structure, and also allowed removal of the "#ifdef _SYS_PARAM_H" guard from around the pidfile_* function prototypes. Suggested by pjd. | ||||
| * | | More prototype formatting fixes, struct member formatting fixes, | Guy Helmer | 2012-01-12 | 1 | -10/+17 |
| | | | | | | | | | | | | | and namespace fix for property_find() prototype. Provided by bde. | ||||
| * | | Fix prototype formatting (indentation, long lines, and continued lines). | Guy Helmer | 2012-01-11 | 1 | -23/+30 |
| | | | | | | | | | Requested by bde. | ||||
| * | | Fix namespace issues with prototype parameter names. | Guy Helmer | 2012-01-11 | 1 | -32/+32 |
| | | | | | | | | | | | | | Add missing prototype parameter names. Requested by bde. | ||||
