summaryrefslogtreecommitdiff
path: root/src/sysinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysinfo.cpp')
-rw-r--r--src/sysinfo.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sysinfo.cpp b/src/sysinfo.cpp
index 0290e9b..4ef988e 100644
--- a/src/sysinfo.cpp
+++ b/src/sysinfo.cpp
@@ -612,6 +612,14 @@ namespace {
this->distro_release = s.substr(start + 1, s.size() - start - 2);
}
}
+ input.close();
+ input.clear();
+ }
+ if (this->distro_release.empty()) {
+ input.open("/etc/debian_version");
+ if (input) {
+ getline(input, this->distro_release);
+ }
}
}
};