Commit baa2583a authored by Pavel Emelyanov's avatar Pavel Emelyanov

files-reg: Sanitize ghost files re-opening for read

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 280b9e36
......@@ -202,7 +202,6 @@ static int dump_ghost_file(int _fd, u32 id, const struct stat *st)
{
int img;
GhostFileEntry gfe = GHOST_FILE_ENTRY__INIT;
char lpath[32];
pr_info("Dumping ghost file contents (id %#x)\n", id);
......@@ -223,6 +222,7 @@ static int dump_ghost_file(int _fd, u32 id, const struct stat *st)
if (S_ISREG(st->st_mode)) {
int fd, ret;
char lpath[32];
/*
* Reopen file locally since it may have no read
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment