summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/login_cap.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ANSIfy function declarations, move initializations to declaration blockmmcc2016-03-101-19/+10
| | | | ok millert@
* Remove NULL-checks before free() and a few related dead assignments.mmcc2015-12-281-5/+3
| | | | ok and valuable input from millert@
* remove null check before free. from Michael McConvilletedu2015-09-141-29/+15
| | | | ok semarie
* Wrap <login_cap.h> so that calls go direct and the symbols are all weakguenther2015-09-131-1/+11
|
* Use setresuid() and setresgid(). OK guenther@ deraadt@millert2014-04-011-7/+8
|
* simplify and clarify login_getstyle; ok deraadt@millert2008-10-021-14/+7
|
* Check snprintf(3) return value for error or truncation.moritz2007-09-171-3/+12
| | | | | | Mostly path construction, where truncation could be bad. ok and input from deraadt@ millert@ ray@
* use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt2007-09-021-2/+2
|
* a few rlim_t casts, kind of ok otto and millertderaadt2006-04-091-13/+13
|
* Fix use after free(). Bug found by mpech@; ok deraadt@otto2005-10-041-4/+4
|
* unused variable killedderaadt2004-09-161-3/+2
|
* Only expand a tilde for strings like "~", "~/..", "~user" and "~user/".millert2004-08-101-19/+43
| | | | | For the PATH, only expand a tilde that is at the beginning of the path name. This is similar to the behavior prior to my commit here yesterday.
* Support the "setenv" capability in login.conf ala FreeBSD. Followingmillert2004-08-091-62/+242
| | | | | | | FreeBSD's example, a '~' in an environment variable is replaced with the user's homedir. A '$' is replaced by the user's login name. Both can be escaped with a backslash to get the literal char. OK deraadt@
* Honor vmemoryuse resouce limit if RLIMIT_VMEM is defined.millert2004-08-071-1/+4
|
* ansify function definitions and zap some `register'jfb2004-05-181-60/+16
| | | | ok millert@
* amout -> amount; from tom@.fgsch2004-01-071-2/+2
|
* dont compare int to NULL, millert@ okavsm2003-10-241-2/+2
|
* protosderaadt2003-06-251-1/+2
|
* Rewritten setuserpath() that is much clearer and uses strlcpy()millert2003-03-311-43/+68
| | | | for added paranoia. tdeval@ and mpech@ OK
* more writeable -> writable by torhhenning2002-12-151-2/+2
|
* more snprintf; ok millertderaadt2002-11-221-3/+3
|
* Use strtoll() and strtoull() instead of strtoq() and strtouq() nowmillert2002-10-091-4/+4
| | | | that we have them as per the original BSDi code.
* %u and uid/gidderaadt2002-06-271-4/+4
|
* uid_t is unsignedderaadt2002-06-231-2/+2
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-5/+5
|
* Fix memory leak in setuserpath(). We prefer patch from millert@.mpech2002-01-291-12/+15
|
* Fix memory leaks in login_getcapnum() and login_getcapsize().mpech2002-01-281-3/+25
| | | | millert@ ok
* Fix memory leaks in login_getstyle(), login_getstr() and login_getcaptime()millert2002-01-231-42/+62
|
* Complain via syslog if login.conf does not exist. With the BSDmillert2001-05-301-5/+2
| | | | | | authentication stuff in you really want to know if this file doesn't exist. The last two releases have shipped with /etc/login.conf so there's no excuse not to have it, other than an error.
* Silently convert s/key -> skey in login_getstyle(). A bit of a hackmillert2000-12-041-1/+5
| | | | but OpenBSD folks are more used to saying s/key.
* seperate -> separate, okay aaron@provos2000-11-101-2/+2
|
* Change setuserpath() from void to int so we can pass up a returnmillert2000-09-161-6/+13
| | | | value if setenv() fails. Porblem pointed out by deraadt.
* KNFderaadt2000-08-241-4/+4
|
* login.conf code from BSDi. This does not include the bsd auth codemillert2000-08-201-0/+901
which will come later. At this stage it is primarily used for setting resource limits.