It did not terminate at space so the log file to use was not
properly defined and any additional kernel command line args were
added to the end of the file name.
if (stream != NULL)
{
+ char *end;
+
+ stream = strdup (stream);
+ end = stream + strcspn (stream, " \n");
+ *end = '\0';
+
ply_trace ("streaming debug output to %s instead of screen", stream);
fd = open (stream, O_RDWR | O_NOCTTY | O_CREAT, 0600);
{
ply_logger_set_output_fd (ply_logger_get_error_default (), fd);
}
+ free (stream);
}
}
else