Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | |
| | ||||||
* | add ecalloc, emalloc, erealloc, estrdup - versions of the e-less | Assar Westerlund | 2001-07-22 | 1 | -0/+4 | |
| | | | | functions that exit instead of failing | |||||
* | Fix the type of the NULL arg to execl() | Brian Somers | 2001-07-09 | 1 | -3/+3 | |
| | | | | Idea from: Theo de Raadt <deraadt@openbsd.org> | |||||
* | Don't pass NULL to the %s format. | Dima Dorfman | 2001-04-22 | 1 | -2/+6 | |
| | | | | Reviewed by: kris | |||||
* | o Slap some "_"'s in front of variable names relating to extattr functions, | Robert Watson | 2001-03-22 | 1 | -3/+3 | |
| | | | | | | so as not to pollute application namespace. Submitted by: bde | |||||
* | o Rename "namespace" argument to "attrnamespace" as namespace is a C++ | Robert Watson | 2001-03-19 | 1 | -2/+3 | |
| | | | | | | | | reserved word, causing breakage when a C++ program included libutil.h This change will be propagated elsewhere shortly. Submitted by: jkh Obtained from: TrustedBSD Project | |||||
* | o To support new EA interface with explicit namespaces, introduce two | Robert Watson | 2001-03-15 | 1 | -0/+2 | |
| | | | | | | | | | | | utility functions which convert between string namespace names and numeric constants used by the interface. Right now, two namespaces are supported, EXTATTR_NAMESPACE_SYSTEM ("system") and EXTATTR_NAMESPACE_USER ("user"). These functions are used by various userland EA utilities, rather than hard coding the routines all over the place. Obtained from: TrustedBSD Project | |||||
* | Fix typo: seperate -> separate. | Jeroen Ruigrok van der Werven | 2001-02-06 | 1 | -2/+2 | |
| | | | | | | Seperate does not exist in the english language. Submitted to look at by: kris | |||||
* | Added PROPERTY_MAX_VALUE and PROPERTY_MAX_NAME defines to libutil.h so | Murray Stokely | 2000-11-08 | 1 | -0/+3 | |
| | | | | | | | that applications know how large of a buffer they must allocate before calling property_find(). Also added a $FreeBSD$ tag while I'm here. Approved by: jkh | |||||
* | Fix problems people were having with large -O levels with GCC and | Brian Feldman | 2000-10-27 | 1 | -7/+6 | |
| | | | | | | | | | | getting libutil/libcrypt to work properly. I've determined that GCC thinks it can inline all functions, including weak-symboled ones, if it feels like it. Create a new stub.c and move any stubs there to prevent inlining. Thanks to jdp and William S. Duncanson for helping me finally find the problem. | |||||
* | Constify the arg to logout(3). It is const-safe. | Peter Wemm | 2000-09-04 | 1 | -1/+1 | |
| | | | | (cosmetic: drop some "register" qualifications too.) | |||||
* | Move setproctitle() from libutil to libc (after a repo-copy) | Brian Somers | 2000-09-02 | 1 | -1/+0 | |
| | | | | | | | | | and bump __FreeBSD_version to 500012 to mark the occasion. setproctitle() is prototyped in unistd.h as opposed to stdlib.h where OpenBSD and NetBSD have it. Reviewed by: peter | |||||
* | Add weak symbol pragma for crypt_set_format(). | Jeroen Ruigrok van der Werven | 2000-08-23 | 1 | -0/+6 | |
| | | | | Approved by: green | |||||
* | Stick login_setcryptfmt() in its own file to make pulling in of | Brian Feldman | 2000-08-23 | 2 | -13/+44 | |
| | | | | -lcrypt only happen if truly necessary. | |||||
* | Add working and easy crypt(3)-switching. Yes, we need a whole new API | Brian Feldman | 2000-08-22 | 2 | -0/+14 | |
| | | | | | | | | | | | | | | for crypt(3) by now. In any case: Add crypt_set_format(3) + documentation to -lcrypt. Add login_setcryptfmt(3) + documentation to -lutil. Support for switching crypt formats in passwd(8). Support for switching crypt formats in pw(8). The simple synopsis is: edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :) Reviewed by: peter | |||||
* | Don't call warn() without a format string. | Kris Kennaway | 2000-07-12 | 1 | -1/+1 | |
| |