* grub-core/fs/cpio.c (handle_symlink): Fix a bug.
This commit is contained in:
parent
076e7c0fda
commit
df71143ea1
2 changed files with 5 additions and 1 deletions
|
@ -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>
|
2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
Merge common RAID and LVM logic to an abstract diskfilter.
|
Merge common RAID and LVM logic to an abstract diskfilter.
|
||||||
|
|
|
@ -470,7 +470,7 @@ handle_symlink (struct grub_cpio_data *data,
|
||||||
if (prefixlen)
|
if (prefixlen)
|
||||||
{
|
{
|
||||||
grub_memcpy (target, *name, prefixlen);
|
grub_memcpy (target, *name, prefixlen);
|
||||||
target[prefixlen] = '/';
|
target[prefixlen-1] = '/';
|
||||||
}
|
}
|
||||||
ptr = target + prefixlen + size;
|
ptr = target + prefixlen + size;
|
||||||
ptr = grub_stpcpy (ptr, rest);
|
ptr = grub_stpcpy (ptr, rest);
|
||||||
|
|
Loading…
Add table
Reference in a new issue