From: phcoder Date: Tue, 25 Aug 2009 08:11:50 +0000 (+0000) Subject: 2009-08-25 Vladimir Serbinenko X-Git-Tag: 1.98~594 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff747d50c1fcf81e0226d2da1923b1b8113f2b93;p=thirdparty%2Fgrub.git 2009-08-25 Vladimir Serbinenko Fix breakage in normal/auth.c. * normal/auth.c (grub_iswordseparator): New function. --- diff --git a/ChangeLog b/ChangeLog index 34694a4ea..4f8c068dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-08-25 Vladimir Serbinenko + + Fix breakage in normal/auth.c. + + * normal/auth.c (grub_iswordseparator): New function. + 2009-08-25 Vladimir Serbinenko Authentication support. diff --git a/normal/auth.c b/normal/auth.c index 1dc61e898..9029ba1ce 100644 --- a/normal/auth.c +++ b/normal/auth.c @@ -48,6 +48,12 @@ grub_auth_strcmp (const char *user_input, const char *template) return !ok; } +static int +grub_iswordseparator (int c) +{ + return (grub_isspace (c) || c == ',' || c == ';' || c == '|' || c == '&'); +} + int grub_auth_strword (const char *haystack, const char *needle) {