From ebc5b6136abaf757abc1dbea4cbc344d1e1fb895 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Tue, 22 Dec 2020 09:28:58 -0800 Subject: [PATCH] pybind/cephfs: pass command as size-1 array of strings Fixes: https://tracker.ceph.com/issues/48701 Signed-off-by: Patrick Donnelly --- src/pybind/cephfs/cephfs.pyx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pybind/cephfs/cephfs.pyx b/src/pybind/cephfs/cephfs.pyx index c7342d70fef16..d937514306149 100644 --- a/src/pybind/cephfs/cephfs.pyx +++ b/src/pybind/cephfs/cephfs.pyx @@ -2030,13 +2030,13 @@ cdef class LibCephFS(object): :return 3-tuple of output status int, output status string, output data """ mds_spec = cstr(mds_spec, 'mds_spec') - args = cstr_list(args, 'args') + args = cstr(args, 'args') input_data = cstr(input_data, 'input_data') cdef: char *_mds_spec = opt_str(mds_spec) - char **_cmd = to_bytes_array(args) - size_t _cmdlen = len(args) + char **_cmd = to_bytes_array([args]) + size_t _cmdlen = 1 char *_inbuf = input_data size_t _inbuf_len = len(input_data) -- 2.47.3