From 3bdafbe35f519fcdd6ec307764eefb14bf1e0d68 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 17 Feb 1995 17:06:16 +0000 Subject: [PATCH] Minor changes. --- kernel/default.res | 4 ++-- kernel/main.c | 19 ++++++++++++++++++- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/kernel/default.res b/kernel/default.res index a7a35d3..0558f06 100644 --- a/kernel/default.res +++ b/kernel/default.res @@ -1,11 +1,11 @@ # Email gateway - general kernel resources -# $Id: default.res,v 1.5 1995/02/17 14:41:13 quinn Exp $ +# $Id: default.res,v 1.6 1995/02/17 17:06:16 adam Exp $ # # Important directories, programs, etc. gw.reply.mta: /usr/bin/smail gw.reply.tmp.prefix: gwr gw.reply.tmp.dir: /tmp -gw.path: /home/quinn/egate/kernel +gw.path: /home/adam/egate/kernel # Target definitions gw.portno: 2000 diff --git a/kernel/main.c b/kernel/main.c index 7427d97..b5f4030 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -2,7 +2,10 @@ * Europagate, 1995 * * $Log: main.c,v $ - * Revision 1.3 1995/02/16 18:35:09 adam + * Revision 1.4 1995/02/17 17:06:16 adam + * Minor changes. + * + * Revision 1.3 1995/02/16 18:35:09 adam * First use of Zdist library. Search requests are supported. * Present requests are not supported yet. * @@ -122,6 +125,20 @@ int main (int argc, char **argv) exit (1); } break; + case 'g': + if (argv[0][2]) + gw_log_file (GW_LOG_ALL, argv[0]+2); + else if (argc > 0) + { + --argc; + gw_log_file (GW_LOG_ALL, *++argv); + } + else + { + gw_log (GW_LOG_FATAL, "main", "missing log filename"); + exit (1); + } + break; default: gw_log (GW_LOG_FATAL, "main", "unknown option %s", *argv); exit (1); -- 1.7.10.4