Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/imap/compile_sieve.c.myfatal	2007-09-23 16:13:29.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/imap/compile_sieve.c	2007-09-23 16:54:54.000000000 +0200
Tomas Janousek 17523a2
@@ -37,7 +37,7 @@
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 static int is_script_parsable(FILE *stream, char **errstr, sieve_script_t **ret);
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
-static void fatal(const char *s, int code)
Tomas Janousek 17523a2
+static void my_fatal(const char *s, int code)
Tomas Janousek 17523a2
 {   
Tomas Janousek 17523a2
     printf("Fatal error: %s (%d)\r\n", s, code);
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
@@ -68,7 +68,7 @@
Tomas Janousek 17523a2
     extern char *optarg;
Tomas Janousek 17523a2
     char sieve_tmpname[MAX_MAILBOX_NAME+1];
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
-    if (geteuid() == 0) fatal("must run as the Cyrus user", EC_USAGE);
Tomas Janousek 17523a2
+    if (geteuid() == 0) my_fatal("must run as the Cyrus user", EC_USAGE);
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
     while((opt = getopt(argc, argv, "C:i:o:")) != EOF) {
Tomas Janousek 17523a2
         switch (opt) {
Tomas Janousek 17523a2
@@ -218,7 +218,7 @@
Tomas Janousek 17523a2
 /* to make larry's stupid functions happy :) */
Tomas Janousek 17523a2
 static void foo(void)
Tomas Janousek 17523a2
 {
Tomas Janousek 17523a2
-    fatal("stub function called", 0);
Tomas Janousek 17523a2
+    my_fatal("stub function called", 0);
Tomas Janousek 17523a2
 }
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 extern sieve_vacation_t vacation2;/* = {
Tomas Janousek 17523a2
@@ -234,7 +234,7 @@
Tomas Janousek 17523a2
                         void *message_context __attribute__((unused)),
Tomas Janousek 17523a2
                         const char **errmsg __attribute__((unused)))
Tomas Janousek 17523a2
 {
Tomas Janousek 17523a2
-    fatal("stub function called", 0);
Tomas Janousek 17523a2
+    my_fatal("stub function called", 0);
Tomas Janousek 17523a2
     return SIEVE_FAIL;
Tomas Janousek 17523a2
 }
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/imap/autosieve.c.myfatal	2007-09-23 16:13:29.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/imap/autosieve.c	2007-09-23 16:37:27.000000000 +0200
Tomas Janousek 17523a2
@@ -35,7 +35,7 @@
Tomas Janousek 17523a2
 static int get_script_dir(char *sieve_script_dir, size_t buflen, char *userid, const char *sieve_dir);
Tomas Janousek 17523a2
 int autoadd_sieve(char *userid, const char *source_script);
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
-static void fatal(const char *s, int code);
Tomas Janousek 17523a2
+static void my_fatal(const char *s, int code);
Tomas Janousek 17523a2
 static void foo(void);
Tomas Janousek 17523a2
 static int sieve_notify(void *ac __attribute__((unused)),
Tomas Janousek 17523a2
                         void *interp_context __attribute__((unused)),
Tomas Janousek 17523a2
@@ -441,7 +441,7 @@
Tomas Janousek 17523a2
     return 0;
Tomas Janousek 17523a2
 }
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
-static void fatal(const char *s, int code)
Tomas Janousek 17523a2
+static void my_fatal(const char *s, int code)
Tomas Janousek 17523a2
 {   
Tomas Janousek 17523a2
     printf("Fatal error: %s (%d)\r\n", s, code);
Tomas Janousek 17523a2
     exit(1);
Tomas Janousek 17523a2
@@ -450,7 +450,7 @@
Tomas Janousek 17523a2
 /* to make larry's stupid functions happy :) */
Tomas Janousek 17523a2
 static void foo(void)
Tomas Janousek 17523a2
 {
Tomas Janousek 17523a2
-    fatal("stub function called", 0);
Tomas Janousek 17523a2
+    my_fatal("stub function called", 0);
Tomas Janousek 17523a2
 }
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 static int sieve_notify(void *ac __attribute__((unused)),
Tomas Janousek 17523a2
@@ -459,7 +459,7 @@
Tomas Janousek 17523a2
                         void *message_context __attribute__((unused)),
Tomas Janousek 17523a2
                         const char **errmsg __attribute__((unused)))
Tomas Janousek 17523a2
 {
Tomas Janousek 17523a2
-    fatal("stub function called", 0);
Tomas Janousek 17523a2
+    my_fatal("stub function called", 0);
Tomas Janousek 17523a2
     return SIEVE_FAIL;
Tomas Janousek 17523a2
 }
Tomas Janousek 17523a2