+ new_session->uid = uid;
+ new_session->gid = gid;
+
+ ret = mkdir_recursive_run_as(new_session->path, S_IRWXU | S_IRWXG,
+ new_session->uid, new_session->gid);
+ if (ret < 0) {
+ if (ret != -EEXIST) {
+ ERR("Trace directory creation error");
+ ret = LTTCOMM_CREATE_FAIL;
+ goto error;
+ }
+ }
+