Use LogFile=<stdiut> instead of LogFile=- to redirect log to stdout
This commit is contained in:
+2
-2
@@ -62,7 +62,7 @@ internal_log_file_open(const char *fname)
|
||||
|
||||
if (fname != NULL)
|
||||
{
|
||||
if (g_strcmp(fname, "-") != 0)
|
||||
if (g_strcmp(fname, "<stdout>") != 0)
|
||||
{
|
||||
ret = open(fname, O_WRONLY | O_CREAT | O_APPEND | O_SYNC,
|
||||
S_IRUSR | S_IWUSR);
|
||||
@@ -329,7 +329,7 @@ internal_config_read_logging(int file,
|
||||
|
||||
if (lc->log_file != NULL)
|
||||
{
|
||||
if (lc->log_file[0] != '/' && g_strcmp(lc->log_file, "-") != 0)
|
||||
if (lc->log_file[0] != '/' && g_strcmp(lc->log_file, "<stdout>") != 0)
|
||||
{
|
||||
temp_buf = (char *)g_malloc(512, 0);
|
||||
g_snprintf(temp_buf, 511, "%s/%s", XRDP_LOG_PATH, lc->log_file);
|
||||
|
||||
Reference in New Issue
Block a user