find_file recursively for symlink.
+2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
+ find_file recursively for symlink.
+
2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
* tests/util/grub-shell.in: Copy themes.
if (ctx->type == GRUB_FSHELP_SYMLINK)
{
char *symlink;
+ const char *next;
/* Test if the symlink does not loop. */
if (++ctx->symlinknest == 8)
}
/* Lookup the node the symlink points to. */
+ next = ctx->next;
find_file (symlink, ctx->oldnode, &ctx->currnode,
iterate_dir, read_symlink, ctx);
+ ctx->next = next;
ctx->type = ctx->foundtype;
grub_free (symlink);