diff --git a/common/log.c b/common/log.c index 219c08a3..5148772f 100644 --- a/common/log.c +++ b/common/log.c @@ -62,7 +62,7 @@ internal_log_file_open(const char *fname) if (fname != NULL) { - if (g_strcmp(fname, "-") != 0) + if (g_strcmp(fname, "") != 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, "") != 0) { temp_buf = (char *)g_malloc(512, 0); g_snprintf(temp_buf, 511, "%s/%s", XRDP_LOG_PATH, lc->log_file); diff --git a/docs/man/xrdp.ini.5.in b/docs/man/xrdp.ini.5.in index 56df6488..46240b62 100644 --- a/docs/man/xrdp.ini.5.in +++ b/docs/man/xrdp.ini.5.in @@ -230,7 +230,7 @@ The following parameters can be used in the \fB[Logging]\fR section: .TP \fBLogFile\fR=\fI@localstatedir@/log/xrdp.log\fR -This options contains the path to logfile. It can be either absolute or relative. If set to "-", log will go to stdout, which is useful for debugging\fR +This options contains the path to logfile. It can be either absolute or relative. If set to \fB\fR, log will go to stdout, which is useful for debugging\fR .TP \fBLogLevel\fR=\fIlevel\fR