Minor changes.
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 17 Feb 1995 17:06:16 +0000 (17:06 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 17 Feb 1995 17:06:16 +0000 (17:06 +0000)
kernel/default.res
kernel/main.c

index a7a35d3..0558f06 100644 (file)
@@ -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
index 7427d97..b5f4030 100644 (file)
@@ -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);