Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Committed to wrong branch. | Dag-Erling Smørgrav | 2008-11-04 | 1 | -5/+4 |
| | |||||
* | Avoid assigning a const char * to a char *. | Dag-Erling Smørgrav | 2008-11-04 | 1 | -4/+5 |
| | | | | MFC after: 3 weeks | ||||
* | Diff reduction against Varnish, including one important fix: use a shared | Dag-Erling Smørgrav | 2008-10-20 | 1 | -12/+12 |
| | | | | lock if the file is opened with O_RDONLY. | ||||
* | Reimplement flopen(3) using fcntl(2) locks instead of flock(2) locks. | Dag-Erling Smørgrav | 2008-10-20 | 1 | -5/+7 |
| | |||||
* | Since in_lt() and in_lts() are not static, assume that they are intended to | Dag-Erling Smørgrav | 2008-10-20 | 1 | -0/+2 |
| | | | | be part of the public API. Accordingly, add prototypes and document them. | ||||
* | Since setclasscpumask() is not static, assume that it is intended to be | Dag-Erling Smørgrav | 2008-10-20 | 1 | -0/+1 |
| | | | | part of the public API. Accordingly, add a prototype and document it. | ||||
* | Style and whitespace. | Dag-Erling Smørgrav | 2008-10-20 | 1 | -15/+19 |
| | |||||
* | Add support for a new login capability, cpumask which allows login | Brooks Davis | 2008-07-25 | 1 | -1/+2 |
| | | | | sessions to be pinned to cpus by login class. | ||||
* | Merge hexdump(9) to userland as hexdump(3) in libutil. I'm tired of doing | John Baldwin | 2008-07-01 | 1 | -0/+8 |
| | | | | | | this by hand in userland utilities. MFC after: 1 month | ||||
* | Add four utility functions related to struct grp processing modeled in-part | Sean Farley | 2008-04-23 | 2 | -0/+241 |
| | | | | | | | | | | | | | | | | | | | after similar calls related to struct pwd in libutil/pw_util.c: - gr_equal() Perform a deep comparison of two struct grp's. It does a thorough, yet unoptimized comparison of all the members regardless of order. - gr_make() Create a string (see group(5)) from a struct grp. - gr_dup() Duplicate a struct grp. Returns a value that is a single contiguous block of memory. - gr_scan() Create a struct grp from a string (as produced by gr_make()). MFC after: 3 weeks | ||||
* | Constify the first argument to expand_number() so that it can | John Birrell | 2007-11-18 | 1 | -1/+1 |
| | | | | be called with a const without the compiler grisling. | ||||
* | Implement expand_number(3), which is the opposite of humanize_number(3), ie. | Pawel Jakub Dawidek | 2007-09-01 | 1 | -0/+1 |
| | | | | | | | | | | a number in human-readable form is converted to int64_t, for example: 123b -> 123 10k -> 10240 16G -> 17179869184 First version submitted by: Eric Anderson <anderson@freebsd.org> Approved by: re (bmah) | ||||
* | Back out previous commit until I figure out why my regression test fails. | Dag-Erling Smørgrav | 2007-08-03 | 1 | -7/+4 |
| | | | | Approved by: re (kensmith) | ||||
* | Use fcntl(2)-style locks instead of less-portable flock(2)-style locks. | Dag-Erling Smørgrav | 2007-08-03 | 1 | -4/+7 |
| | | | | Approved by: re (kensmith) | ||||
* | Update some comments, mostly regarding LOGIN_MECLASS and ~/.login_conf. | Yaroslav Tykhiy | 2007-06-14 | 1 | -8/+18 |
| | |||||
* | Nit: avoid shadowing truncate(2) with a local variable. | Dag-Erling Smørgrav | 2007-05-23 | 1 | -3/+3 |
| | |||||
* | Fix stupid braino in previous commit. | Dag-Erling Smørgrav | 2007-05-23 | 1 | -1/+1 |
| | |||||
* | If (flags & O_TRUNC), don't truncate the file until we've successfully | Dag-Erling Smørgrav | 2007-05-23 | 1 | -1/+11 |
| | | | | | | locked it. MFC after: 3 weeks | ||||
* | Well gag me with a spoon... I'm so used to working at high WARNS levels | Dag-Erling Smørgrav | 2007-05-10 | 2 | -1/+5 |
| | | | | that I make stupid fundamental mistakes like this when I don't. | ||||
* | Remove superfluous unexpanded RCS tag. | Dag-Erling Smørgrav | 2007-05-10 | 1 | -2/+0 |
| | |||||
* | DTRT when O_NONBLOCK is specified. | Dag-Erling Smørgrav | 2007-05-10 | 1 | -4/+7 |
| | | | | MFC after: 3 weeks | ||||
* | I'm tired of seeing this done incorrectly and non-portably, so add a | Dag-Erling Smørgrav | 2007-05-10 | 2 | -0/+92 |
| | | | | | | flopen(3) function which reliably opens and locks a file. MFC after: 3 weeks | ||||
* | Remove California Regent's clause 3, per letter | Warner Losh | 2007-01-09 | 1 | -4/+0 |
| | |||||
* | Minor comment fix. | Thomas Quinot | 2006-09-08 | 1 | -1/+1 |
| | |||||
* | (pw_copy): Handle the case of a malformed line in master.passwd | Thomas Quinot | 2006-09-04 | 1 | -2/+11 |
| | | | | | | | | (copy it silently, do not dereference NULL pointer). PR: bin/102848 Reviewed by: security-officer (cperciva) MFC after: 1 week | ||||
* | Add utility functions for checking if a given kernel module is loaded, | Dag-Erling Smørgrav | 2006-02-18 | 1 | -0/+5 |
| | | | | and loading it. | ||||
* | Add a family of functions for reliable pidfiles handling. | Pawel Jakub Dawidek | 2005-08-24 | 1 | -0/+17 |
| | | | | | Idea from: jmg Discussed on: arch@ | ||||
* | Properly spell default in a comment. | Tom Rhodes | 2005-04-22 | 1 | -1/+1 |
| | |||||
* | Grammar in a comment. | Ruslan Ermilov | 2004-12-18 | 1 | -1/+1 |
| | |||||
* | Add humanize_number(3) to libutil for formating numbers into a human | Pawel Jakub Dawidek | 2004-05-24 | 1 | -0/+11 |
| | | | | | | readable form. Obtained from: NetBSD | ||||
* | Don't depend on NULL's expansion being a pointer, cast it before it is passed | Stefan Farfeleder | 2004-05-18 | 1 | -3/+4 |
| | | | | | | to variadic functions. Approved by: das (mentor) | ||||
* | Bring the description for login_getclassbyname in sync with the function's | Diomidis Spinellis | 2004-05-11 | 1 | -3/+4 |
| | | | | | | | arguments. The function has as a second argument a struct passwd * pointer, not a directory name. MFC after: 2 weeks | ||||
* | Add the clean_environment call to libutil.h also. | Tim Kientzle | 2004-02-26 | 1 | -0/+2 |
| | | | | MFC after: 2 weeks | ||||
* | (mostly) Clean up some const warnings here. The code takes some liberties | Peter Wemm | 2003-10-26 | 1 | -8/+9 |
| | | | | | because it is the originator of various const strings and knows that they came from malloc. | ||||
* | ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify. | Mark Murray | 2003-10-18 | 5 | -74/+79 |
| | |||||
* | Tidy up. Sort headers. | Mark Murray | 2003-06-14 | 2 | -10/+9 |
| | |||||
* | Brucify. | Dag-Erling Smørgrav | 2003-04-10 | 1 | -4/+8 |
| | |||||
* | Correctly detect the case where a password entry was changed while we were | Dag-Erling Smørgrav | 2003-04-09 | 1 | -2/+7 |
| | | | | | | preparing to edit it. PR: bin/50563 | ||||
* | Apply the correct fix for bin/50679: don't mess around with process groups | Dag-Erling Smørgrav | 2003-04-09 | 1 | -13/+19 |
| | | | | | | | or the tty, just block selected signals in the parent like system(3) does. Many thanks to bde for his assistance in finding the correct solution. PR: bin/50679 | ||||
* | Band-aid for the "^C kills the editor" problem. I haven't yet found the | Dag-Erling Smørgrav | 2003-04-08 | 1 | -10/+6 |
| | | | | | | | | proper way to fix this. The way this works is to prepend "exec " to the editor command to eliminate the "shell in the middle" which prevents us from properly reawakening the editor after a SIGTSTP. PR: bin/50679 | ||||
* | Make pw_edit() use /bin/sh to interpret the EDITOR environment | David Schultz | 2003-03-17 | 1 | -2/+12 |
| | | | | | | | variable. PR: 48748 Reviewed by: mike (mentor) | ||||
* | Don't forget to '\n'-terminate new entries. This unbreaks chpass -a. | Dag-Erling Smørgrav | 2002-10-29 | 1 | -1/+2 |
| | | | | Submitted by: joerg | ||||
* | Replace various spelling with FALLTHROUGH which is lint()able | Philippe Charnier | 2002-08-25 | 1 | -1/+1 |
| | |||||
* | Add LOGIN_SETMAC, which will indicate to the user context management code | Robert Watson | 2002-08-16 | 1 | -1/+2 |
| | | | | | | | | that it should also set the user's default MAC label, if available and permitted. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs | ||||
* | Whitespace cleanup--it's not style(9), but it is consistent. Prep | Robert Watson | 2002-08-11 | 1 | -3/+3 |
| | | | | | | | for MAC-related commits to the login infrastructure. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs | ||||
* | Be more clear in error messages. | Nick Hibma | 2002-06-23 | 1 | -4/+9 |
| | | | | | | | Distinguish between a held lock and a failed lock op. If rpc.lockd is not running on a diskless client this makes clearer what the problem is. | ||||
* | If no old_pw was passed to pw_copy, compare just the name. | Dag-Erling Smørgrav | 2002-05-08 | 1 | -1/+2 |
| | | | | Sponsored by: DARPA, NAI Labs | ||||
* | Add passwd manipulation code based on parts of vipw and chpass. | Dag-Erling Smørgrav | 2002-05-08 | 2 | -82/+433 |
| | | | | Sponsored by: DARPA, NAI Labs | ||||
* | Make mppath and masterpasswd pointers instead of arrays, and initialize | Dag-Erling Smørgrav | 2002-04-17 | 1 | -2/+4 |
| | | | | | | | | | them to point at static strings that contain the default paths. This makes 'vipw -d' work again (I broke it in rev 1.21; apologies for taking so long to fix it.) Spotted by: Olivier Houchard <doginou@cognet.ci0.org> Sponsored by: DARPA, NAI Labs | ||||
* | Remove bogus reference to _use_yp. | Dag-Erling Smørgrav | 2002-04-15 | 1 | -9/+1 |
| |