FreeBSD Bugzilla – Attachment 10976 Details for
Bug 21806
lock(1) currently defaults to 15 minute timeout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.31 KB, created by
mbendiks
on 2000-10-07 05:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
mbendiks
Created:
2000-10-07 05:40:01 UTC
Size:
1.31 KB
patch
obsolete
>--- lock.c.orig Wed Sep 27 01:27:08 2000 >+++ lock.c Wed Sep 27 01:36:08 2000 >@@ -51,10 +51,9 @@ > /* > * Lock a terminal up until the given key is entered, until the root > * password is entered, or the given interval times out. > * >- * Timeout interval is by default TIMEOUT, it can be changed with >- * an argument of the form -time where time is in minutes >+ * Timeout interval is by default disabled. > */ > > #include <sys/param.h> > #include <sys/stat.h> >@@ -70,10 +69,8 @@ > #include <syslog.h> > #include <unistd.h> > #include <varargs.h> > >-#define TIMEOUT 15 >- > void quit(), bye(), hi(); > static void usage __P((void)); > > struct timeval timeout; >@@ -99,15 +96,16 @@ > char *crypt(), *ttyname(); > > openlog("lock", LOG_ODELAY, LOG_AUTH); > >- sectimeout = TIMEOUT; >+ sectimeout = 0; > mypw = NULL; > usemine = 0; >- no_timeout = 0; >+ no_timeout = 1; > while ((ch = getopt(argc, argv, "npt:")) != -1) > switch((char)ch) { > case 't': >+ no_timeout = 0; > if ((sectimeout = atoi(optarg)) <= 0) > errx(1, "illegal timeout value"); > break; > case 'p': >@@ -116,8 +114,9 @@ > errx(1, "unknown uid %d", getuid()); > mypw = strdup(pw->pw_passwd); > break; > case 'n': >+ /*obsolete*/ > no_timeout = 1; > break; > case '?': > default:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21806
: 10976