Index: /trunk/docs/Changelog
===================================================================
--- /trunk/docs/Changelog	(revision 116)
+++ /trunk/docs/Changelog	(revision 117)
@@ -1,7 +1,9 @@
 2.3.6:
-	* introduce 'fflags' flag for suid files to detect new files already found
-	  in regular file check (problem reported by J. Crutchfield); also add
-	  regression test to ascertain that files in baseline database are not
-	  quarantined erroneously
+	* fix yulectl password reading from $HOME/.yulectl_cred, erroneously
+	  rejected passwords with exactly 14 chars (reported by Jerry Brown)
+	* introduce 'fflags' flag for suid files to detect new files already 
+	  found in regular file check (problem reported by J. Crutchfield); 
+	  also add regression test to ascertain that files in baseline 
+	  database are not quarantined erroneously
 	* sh_hash.c: replace check for prefix 'K' with check for not prefix'/'
 	  to allow for arbitrary module-specific store/lookup in db
Index: /trunk/src/yulectl.c
===================================================================
--- /trunk/src/yulectl.c	(revision 116)
+++ /trunk/src/yulectl.c	(revision 117)
@@ -334,4 +334,24 @@
 }
 
+char * rtrim(char * str)
+{
+  size_t len;
+
+  if (!str)
+    return str;
+
+  len = strlen(str);
+  while (len > 0)
+    {
+      --len;
+      if (str[len] == '\n' || str[len] == '\r')
+	str[len] = '\0';
+      else
+	break;
+    }
+    
+  return str;
+}
+
 void fixup_message (char * message)
 {
@@ -399,4 +419,7 @@
       exit(EXIT_FAILURE);
     }
+
+  (void) rtrim(message2);
+
   if (strlen(message2) > 14)
     {
@@ -406,10 +429,7 @@
     }
 
-  if ( (0 != strlen(message2)) && ('\n' == message2[strlen(message2)-1]))
-    {
-      message2[strlen(message2)-1] = '\0';
-    }
   strcpy(password, message2);
   fclose(fp);
+
  do_msg:
   strcat(message2, "@");
