From ff747d50c1fcf81e0226d2da1923b1b8113f2b93 Mon Sep 17 00:00:00 2001 From: phcoder Date: Tue, 25 Aug 2009 08:11:50 +0000 Subject: [PATCH] 2009-08-25 Vladimir Serbinenko Fix breakage in normal/auth.c. * normal/auth.c (grub_iswordseparator): New function. --- ChangeLog | 6 ++++++ normal/auth.c | 6 ++++++ 2 files changed, 12 insertions(+) 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) { -- 2.39.5