Revision: 2530
http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2530
Author: phcoder
Date: 2009-08-25 08:11:50 +0000 (Tue, 25 Aug 2009)
Log Message:
-----------
2009-08-25 Vladimir Serbinenko <[email protected]>
Fix breakage in normal/auth.c.
* normal/auth.c (grub_iswordseparator): New function.
Modified Paths:
--------------
trunk/grub2/ChangeLog
trunk/grub2/normal/auth.c
Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog 2009-08-24 23:55:06 UTC (rev 2529)
+++ trunk/grub2/ChangeLog 2009-08-25 08:11:50 UTC (rev 2530)
@@ -1,5 +1,11 @@
2009-08-25 Vladimir Serbinenko <[email protected]>
+ Fix breakage in normal/auth.c.
+
+ * normal/auth.c (grub_iswordseparator): New function.
+
+2009-08-25 Vladimir Serbinenko <[email protected]>
+
Authentication support.
* commands/password.c: New file.
Modified: trunk/grub2/normal/auth.c
===================================================================
--- trunk/grub2/normal/auth.c 2009-08-24 23:55:06 UTC (rev 2529)
+++ trunk/grub2/normal/auth.c 2009-08-25 08:11:50 UTC (rev 2530)
@@ -48,6 +48,12 @@
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)
{