HostinfoOsRelease(char *distro, // OUT:
size_t distroSize) // IN:
{
- Bool success;
-
- success = HostinfoReadDistroFile("/etc/os-release",
- &osReleaseFields[0],
- distroSize, distro);
+ Bool success = HostinfoReadDistroFile("/etc/os-release",
+ &osReleaseFields[0],
+ distroSize, distro);
if (!success) {
success = HostinfoReadDistroFile("/usr/lib/os-release",
*
* HostinfoLsb --
*
- * Attempt to determine the disto string via the LSB standard.
+ * Attempt to determine the distro string via the LSB standard.
*
* Return value:
* TRUE Success
*/
lsbOutput = HostinfoGetCmdOutput("/usr/bin/lsb_release -sd 2>/dev/null");
+
if (lsbOutput == NULL) {
int i;
}
/* Not LSB or os-release compliant. Report something generic. */
-
HostinfoDefaultLinux(distro, sizeof distro,
distroShort, sizeof distroShort);