summaryrefslogtreecommitdiffstats
path: root/base/linux_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/linux_util.cc')
-rw-r--r--base/linux_util.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/base/linux_util.cc b/base/linux_util.cc
index c3198f6..03254de 100644
--- a/base/linux_util.cc
+++ b/base/linux_util.cc
@@ -143,8 +143,10 @@ std::string GetLinuxDistro() {
if (output.length() > 0) {
// lsb_release -d should return: Description:<tab>Distro Info
static const std::string field = "Description:\t";
- if (output.compare(0, field.length(), field) == 0)
+ if (output.compare(0, field.length(), field) == 0) {
linux_distro = output.substr(field.length());
+ TrimWhitespaceASCII(linux_distro, TRIM_ALL, &linux_distro);
+ }
}
distro_state_singleton->CheckFinished();
return linux_distro;