]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
GuestInfo: Identify SLED as SLES.
authorVMware, Inc <>
Mon, 26 Jul 2010 18:12:01 +0000 (11:12 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 26 Jul 2010 18:12:01 +0000 (11:12 -0700)
Per bug 572710 comment #8:

"With respect to running of a VM, we have decided that we do not need to
differentiate between SLES & SLED. So we offer only one selection for the two. I
think in the future, the UI will begin to call it 'SLE' in most cases."

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/misc/hostinfoPosix.c

index 5335dc934f2c5afb2b01abbc5866c1a4a9e16c54..0701a0a0f4e6b5cd09a5cd6abaa10562ca9c9281 100644 (file)
@@ -501,9 +501,11 @@ HostinfoGetOSShortName(char *distro,         // IN: full distro name
       }
    } else if (strstr(distroLower, "suse")) {
       if (strstr(distroLower, "enterprise")) {
-         if (strstr(distroLower, "server 11")) {
+         if (strstr(distroLower, "server 11") ||
+             strstr(distroLower, "desktop 11")) {
             Str_Strcpy(distroShort, STR_OS_SLES_11, distroShortSize);
-         } else if (strstr(distroLower, "server 10")) {
+         } else if (strstr(distroLower, "server 10") ||
+                    strstr(distroLower, "desktop 10")) {
             Str_Strcpy(distroShort, STR_OS_SLES_10, distroShortSize);
          } else {
             Str_Strcpy(distroShort, STR_OS_SUSE_EN, distroShortSize);