freebsd-ports/net/arpwatch/files/patch-ah
Brian Somers e77bf460a2 Add a -m option to specify the mail address to be used.
Bump PORTREVISION.

PR:		25288
Submitted by:	Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
2001-02-22 22:56:40 +00:00

21 lines
544 B
Plaintext

--- report.c.orig Sun Oct 1 00:41:10 2000
+++ report.c Thu Feb 22 22:47:29 2001
@@ -70,6 +70,8 @@
#define PLURAL(n) ((n) == 1 || (n) == -1 ? "" : "s")
+extern char *Watcher;
+
static int cdepth; /* number of outstanding children */
static char *fmtdate(time_t);
@@ -240,7 +242,7 @@
register FILE *f;
char tempfile[64], cpu[64], os[64];
char *fmt = "%20s: %s\n";
- char *watcher = WATCHER;
+ char *watcher = Watcher ? Watcher : WATCHER;
char *watchee = WATCHEE;
char *sendmail = PATH_SENDMAIL;
char *unknown = "<unknown>";