summaryrefslogtreecommitdiffstats
path: root/lib/Utils/DebugDump.cpp
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-02-25 11:55:03 +0100
committerZdenek Prikryl <zprikryl@redhat.com>2009-02-25 11:55:03 +0100
commita598e2afc6de0f19f24d9fa95e04185bd16a202a (patch)
tree1d55facf97320c81cfdea4b47b5abc7f72a37975 /lib/Utils/DebugDump.cpp
parent030fc47b77ca83f43cc39907bd52def9a292e818 (diff)
downloadabrt-a598e2afc6de0f19f24d9fa95e04185bd16a202a.tar.gz
abrt-a598e2afc6de0f19f24d9fa95e04185bd16a202a.tar.xz
abrt-a598e2afc6de0f19f24d9fa95e04185bd16a202a.zip
added new reporting items
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();