summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/glusterfs/xlator.h
diff options
context:
space:
mode:
authorXavi Hernandez <xhernandez@redhat.com>2019-02-05 16:57:52 +0100
committerAmar Tumballi <amarts@redhat.com>2019-02-07 10:56:33 +0000
commit539c3027d47959eb37e280807b731d3e37e8ac33 (patch)
treeb06ff2583a50665f62868e01fb38d42304d1a66c /libglusterfs/src/glusterfs/xlator.h
parent208c368cc7e6f8124bf65ecefdbc5f4304b4f484 (diff)
fuse: correctly handle setxattr values
The setxattr function receives a pointer to raw data, which may not be null-terminated. When this data needs to be interpreted as a string, an explicit null termination needs to be added before using the value. Change-Id: Id110f9b215b22786da5782adec9449ce38d0d563 updates: bz#1193929 Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
Diffstat (limited to 'libglusterfs/src/glusterfs/xlator.h')
-rw-r--r--libglusterfs/src/glusterfs/xlator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/glusterfs/xlator.h b/libglusterfs/src/glusterfs/xlator.h
index 7002657d0bc..acd8be0913a 100644
--- a/libglusterfs/src/glusterfs/xlator.h
+++ b/libglusterfs/src/glusterfs/xlator.h
@@ -1036,7 +1036,7 @@ loc_is_nameless(loc_t *loc);
int
xlator_mem_acct_init(xlator_t *xl, int num_types);
int
-is_gf_log_command(xlator_t *trans, const char *name, char *value);
+is_gf_log_command(xlator_t *trans, const char *name, char *value, size_t size);
int
glusterd_check_log_level(const char *value);
int