diff --git a/src/ChangeLog b/src/ChangeLog
index 09fae66d03bf2fe28f3bcdcf7f6e596ccfad8c84..a643da607a8ee4e4e721a00aa53a08a99f457d8b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
+2011-04-28  Mark D. Baushke  <mdb@gnu.org>
+
+	* sanity.sh (basicb-21): The getopt() in glibc 2.9 thru 2.13 are
+	not posix.2 compliant. They use "%s: invalid option -- '%c'\n"
+	instead of "%s: illegal option -- %c\n", so adjust the expr.
+	(Reported by David Taylor <dtaylor@emc.com>.)
+	
 2011-03-30  Larry Jones  <lawrence.jones@siemens.com>
 
 	* gpg.c (parse_signature_subpacket): Correct spout->raw memory
diff --git a/src/sanity.sh b/src/sanity.sh
index fabe9b8055736398a4519844f9554e6ebf31ee42..3f898da8691241f52d327365d6180f8b7017550a 100755
--- a/src/sanity.sh
+++ b/src/sanity.sh
@@ -3980,9 +3980,9 @@ ${SPROG} \[admin aborted\]: attempt to delete all revisions"
 	  # lib/getopt.c will use POSIX when __posixly_correct
 	  # otherwise the other, so accept both of them. -- mdb
 	  dotest_fail basicb-21 "${testcvs} -q admin -H" \
-"admin: invalid option -- H
+"admin: invalid option -- ${DOTSTAR}H${DOTSTAR}
 ${CPROG} \[admin aborted\]: specify ${CPROG} -H admin for usage information" \
-"admin: illegal option -- H
+"admin: illegal option -- ${DOTSTAR}H${DOTSTAR}
 ${CPROG} \[admin aborted\]: specify ${CPROG} -H admin for usage information"
 	  cd ..
 	  rmdir 1