diff --git a/man/remind.1 b/man/remind.1 index f0bac38e..4279048f 100644 --- a/man/remind.1 +++ b/man/remind.1 @@ -1,4 +1,4 @@ -.\" $Id: remind.1,v 1.5 1998-02-12 03:32:11 dfs Exp $ +.\" $Id: remind.1,v 1.6 1998-02-12 03:48:28 dfs Exp $ .TH REMIND 1 "1 February 1998" .UC 4 .SH NAME @@ -71,6 +71,9 @@ a calendar whose first column is Monday rather than Sunday. .TP .B \-v The \fB\-v\fR option makes the output of \fBRemind\fR slightly more verbose. +Currently, this causes \fBRemind\fR to echo a bad line in case of an +error, and to print a security message if a script tests the +$RunOff system variable. .TP .B \-o The \fB\-o\fR option causes \fBRemind\fR to ignore all \fBONCE\fR directives. diff --git a/src/var.c b/src/var.c index 6f2cfc2d..be5202dd 100644 --- a/src/var.c +++ b/src/var.c @@ -11,7 +11,7 @@ /***************************************************************/ #include "config.h" -static char const RCSID[] = "$Id: var.c,v 1.4 1998-02-10 03:15:57 dfs Exp $"; +static char const RCSID[] = "$Id: var.c,v 1.5 1998-02-12 03:48:34 dfs Exp $"; #include #include @@ -589,6 +589,15 @@ Value *val; val->v.val = *((int *) v->value); } val->type = v->type; + + /* In "verbose" mode, print attempts to test $RunOff */ + if (DebugFlag & DB_PRTLINE) { + if (v->value == (void *) &RunDisabled) { + Eprint("(Security note: $RunOff variable tested.)\n"); + /* Allow further messages from this line */ + FreshLine = 1; + } + } return OK; }