]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/file.c (grub_file_open): Don't take into account the
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 11 Apr 2011 05:38:42 +0000 (07:38 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 11 Apr 2011 05:38:42 +0000 (07:38 +0200)
parenthesis in the middle of the filename.

ChangeLog
grub-core/kern/file.c

index f3050ef7340fb15f2c998e9556e188111d2d64fa..46f683cb6a8dbe31addb7cd54ae2c7bb4d48a447 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/kern/file.c (grub_file_open): Don't take into account the
+       parenthesis in the middle of the filename.
+
 2011-04-10  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
index c93fbf737116ee09a795f26ec4c08b9be77f7458..9d5a51c48d1107d90f5fc08aa77bf8f6859c3c49 100644 (file)
@@ -68,7 +68,7 @@ grub_file_open (const char *name)
     goto fail;
 
   /* Get the file part of NAME.  */
-  file_name = grub_strchr (name, ')');
+  file_name = (name[0] == '(') ? grub_strchr (name, ')') : NULL;
   if (file_name)
     file_name++;
   else