summaryrefslogtreecommitdiffstats
path: root/usr.bin/lock
Commit message (Collapse)AuthorAgeFilesLines
* Add META_MODE support.sjg2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-271-2/+2
| |\ | |/ |/|
| * Merge from head@274682sjg2014-11-192-2/+5
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Updated dependenciessjg2013-03-111-0/+1
| | |
| * | Updated dependenciessjg2013-02-161-2/+0
| | |
| | |
| | \
| *-. \ Sync from headsjg2012-11-041-19/+18
| |\ \ \
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+20
| | |/ / | |/| | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | Convert to usr.bin/ to LIBADDbapt2014-11-251-2/+2
| |_|/ |/| | | | | | | | Reduce overlinking
* | | Missed comma.pluknet2014-08-261-1/+1
| | |
* | | More man pages that need to know about vt in addition to syscons.se2014-08-261-0/+3
| | | | | | | | | | | | MFC after: 3 dayS
* | | Remove LOG_ODELAY because it does nothing.neel2014-08-171-1/+1
| | | | | | | | | | | | | | | Reviewed by: jilles CR: https://reviews.freebsd.org/D611
* | | Rollback r266496.ray2014-05-221-2/+2
| | | | | | | | | | | | | | | | | | | | | Different meaning of flags for lock(1) and vidcontrol(1) confuse me. Pointy hat to: ray Sponsored by: The FreeBSD Foundation
* | | Sync lock(1) on VT_LOCKSWITCH usage with syscons(4), vt(4) and vidcontrol(1).ray2014-05-211-2/+2
| |/ |/| | | | | Sponsored by: The FreeBSD Foundation
* | Check the return error of set[e][ug]id. While this can never fail in theeadler2012-10-221-1/+3
| | | | | | | | | | | | | | | | | | | | current version of FreeBSD, this isn't guarenteed by the API. Custom security modules, or future implementations of the setuid and setgid may fail. Submitted by: Erik Cederstrand Approved by: cperciva MFC after: 3 days
* | Rework all non-contributed files that use `struct timezone'.ed2012-09-011-18/+15
|/ | | | | | | | | | | | | | This structure is not part of POSIX. According to POSIX, gettimeofday() has the following prototype: int gettimeofday(struct timeval *restrict tp, void *restrict tzp); Also, POSIX states that gettimeofday() shall return 0 (as long as tzp is not used). Remove dead error handling code. Also use NULL for a nul-pointer instead of integer 0. While there, change all pieces of code that only use tv_sec to use time(3), as this provides less overhead.
* Handle NULL return from crypt(3). Mostly from DragonFlykevlo2012-02-221-2/+3
|
* Add missing static keywords to lock(1)ed2011-11-061-12/+12
|
* Fix style bug introduced in r216696.ed2010-12-271-1/+2
| | | | Additional indentation caused the line to become longer than 80 columns.
* Slightly improve output of lock(1).ed2010-12-251-1/+8
| | | | | | - Remove the /dev/ portion of the TTY name. - In case we use lock -p, print the username that was used to obtain the password hash.
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-112-8/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* Make WARNS=6 safe.gavin2010-06-282-5/+4
| | | | Tested by: make universe
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-0/+2
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+1
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-1/+0
| | | | Tested with: make universe
* Expand *n't contractions.ru2005-02-131-1/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+2
|
* Two fixes here:cperciva2004-01-221-2/+4
| | | | | | | | | | | 1. If fgets fails, don't go into an infinite cpu-intensive loop. Instead, check to see if the terminal still exists, and sleep(1) otherwise. 2. When we check to see if the terminal still exists, make sure we're not mislead by EINTR. This could have been a security issue, but fortunately the current implementation of tcgetattr doesn't EINTR. PR: bin/60758 Approved by: rwatson (mentor)
* Eliminate last three uses of varargs.h in the tree. These three fileskan2003-09-011-1/+0
| | | | | were including varargs.h file but did not use any of its macros, so they escaped the clean-up before.
* Introduce options definition the standard way.charnier2003-06-091-3/+2
|
* Document the fact that VTY locking is easily bypassable when DDBmux2003-02-271-1/+5
| | | | is compiled in the kernel. Also add some useful xrefs to lock(1).
* Make this work without COMPAT_43 by using tcgetattr()/tcsetattr() insteadtjr2003-02-101-10/+10
| | | | of ioctl TIOCGETP/TIOCSETP.
* ANSIify function definitions.dwmalone2002-09-041-4/+2
| | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5
* Add a -v option that prevents switching virtual terminals while thisdd2002-07-282-13/+47
| | | | | terminal is locked. This permits the user to easily lock the entire console from a single terminal.
* Correct a comment: Typing in the root password at the "Key:" promptdd2002-07-101-2/+2
| | | | doesn't (and shouldn't) work.
* Fix indentation: Don't use space where tabs will do; specifically,dd2002-07-101-30/+30
| | | | | | | | don't use spaces at the beginning of a line where tabs are normally used (the worst thing was that half of this file was right (tabs) and half was wrong (spaces), making for painful reading). Reviewed by: /sbin/md5, diff -b
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* Use `The .Nm utility'charnier2002-04-201-2/+3
|
* remove __Pimp2002-03-221-2/+4
|
* Remove leaf node WARNS?=2 (that mainly I added). This shouldmarkm2002-02-081-1/+0
| | | | help the GCC3 transition and CURRENT in general.
* Warns cleanups:dwmalone2001-12-032-8/+8
| | | | | Signal handlers are supposed to take an int as an arg. Don't locally declare crypt or ttyname.
* Set BINOWN=root explicitly for setuid root binaries.ru2001-09-131-0/+1
| | | | | | This is not "useless", as one may have non-default setting for BINOWN in make.conf, and we still want these to be installed setuid root in this case.
* Remove whitespace at EOL.dd2001-07-151-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-2/+2
|
* Revert the libcrypt/libmd stuff back to how it was. This should not havepeter1999-12-181-2/+2
| | | | | | | | happened as it was working around problems elsewhere (ie: binutils/ld not doing the right thing according to the ELF design). libcrypt has been adjusted to not need the runtime -lmd. It's still not quite right (ld is supposed to work damnit) but at least it doesn't impact all the users of libcrypt in Marcel's cross-build model.
* Add libmd (or move it after libcrypt). We don't want the linker to bemarcel1999-12-161-2/+3
| | | | | smart because it will definitely get it wrong. This popped up during cross-linking.
* Fix a style bug that I introduced (both sys/param.h and sys/types.hnectar1999-10-121-1/+0
| | | | | | included). Caught by: sheldonh@freebsd.org
* log root unlock attemptsnectar1999-10-121-1/+15
| | | | PR: bin/13932
OpenPOWER on IntegriCloud