summaryrefslogtreecommitdiffstats
path: root/lib/libutil/login_times.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix -Wunsequenced warningkientzle2013-06-291-1/+1
| | | | Submitted by: dt71@gmx.com
* Additional style and whitespace fixes.des2008-10-201-1/+3
|
* Style and whitespacedes2008-10-201-17/+17
|
* Unbreakdes2008-10-201-3/+3
|
* Use strlcpy() when we mean it.delphij2008-10-171-2/+1
|
* Restore use of strncpy(), as there is later unconditional terminationrwatson2006-01-161-1/+1
| | | | | | of the string, and reliance on the returned pointer. Found by: bde (tm)
* Replace strncpy() with strlcpy() when parsing login time limit stringsrwatson2006-01-161-1/+1
| | | | | | | | | | | from /etc/login.conf, or an unterminated string buffer could result. Probably, login_times.c should reject excessively long time strings as unparseable, rather than truncating, which might render an invalid string valid. Found with: Coverity Prevent (tm) Reviewed by: csjp MFC after: 3 days
* Tidy up. Sort headers.markm2003-06-141-4/+3
|
* Add __FBSDID()s to libutildillon2001-09-301-2/+3
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Now take stdio.h out of files that don't require it.jkh1998-10-091-2/+1
|
* Summary of login.conf support changes:davidn1997-05-101-92/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Incorporated BSDI code and enhancements, better logging for error checking (which has been shown to be a problem, and is therefore justified, imho); also some minor things we were missing, including better quad_t math, which checks for under/overflows. o setusercontext() now allows user resource limit overrides, but does this AFTER dropping root privs, to restrict the user to droping hard limits and set soft limits within the kernel's allowed user limits. o umask() only set once, and only if requested. o add _secure_path(), and use in login.conf to guard against symlinks etc. and non-root owned or non-user owned files being used. Derived from BSDI contributed code. o revamped authentication code to BSDI's latest api, which includes deleting authenticate() and adding auth_check() and a few other functions. This is still marked as depecated in BSDI, but is included for completeness. No other source in the tree uses this anyway, so it is now bracketed with #ifdef LOGIN_CAP_AUTH which is by default not defined. Only auth_checknologin() and auth_cat() are actually used in module login_auth.c. o AUTH_NONE definition removed (collided with other includes in the tree). [bde] o BSDI's login_getclass() now accepts a char *classname parameter rather than struct passwd *pwd. We now do likewise, but added login_getpwclass() for (sort of) backwards compatiblity, namely because we handle root as a special case for the default class. This will require quite a few changes elsewhere in the source tree. o We no longer pretend to support rlim_t as a long type. o Revised code formatting to be more bsd-ish style.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Don't depend only <stdio.h> bogusly including <sys/types.h>.bde1997-01-051-1/+2
| | | | | | (<sys/types.h> is a prerequisite for <login_cap.h> mainly because the latter wants to typedef rlim_t. rlim_t is typedefed in <sys/types.h> in NetBSD.)
* Library functions relating to the login class capabilities database,davidn1997-01-041-0/+166
including manpages. See also login_cap.h.
OpenPOWER on IntegriCloud