summaryrefslogtreecommitdiffstats
path: root/libutil
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a family of functions for reliable pidfiles handling.Pawel Jakub Dawidek2005-08-241-0/+17
| | | | | Idea from: jmg Discussed on: arch@
* Properly spell default in a comment.Tom Rhodes2005-04-221-1/+1
|
* Grammar in a comment.Ruslan Ermilov2004-12-181-1/+1
|
* Add humanize_number(3) to libutil for formating numbers into a humanPawel Jakub Dawidek2004-05-241-0/+11
| | | | | | readable form. Obtained from: NetBSD
* Don't depend on NULL's expansion being a pointer, cast it before it is passedStefan Farfeleder2004-05-181-3/+4
| | | | | | to variadic functions. Approved by: das (mentor)
* Bring the description for login_getclassbyname in sync with the function'sDiomidis Spinellis2004-05-111-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 Kientzle2004-02-261-0/+2
| | | | MFC after: 2 weeks
* (mostly) Clean up some const warnings here. The code takes some libertiesPeter Wemm2003-10-261-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 Murray2003-10-185-74/+79
|
* Tidy up. Sort headers.Mark Murray2003-06-142-10/+9
|
* Brucify.Dag-Erling Smørgrav2003-04-101-4/+8
|
* Correctly detect the case where a password entry was changed while we wereDag-Erling Smørgrav2003-04-091-2/+7
| | | | | | preparing to edit it. PR: bin/50563
* Apply the correct fix for bin/50679: don't mess around with process groupsDag-Erling Smørgrav2003-04-091-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 theDag-Erling Smørgrav2003-04-081-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 environmentDavid Schultz2003-03-171-2/+12
| | | | | | | variable. PR: 48748 Reviewed by: mike (mentor)
* Don't forget to '\n'-terminate new entries. This unbreaks chpass -a.Dag-Erling Smørgrav2002-10-291-1/+2
| | | | Submitted by: joerg
* Replace various spelling with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-251-1/+1
|
* Add LOGIN_SETMAC, which will indicate to the user context management codeRobert Watson2002-08-161-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. PrepRobert Watson2002-08-111-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 Hibma2002-06-231-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ørgrav2002-05-081-1/+2
| | | | Sponsored by: DARPA, NAI Labs
* Add passwd manipulation code based on parts of vipw and chpass.Dag-Erling Smørgrav2002-05-082-82/+433
| | | | Sponsored by: DARPA, NAI Labs
* Make mppath and masterpasswd pointers instead of arrays, and initializeDag-Erling Smørgrav2002-04-171-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ørgrav2002-04-151-9/+1
|
* Const poisoning.Ruslan Ermilov2002-04-083-14/+14
|
* Remove multi-line __P() usage.David E. O'Brien2002-03-221-8/+7
|
* Remove __P() usage.David E. O'Brien2002-03-212-64/+64
|
* Remove a bogus cast.Dag-Erling Smørgrav2002-03-061-1/+1
|
* #include <stddef.h> for the definition of NULL instead of depending onBruce Evans2002-02-251-1/+3
| | | | | | namespace pollution 2 layers deep in <sys/stat.h>. Sorted includes.
* ANSIfy and constify.Dag-Erling Smørgrav2002-02-051-17/+15
| | | | Sponsored by: DARPA, NAI Labs
* Add __FBSDID()s to libutilMatthew Dillon2001-09-303-6/+8
|
* 1) Back out ~/.login_conf disableAndrey A. Chernov2001-09-251-6/+5
| | | | 2) Pick only "me" class from ~/.login_conf as documented
* Disable per-user .login_conf support due to incorrect merging of localRobert Watson2001-09-161-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 purposeRobert Watson2001-09-151-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,estrdupAssar Westerlund2001-07-231-4/+0
|
* add ecalloc, emalloc, erealloc, estrdup - versions of the e-lessAssar Westerlund2001-07-221-0/+4
| | | | functions that exit instead of failing
* Fix the type of the NULL arg to execl()Brian Somers2001-07-091-3/+3
| | | | Idea from: Theo de Raadt <deraadt@openbsd.org>
* Don't pass NULL to the %s format.Dima Dorfman2001-04-221-2/+6
| | | | Reviewed by: kris
* o Slap some "_"'s in front of variable names relating to extattr functions,Robert Watson2001-03-221-3/+3
| | | | | | so as not to pollute application namespace. Submitted by: bde
* o Rename "namespace" argument to "attrnamespace" as namespace is a C++Robert Watson2001-03-191-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 twoRobert Watson2001-03-151-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 Werven2001-02-061-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 soMurray Stokely2000-11-081-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 andBrian Feldman2000-10-271-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 Wemm2000-09-041-1/+1
| | | | (cosmetic: drop some "register" qualifications too.)
* Move setproctitle() from libutil to libc (after a repo-copy)Brian Somers2000-09-021-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 Werven2000-08-231-0/+6
| | | | Approved by: green
* Stick login_setcryptfmt() in its own file to make pulling in ofBrian Feldman2000-08-232-13/+44
| | | | -lcrypt only happen if truly necessary.
* Add working and easy crypt(3)-switching. Yes, we need a whole new APIBrian Feldman2000-08-222-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 Kennaway2000-07-121-1/+1
|