From: Wido den Hollander Date: Wed, 17 Dec 2014 13:01:44 +0000 (+0100) Subject: pybind/cephfs: Fix setxattr function. Pass value as character pointer X-Git-Tag: v0.91~50 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0c9d55d404f73ecd47987cc84eadd791b6345493;p=ceph.git pybind/cephfs: Fix setxattr function. Pass value as character pointer This passes the value of the xattr correctly and makes it work. --- diff --git a/src/pybind/cephfs.py b/src/pybind/cephfs.py index ece2c67af6fc..574846fdc017 100644 --- a/src/pybind/cephfs.py +++ b/src/pybind/cephfs.py @@ -333,7 +333,7 @@ class LibCephFS(object): self.cluster, c_char_p(path), c_char_p(name), - c_void_p(value), + c_char_p(value), c_size_t(len(value)), c_int(flags)) if ret < 0: