]> git.proxmox.com Git - grub2.git/commitdiff
2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
authorphcoder <phcoder@localhost>
Tue, 25 Aug 2009 08:11:50 +0000 (08:11 +0000)
committerphcoder <phcoder@localhost>
Tue, 25 Aug 2009 08:11:50 +0000 (08:11 +0000)
Fix breakage in normal/auth.c.

* normal/auth.c (grub_iswordseparator): New function.

ChangeLog
normal/auth.c

index 34694a4ea3ae6f15ea5b36582cbe3570f21c2b4d..4f8c068dd82c32fb4e12e1698abdf11572a664f2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-08-25  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Fix breakage in normal/auth.c.
+
+       * normal/auth.c (grub_iswordseparator): New function.
+
 2009-08-25  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Authentication support.
index 1dc61e8984154d460be89fa01cada4a7cb0eb469..9029ba1ce2b859ea5ca8b8ed715b229a8b8d1ba0 100644 (file)
@@ -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)
 {