update 1.3.5 and fix for factory OBS-URL: https://build.opensuse.org/request/show/198975 OBS-URL: https://build.opensuse.org/package/show/X11:lxde/slim?expand=0&rev=25
28 lines
667 B
Diff
28 lines
667 B
Diff
Index: slim-1.3.5/log.cpp
|
|
===================================================================
|
|
--- slim-1.3.5.orig/log.cpp
|
|
+++ slim-1.3.5/log.cpp
|
|
@@ -5,9 +5,11 @@ bool
|
|
LogUnit::openLog(const char * filename)
|
|
{
|
|
if (logFile.is_open()) {
|
|
+ /*
|
|
cerr << APPNAME
|
|
<< ": opening a new Log file, while another is already open"
|
|
<< endl;
|
|
+ */
|
|
logFile.close();
|
|
}
|
|
logFile.open(filename, ios_base::app);
|
|
@@ -18,6 +20,9 @@ LogUnit::openLog(const char * filename)
|
|
void
|
|
LogUnit::closeLog()
|
|
{
|
|
- if (logFile.is_open())
|
|
+ if (logFile.is_open()) {
|
|
logFile.close();
|
|
+ } else {
|
|
+ cerr << APPNAME << ": closing Log file, while is already closed" << endl;
|
|
+ }
|
|
}
|