Steve Grubb 628394
diff -urp aide.orig/src/commandconf.c aide/src/commandconf.c
Steve Grubb 628394
--- aide.orig/src/commandconf.c	2010-04-28 11:17:07.000000000 -0400
Steve Grubb 628394
+++ aide/src/commandconf.c	2010-04-28 11:19:12.000000000 -0400
Steve Grubb 628394
@@ -216,7 +216,7 @@ int conf_input_wrapper(char* buf, int ma
Steve Grubb 628394
 	    MHASH_FAILED){
Steve Grubb 628394
 	  error(0, "mhash_hmac_init() failed for %i for config check. Aborting\n",
Steve Grubb 628394
 		conf->confhmactype);
Steve Grubb 628394
-	  abort();
Steve Grubb 628394
+	  exit(EXIT_FAILURE);
Steve Grubb 628394
 	}
Steve Grubb 628394
       } else {
Steve Grubb 628394
 	conf->do_configmd=0;
Steve Grubb 628394
@@ -341,7 +341,7 @@ int db_input_wrapper(char* buf, int max_
Steve Grubb 628394
   if(c==-1) {
Steve Grubb 628394
     int xx;
Steve Grubb 628394
 	  error(0,"Error reading gzipped file: %s\n",gzerror(*db_gzp,&xx));
Steve Grubb 628394
-    abort();
Steve Grubb 628394
+    exit(EXIT_FAILURE);
Steve Grubb 628394
   }
Steve Grubb 628394
       }else {
Steve Grubb 628394
 	/* False alarm */
Steve Grubb 628394
@@ -377,7 +377,7 @@ int db_input_wrapper(char* buf, int max_
Steve Grubb 628394
 			     mhash_get_hash_pblock(conf->dbhmactype)))==
Steve Grubb 628394
 	    MHASH_FAILED){
Steve Grubb 628394
 	  error(0, "mhash_hmac_init() failed for db check. Aborting\n");
Steve Grubb 628394
-	  abort();
Steve Grubb 628394
+	  exit(EXIT_FAILURE);
Steve Grubb 628394
 	}
Steve Grubb 628394
       } else {
Steve Grubb 628394
 	*domd=0;
Steve Grubb 628394
diff -urp aide.orig/src/compare_db.c aide/src/compare_db.c
Steve Grubb 628394
--- aide.orig/src/compare_db.c	2010-04-28 11:17:07.000000000 -0400
Steve Grubb 628394
+++ aide/src/compare_db.c	2010-04-28 11:20:15.000000000 -0400
Steve Grubb 628394
@@ -1025,7 +1025,7 @@ void init_rxlst(list* rxlst)
Steve Grubb 628394
     
Steve Grubb 628394
     if (data==NULL){
Steve Grubb 628394
       error(0,_("Not enough memory for regexpr compile... exiting..\n"));
Steve Grubb 628394
-      abort();
Steve Grubb 628394
+      exit(EXIT_FAILURE);
Steve Grubb 628394
     }
Steve Grubb 628394
     
Steve Grubb 628394
     strcpy(data+1,((rx_rule*)r->data)->rx);
Steve Grubb 628394
diff -urp aide.orig/src/db.c aide/src/db.c
Steve Grubb 628394
--- aide.orig/src/db.c	2010-04-28 11:17:07.000000000 -0400
Steve Grubb 628394
+++ aide/src/db.c	2010-04-28 11:21:02.000000000 -0400
Steve Grubb 628394
@@ -382,7 +382,7 @@ db_line* db_char2line(char** ss,int db){
Steve Grubb 628394
 	line->filename=strdup(ss[(*db_order)[i]]);
Steve Grubb 628394
       } else {
Steve Grubb 628394
 	error(0,"db_char2line():Error while reading database\n");
Steve Grubb 628394
-	abort();
Steve Grubb 628394
+	exit(EXIT_FAILURE);
Steve Grubb 628394
       }
Steve Grubb 628394
       break;
Steve Grubb 628394
     }
Steve Grubb 628394
diff -urp aide.orig/src/list.c aide/src/list.c
Steve Grubb 628394
--- aide.orig/src/list.c	2010-04-28 11:17:07.000000000 -0400
Steve Grubb 628394
+++ aide/src/list.c	2010-04-28 11:22:45.000000000 -0400
Steve Grubb 628394
@@ -47,7 +47,7 @@
Steve Grubb 628394
 
Steve Grubb 628394
 
Steve Grubb 628394
 /* 
Steve Grubb 628394
- * Some way to handle mallocs failure would be nice. Now it say abort().
Steve Grubb 628394
+ * Some way to handle mallocs failure would be nice.
Steve Grubb 628394
  */
Steve Grubb 628394
 
Steve Grubb 628394
 list* list_append(list* listp,void*data)
Steve Grubb 628394
@@ -57,7 +57,7 @@ list* list_append(list* listp,void*data)
Steve Grubb 628394
 
Steve Grubb 628394
   if (newitem==NULL) {
Steve Grubb 628394
     error(0,"Not enough memory to add a new item to list.\n");
Steve Grubb 628394
-    abort();
Steve Grubb 628394
+    exit(EXIT_FAILURE);
Steve Grubb 628394
   }
Steve Grubb 628394
   
Steve Grubb 628394
   if(listp==NULL){
Steve Grubb 628394
@@ -65,7 +65,7 @@ list* list_append(list* listp,void*data)
Steve Grubb 628394
     
Steve Grubb 628394
     if (header==NULL){
Steve Grubb 628394
       error(0,"Not enough memory for list header allocation\n");
Steve Grubb 628394
-      abort();
Steve Grubb 628394
+      exit(EXIT_FAILURE);
Steve Grubb 628394
     }
Steve Grubb 628394
     
Steve Grubb 628394
     newitem->data=data;
Steve Grubb 628394
diff -urp aide.orig/src/util.c aide/src/util.c
Steve Grubb 628394
--- aide.orig/src/util.c	2010-04-28 11:17:07.000000000 -0400
Steve Grubb 628394
+++ aide/src/util.c	2010-04-28 11:21:49.000000000 -0400
Steve Grubb 628394
@@ -332,8 +332,7 @@ void sig_handler(int signum)
Steve Grubb 628394
       conf->catch_mmap=0;
Steve Grubb 628394
     } else {
Steve Grubb 628394
       error(0,"Caught SIGBUS/SEGV. Exiting\n");
Steve Grubb 628394
-      abort();
Steve Grubb 628394
-      exit(1);
Steve Grubb 628394
+      exit(EXIT_FAILURE);
Steve Grubb 628394
     }
Steve Grubb 628394
     break;
Steve Grubb 628394
   }