Commit 6bfc566d authored by Pavel Emelyanov's avatar Pavel Emelyanov

files: Don't lose anon-file type name

The symlink reader reports the amount of bytes read
in case of success.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 87317c26
......@@ -327,7 +327,7 @@ static int dump_one_file(struct parasite_ctl *ctl, int fd, int lfd, struct fd_op
else {
char more[64];
if (read_fd_link(fd, more, sizeof(more)))
if (read_fd_link(fd, more, sizeof(more)) < 0)
more[0] = '\0';
return dump_unsupp_fd(&p, "anon", more);
......
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