summaryrefslogtreecommitdiffstats
path: root/lib/Utils/DebugDump.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Utils/DebugDump.cpp')
-rw-r--r--lib/Utils/DebugDump.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Utils/DebugDump.cpp b/lib/Utils/DebugDump.cpp
index 032bed4..89be923 100644
--- a/lib/Utils/DebugDump.cpp
+++ b/lib/Utils/DebugDump.cpp
@@ -207,6 +207,9 @@ void CDebugDump::SaveEnvironment()
SaveText(FILENAME_KERNEL, buf.release);
SaveText(FILENAME_ARCHITECTURE, buf.machine);
}
+ std::string release;
+ LoadTextFile("/etc/redhat-release", release);
+ SaveText(FILENAME_RELEASE, release);
}
void CDebugDump::SaveTime()
@@ -232,6 +235,11 @@ void CDebugDump::LoadTextFile(const std::string& pPath, std::string& pData)
while (!fIn.eof())
{
getline (fIn,line);
+ // TODO: remove this hack
+ if (pData != "")
+ {
+ pData += "\n";
+ }
pData += line;
}
fIn.close();