rawlog with -i not worked

Hardy Flor HFlor at gmx.de
Wed Mar 11 10:50:08 UTC 2015


When I change the option 'i' to the letter 'a' is everything as 
designed. Why is 'i' at this location the problem?


********************************
diff -Nurb dovecot-2.2.16rc1/src/util/rawlog.c 
dovecot-2.2.16rc1.build/src/util/rawlog.c
--- dovecot-2.2.16rc1/src/util/rawlog.c 2015-03-04 13:49:28.000000000 +0100
+++ dovecot-2.2.16rc1.build/src/util/rawlog.c   2015-03-11 
11:31:46.090201199 +0100
@@ -362,7 +362,7 @@
         int c;

         master_service = master_service_init("rawlog", 0,
-                                            &argc, &argv, "+f:obit");
+                                            &argc, &argv, "+f:obat");
         while ((c = master_getopt(master_service)) > 0) {
                 switch (c) {
                 case 'f':
@@ -376,7 +376,7 @@
                 case 'b':
                         flags |= RAWLOG_FLAG_LOG_BOUNDARIES;
                         break;
-               case 'i':
+               case 'a':
                         flags |= RAWLOG_FLAG_LOG_IP_IN_FILENAME;
                         break;
                 case 't':
@@ -390,7 +390,7 @@
         argv += optind;

         if (argc < 1)
-               i_fatal("Usage: rawlog [-f in|out] [-i] [-b] [-t] 
<binary> <arguments>");
+               i_fatal("Usage: rawlog [-f in|out] [-a] [-b] [-t] 
<binary> <arguments>");

         master_service_init_log(master_service, "rawlog: ");
         master_service_init_finish(master_service);


Am 09.03.2015 um 18:53 schrieb Hardy Flor:
>
> Without -i everything is wonderful, a coredump is with the -i 
> parameter created
>


More information about the dovecot mailing list