mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 06:48:47 +02:00
-- Made remind print a warning if $RunOff is tested in verbose mode.
This commit is contained in:
@@ -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.
|
||||
|
||||
11
src/var.c
11
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 <stdio.h>
|
||||
#include <string.h>
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user