Index: trunk/src/samhain.c
===================================================================
--- trunk/src/samhain.c	(revision 51)
+++ trunk/src/samhain.c	(revision 52)
@@ -1449,8 +1449,5 @@
 
 #if (defined(WITH_GPG) || defined(WITH_PGP))
-  /* do nothing -- we exit earlier if error 
-  if (0 != sh_gpg_check_sign (1)) 
-    aud_exit(FIL__, __LINE__, EXIT_FAILURE);
-  */
+  /* do nothing -- we exit earlier if error */
 #else
   sh_error_handle ((-1), FIL__, __LINE__, 0, MSG_START_1H,
@@ -1474,9 +1471,5 @@
     {
 #if (defined(WITH_GPG) || defined(WITH_PGP))
-      /* do nothing -- we exit earlier if error 
-	 if (0 != sh_gpg_check_sign (2)) 
-	 aud_exit(FIL__, __LINE__, EXIT_FAILURE);
-      */
-      ;
+      /* do nothing -- we exit earlier if error */
 #else
       sh_error_handle ((-1), FIL__, __LINE__, 0, MSG_START_2H,
@@ -1489,9 +1482,5 @@
     {
 #if (defined(WITH_GPG) || defined(WITH_PGP))
-      /* do nothing -- we exit earlier if error 
-      if (0 != sh_gpg_check_sign (1)) 
-	aud_exit(FIL__, __LINE__, EXIT_FAILURE);
-      */
-      ;
+      /* do nothing -- we exit earlier if error */
 #else
       sh_error_handle ((-1), FIL__, __LINE__, 0, MSG_START_1H,
Index: trunk/src/sh_unix.c
===================================================================
--- trunk/src/sh_unix.c	(revision 51)
+++ trunk/src/sh_unix.c	(revision 52)
@@ -4122,8 +4122,8 @@
 int sh_unix_getline_stealth (SL_TICKET fd, char * str, int len)
 {
-  int           add_off, llen;
-  unsigned long off_data = 0;
-  unsigned long max_data = 0;
-  static int    stealth_init = BAD;
+  int                  add_off, llen;
+  static unsigned long off_data = 0;
+  static unsigned long max_data = 0;
+  static int           stealth_init = BAD;
 
   SL_ENTER(_("sh_unix_getline_stealth"));
@@ -4144,8 +4144,17 @@
 	}
       stealth_init = GOOD;
+      max_data += off_data;
     }
   
   /* --- Seek to proper position. ---
    */
+  if (off_data >= max_data)
+    {
+      dlog(1, FIL__, __LINE__, 
+	   _("The capacity of the container image file for the stealth config file seems to be too small. Your config file is likely truncated.\n"));
+      sh_error_handle ((-1), FIL__, __LINE__,  EIO, MSG_P_NODATA,
+		       _("Stealth config file."));
+      aud_exit (FIL__, __LINE__, EXIT_FAILURE);
+    }
   sl_seek(fd, off_data);
      
@@ -4154,5 +4163,4 @@
   add_off   = hideout_hex_block(fd, (unsigned char *) str, len);
   off_data += add_off;
-
 
   llen = sl_strlen(str);
