From b754e8f6573264abb405b4da11a33801bf541119 Mon Sep 17 00:00:00 2001 From: Bin Li Date: Mon, 31 May 2010 21:28:20 +0200 Subject: Catch yet another new error message from passwd Also deal with "it is too simplistic/systematic". Closes bug --- capplets/about-me/gnome-about-me-password.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/capplets/about-me/gnome-about-me-password.c b/capplets/about-me/gnome-about-me-password.c index e951b122a..f683be287 100644 --- a/capplets/about-me/gnome-about-me-password.c +++ b/capplets/about-me/gnome-about-me-password.c @@ -504,7 +504,7 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswordDialog *pdi "longer", "palindrome", "dictionary", - "simple", + "simpl", /* catches both simple and simplistic */ "similar", "different", "case", @@ -539,7 +539,7 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswordDialog *pdi g_strrstr (str->str, "longer") != NULL) { msg = g_strdup (_("The password is too short.")); } else if (g_strrstr (str->str, "palindrome") != NULL || - g_strrstr (str->str, "simple") != NULL || + g_strrstr (str->str, "simpl") != NULL || g_strrstr (str->str, "dictionary") != NULL) { msg = g_strdup (_("The password is too simple.")); } else if (g_strrstr (str->str, "similar") != NULL || -- cgit v1.2.1