aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/lock
Commit message (Collapse)AuthorAgeFilesLines
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+2
| | | | Notes: svn path=/head/; revision=131491
* Two fixes here:Colin Percival2004-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) Notes: svn path=/head/; revision=124824
* Eliminate last three uses of varargs.h in the tree. These three filesAlexander Kabaev2003-09-011-1/+0
| | | | | | | | were including varargs.h file but did not use any of its macros, so they escaped the clean-up before. Notes: svn path=/head/; revision=119632
* Introduce options definition the standard way.Philippe Charnier2003-06-091-3/+2
| | | | Notes: svn path=/head/; revision=116112
* Document the fact that VTY locking is easily bypassable when DDBMaxime Henrion2003-02-271-1/+5
| | | | | | | is compiled in the kernel. Also add some useful xrefs to lock(1). Notes: svn path=/head/; revision=111633
* Make this work without COMPAT_43 by using tcgetattr()/tcsetattr() insteadTim J. Robbins2003-02-101-10/+10
| | | | | | | of ioctl TIOCGETP/TIOCSETP. Notes: svn path=/head/; revision=110609
* ANSIify function definitions.David Malone2002-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 Notes: svn path=/head/; revision=102944
* Add a -v option that prevents switching virtual terminals while thisDima Dorfman2002-07-282-13/+47
| | | | | | | | terminal is locked. This permits the user to easily lock the entire console from a single terminal. Notes: svn path=/head/; revision=100806
* Correct a comment: Typing in the root password at the "Key:" promptDima Dorfman2002-07-101-2/+2
| | | | | | | doesn't (and shouldn't) work. Notes: svn path=/head/; revision=99709
* Fix indentation: Don't use space where tabs will do; specifically,Dima Dorfman2002-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 Notes: svn path=/head/; revision=99708
* Consistently use FBSDIDDavid E. O'Brien2002-06-301-2/+2
| | | | Notes: svn path=/head/; revision=99112
* Use `The .Nm utility'Philippe Charnier2002-04-201-2/+3
| | | | Notes: svn path=/head/; revision=95124
* remove __PWarner Losh2002-03-221-2/+4
| | | | Notes: svn path=/head/; revision=92920
* Remove leaf node WARNS?=2 (that mainly I added). This shouldMark Murray2002-02-081-1/+0
| | | | | | | help the GCC3 transition and CURRENT in general. Notes: svn path=/head/; revision=90415
* Warns cleanups:David Malone2001-12-032-8/+8
| | | | | | | | Signal handlers are supposed to take an int as an arg. Don't locally declare crypt or ttyname. Notes: svn path=/head/; revision=87286
* Set BINOWN=root explicitly for setuid root binaries.Ruslan Ermilov2001-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. Notes: svn path=/head/; revision=83391
* Remove whitespace at EOL.Dima Dorfman2001-07-151-1/+1
| | | | Notes: svn path=/head/; revision=79755
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-2/+2
| | | | Notes: svn path=/head/; revision=68963
* Revert the libcrypt/libmd stuff back to how it was. This should not havePeter Wemm1999-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. Notes: svn path=/head/; revision=54782
* Add libmd (or move it after libcrypt). We don't want the linker to beMarcel Moolenaar1999-12-161-2/+3
| | | | | | | | smart because it will definitely get it wrong. This popped up during cross-linking. Notes: svn path=/head/; revision=54677
* Fix a style bug that I introduced (both sys/param.h and sys/types.hJacques Vidrine1999-10-121-1/+0
| | | | | | | | | included). Caught by: sheldonh@freebsd.org Notes: svn path=/head/; revision=52159
* log root unlock attemptsJacques Vidrine1999-10-121-1/+15
| | | | | | | PR: bin/13932 Notes: svn path=/head/; revision=52158
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-2/+2
| | | | Notes: svn path=/head/; revision=50477
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48792
* Remove useless `BINOWN=root' now that it is the default.David E. O'Brien1998-09-191-1/+0
| | | | Notes: svn path=/head/; revision=39495
* Don't assume that time_t is long.Bruce Evans1998-06-291-2/+4
| | | | Notes: svn path=/head/; revision=37262
* Use err(3). Add usage().Philippe Charnier1997-07-211-28/+31
| | | | Notes: svn path=/head/; revision=27575
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* Closes PR bin/1567Ollivier Robert1996-09-142-9/+32
| | | | | | | | | | | | | | | | | | /usr/bin/lock can be used to lock a terminal much like xlock does for your X-windows session. Problem is, /usr/bin/lock cannot lock your terminal indefinately. Rather you must specify a timeout value, after which, your terminal is unlocked and become unsecured. I have added a ``-n'' no timeout option to /usr/bin/lock Currently the only way to get this functionality is to use a huge timeout value and hope it is long enought (in time). This method also requires you to know the maxium number of minutes you are allowed to specify. Submitted by: David E. O'Brien <obrien@Nuxi.cs.ucdavis.edu> Notes: svn path=/head/; revision=18295
* Add dependencies on libraries to DPADD. Someday this should be doneBruce Evans1994-08-281-0/+1
| | | | | | | | | automagically. -lfoo has to be right to work, but ${LIBFO0} is too easy to forget or misspell; nothing checks it and it should be different for shared libraries. Notes: svn path=/head/; revision=2375
* LDADD= -lcryptGeoff Rehmet1994-08-201-0/+1
| | | | | | | Submitted by: Geoff Notes: svn path=/head/; revision=2158
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-273-0/+298
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590