struct mdssvc_blob *response_blob)
{
bool ok;
+ int ret;
ssize_t len;
DALLOC_CTX *query = NULL;
DALLOC_CTX *reply = NULL;
char *rpccmd;
const struct slrpc_cmd *slcmd;
+ const struct smb_filename conn_basedir = {
+ .base_name = mds_ctx->conn->connectpath,
+ };
if (CHECK_DEBUGLVL(10)) {
const struct sl_query *slq;
goto cleanup;
}
+ ret = vfs_ChDir(mds_ctx->conn, &conn_basedir);
+ if (ret != 0) {
+ DBG_ERR("vfs_ChDir [%s] failed: %s\n",
+ conn_basedir.base_name, strerror(errno));
+ ok = false;
+ goto cleanup;
+ }
+
ok = slcmd->function(mds_ctx, query, reply);
if (ok) {
DBG_DEBUG("%s", dalloc_dump(reply, 0));