diff options
author | Bin Li <libin.charles@gmail.com> | 2010-05-31 21:28:20 +0200 |
---|---|---|
committer | Jens Granseuer <jensgr@gmx.net> | 2010-05-31 21:28:20 +0200 |
commit | b754e8f6573264abb405b4da11a33801bf541119 (patch) | |
tree | 5f13fc94c9a2bbb4c614ec2b3267d75423fa5a22 | |
parent | 0c30e688372a2d4245e9a069c7dcac5c423d95e2 (diff) | |
download | gnome-control-center-b754e8f6573264abb405b4da11a33801bf541119.tar.gz |
Catch yet another new error message from passwd
Also deal with "it is too simplistic/systematic". Closes bug
-rw-r--r-- | capplets/about-me/gnome-about-me-password.c | 4 |
1 files 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 || |