Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Wuk
open-vm-tools
Report-SLES12-SAP-guest-OS-as-SLES12.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Report-SLES12-SAP-guest-OS-as-SLES12.patch of Package open-vm-tools
From: Sebastian Parschauer <sparschauer@suse.de> Date: Wed, 14 Dec 2016 14:28:42 +0100 Subject: Report SLES12-SAP guest OS as SLES12 References: bsc#1013496 Patch-mainline: Submitted, 2016-12-14 16:29 UTC+1 as GitHub PR 123 Git-commit: 35668574ecd785834b3de85d9b5f1c5999fbdba9 Git-repo: https://github.com/sriemer/open-vm-tools On SLES12-SP1-SAP the "lsb_release -sd" command returns the string "SUSE Linux Enterprise Server for SAP Applications 12 SP1". Parsing in HostinfoGetOSShortName() detects the sub-strings "suse" and "enterprise" but not "server 12". STR_OS_SLES is returned resulting in displaying of "SUSE Linux Enterprise 8/9" in the summary screen of the vSphere client. This is wrong. So search for the sub-string "server for sap applications 12" and return STR_OS_SLES_12 there. SLES11-SAP is not affected. Signed-off-by: Sebastian Parschauer <sparschauer@suse.de> --- open-vm-tools/lib/misc/hostinfoPosix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/open-vm-tools/lib/misc/hostinfoPosix.c b/open-vm-tools/lib/misc/hostinfoPosix.c index 0f55070..59f40f7 100644 --- a/open-vm-tools/lib/misc/hostinfoPosix.c +++ b/open-vm-tools/lib/misc/hostinfoPosix.c @@ -534,6 +534,7 @@ HostinfoGetOSShortName(char *distro, // IN: full distro name } else if (strstr(distroLower, "suse")) { if (strstr(distroLower, "enterprise")) { if (strstr(distroLower, "server 12") || + strstr(distroLower, "server for sap applications 12") || strstr(distroLower, "desktop 12")) { Str_Strcpy(distroShort, STR_OS_SLES_12, distroShortSize); } else if (strstr(distroLower, "server 11") ||
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor