Skip to content

Commit

Permalink
[GFS2] Flag up issue in selinux code
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Steven Whitehouse committed May 22, 2006
1 parent 639b6d7 commit 90cdd20
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions fs/gfs2/eattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,17 +395,14 @@ static int ea_list_i(struct gfs2_inode *ip, struct buffer_head *bh,
l = 9;
break;
default:
/* FIXME: Needs looking at again */
break;
}

memcpy(er->er_data + ei->ei_size,
prefix, l);
memcpy(er->er_data + ei->ei_size + l,
GFS2_EA2NAME(ea),
memcpy(er->er_data + ei->ei_size, prefix, l);
memcpy(er->er_data + ei->ei_size + l, GFS2_EA2NAME(ea),
ea->ea_name_len);
memcpy(er->er_data + ei->ei_size +
ea_size - 1,
&c, 1);
memcpy(er->er_data + ei->ei_size + ea_size - 1, &c, 1);
}

ei->ei_size += ea_size;
Expand Down

0 comments on commit 90cdd20

Please sign in to comment.