]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/fs/cpio.c (handle_symlink): Fix a bug.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 29 Jan 2012 14:36:06 +0000 (15:36 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 29 Jan 2012 14:36:06 +0000 (15:36 +0100)
ChangeLog
grub-core/fs/cpio.c

index 13ee2dae68a6aae4239e3c551f9a5d7a2a2bdb74..236cda018b7130a58e1da93a677d38b64011cbbd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
+
 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Merge common RAID and LVM logic to an abstract diskfilter.
index af431c8a845d349eece788bdc012b2e6e694cdef..b7c3191ccd0958bba3b5cdc70b38d25517badb53 100644 (file)
@@ -470,7 +470,7 @@ handle_symlink (struct grub_cpio_data *data,
   if (prefixlen)
     {
       grub_memcpy (target, *name, prefixlen);
-      target[prefixlen] = '/';
+      target[prefixlen-1] = '/';
     }
   ptr = target + prefixlen + size;
   ptr = grub_stpcpy (ptr, rest);