diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-05-22 10:36:25 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-05-22 10:36:25 -0400 |
commit | 90cdd2083aea9a536ecdef62840db01fff2e645d (patch) | |
tree | 6ec0aaffb66697f7b973a53532c4b782129a0c2e /fs/gfs2 | |
parent | 639b6d79b8c20cce4079fb035640c65456324d1c (diff) |
[GFS2] Flag up issue in selinux code
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/eattr.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/gfs2/eattr.c b/fs/gfs2/eattr.c index 187fba1c4678..346601538ac7 100644 --- a/fs/gfs2/eattr.c +++ b/fs/gfs2/eattr.c | |||
@@ -395,17 +395,14 @@ static int ea_list_i(struct gfs2_inode *ip, struct buffer_head *bh, | |||
395 | l = 9; | 395 | l = 9; |
396 | break; | 396 | break; |
397 | default: | 397 | default: |
398 | /* FIXME: Needs looking at again */ | ||
398 | break; | 399 | break; |
399 | } | 400 | } |
400 | 401 | ||
401 | memcpy(er->er_data + ei->ei_size, | 402 | memcpy(er->er_data + ei->ei_size, prefix, l); |
402 | prefix, l); | 403 | memcpy(er->er_data + ei->ei_size + l, GFS2_EA2NAME(ea), |
403 | memcpy(er->er_data + ei->ei_size + l, | ||
404 | GFS2_EA2NAME(ea), | ||
405 | ea->ea_name_len); | 404 | ea->ea_name_len); |
406 | memcpy(er->er_data + ei->ei_size + | 405 | memcpy(er->er_data + ei->ei_size + ea_size - 1, &c, 1); |
407 | ea_size - 1, | ||
408 | &c, 1); | ||
409 | } | 406 | } |
410 | 407 | ||
411 | ei->ei_size += ea_size; | 408 | ei->ei_size += ea_size; |