Replace leading dot by underscore for session name master
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 4 Mar 2021 18:55:14 +0000 (13:55 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 4 Mar 2021 18:55:14 +0000 (13:55 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/lttng-trace.c

index 29fb4a558cb655e2781ba5272cd3fd0299274740..a1a3424626c5549968cdb78d07d4deb01c90ced0 100644 (file)
@@ -596,6 +596,11 @@ void replace_session_chars(char *session_name)
                case '/':
                        *p = '_';
                        break;
+               case '.':
+                       /* Leading dot is replaced by '_'. */
+                       if (i == 0)
+                               *p = '_';
+                       break;
                default:
                        break;
                }
This page took 0.029372 seconds and 4 git commands to generate.