Fix: rotation_unavailable returned on failure to read time
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index def3e64e59a2d27899d1b70dba0f74e74a7b7dea..1ac133f3606d68d3114bb6405f103d89f30851ea 100644 (file)
@@ -4602,7 +4602,7 @@ int cmd_rotate_session(struct ltt_session *session,
 
        now = time(NULL);
        if (now == (time_t) -1) {
 
        now = time(NULL);
        if (now == (time_t) -1) {
-               cmd_ret = LTTNG_ERR_ROTATION_NOT_AVAILABLE;
+               cmd_ret = LTTNG_ERR_UNK;
                goto end;
        }
 
                goto end;
        }
 
This page took 0.023566 seconds and 4 git commands to generate.