Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | Const poisoning. | Ruslan Ermilov | 2002-04-08 | 3 | -14/+14 |
| | |||||
* | Remove multi-line __P() usage. | David E. O'Brien | 2002-03-22 | 1 | -8/+7 |
| | |||||
* | Remove __P() usage. | David E. O'Brien | 2002-03-21 | 2 | -64/+64 |
| | |||||
* | Remove a bogus cast. | Dag-Erling Smørgrav | 2002-03-06 | 1 | -1/+1 |
| | |||||
* | #include <stddef.h> for the definition of NULL instead of depending on | Bruce Evans | 2002-02-25 | 1 | -1/+3 |
| | | | | | | namespace pollution 2 layers deep in <sys/stat.h>. Sorted includes. | ||||
* | ANSIfy and constify. | Dag-Erling Smørgrav | 2002-02-05 | 1 | -17/+15 |
| | | | | Sponsored by: DARPA, NAI Labs | ||||
* | Add __FBSDID()s to libutil | Matthew Dillon | 2001-09-30 | 3 | -6/+8 |
| | |||||
* | 1) Back out ~/.login_conf disable | Andrey A. Chernov | 2001-09-25 | 1 | -6/+5 |
| | | | | 2) Pick only "me" class from ~/.login_conf as documented | ||||
* | Disable per-user .login_conf support due to incorrect merging of local | Robert Watson | 2001-09-16 | 1 | -0/+3 |
| | | | | | | and globaly settings. An alternative implementation will be developed. Reported by: Przemyslaw Frasunek <venglin@freebsd.lublin.pl> | ||||
* | o Add a comment noting that the early setting of privileges for the purpose | Robert Watson | 2001-09-15 | 1 | -2/+6 |
| | | | | | | | of NFS home directory and root directory processing fails to include additional groups. This doesn't impact the final credential, but does mean that users may be denied login even when additional groups might allow it. | ||||
* | remove emalloc,ecalloc,erealloc,estrdup | Assar Westerlund | 2001-07-23 | 1 | -4/+0 |
| |