. lib/file: fix ASSERT that was too strict and fired too often.
. changes in shared code that don't affect open-vm-tools functionality.
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
ASSERT(dirName);
ASSERT(baseName);
- /*
- * This code concatenates two strings together and omits a
- * redundant directory separator between the two. It does not
- * treat a fully qualified baseName the way one would expect:
- * File_PathJoin("C:\temp", C:thing") -> "C:\temp\C:thing"
- * File_PathJoin("/var/tmp", "/tempfile-123") -> "/var/tmp//tempfile-123"
- * We ASSERT here to catch unintentional common-case coding errors on
- * non-release builds, but we'll still return weird results if we're
- * dealing with unusual user contributed data on release builds.
- *
- * The alternative is to return baseName if (File_IsFullPath(baseName)),
- * but that was not the original intent of this function.
- */
- ASSERT(!File_IsFullPath(baseName));
-
if (Unicode_EndsWith(dirName, DIRSEPS)) {
result = Unicode_Append(dirName, baseName);
} else {
#define PRODUCT_FDM_NAME MAKE_NAME("Fault Domain Manager")
+#define PRODUCT_HA_NAME MAKE_NAME("High Availability Extension")
+
#define PRODUCT_WBC_NAME MAKE_NAME("WebCenter")
#define PRODUCT_SDK_NAME MAKE_NAME("SDK")
# define PRODUCT_SHORT_NAME PRODUCT_API_SCRIPTING_PERL_NAME
# endif
#elif defined(VMX86_VPX)
-# if defined(CSI_FDM)
+# if defined(CSI_HA)
+# define PRODUCT_SHORT_NAME PRODUCT_HA_NAME
+# elif defined(CSI_FDM)
# define PRODUCT_SHORT_NAME PRODUCT_FDM_NAME
# elif defined(VPXA)
# define PRODUCT_SHORT_NAME PRODUCT_VPXA_NAME
/*********************************************************
- * Copyright (C) 2004 VMware, Inc. All rights reserved.
+ * Copyright (C) 2004-2011 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
#define VMNET_CAP_TSO256k 0x200000 /* Can do TSO segmentation offload for pkts up to 256kB. */
#define VMNET_CAP_UPT 0x400000 /* Support UPT */
#define VMNET_CAP_RDONLY_INETHDRS 0x800000 /* Modifies inet headers for TSO/CSUm */
-#define VMNET_CAP_NPA 0x1000000 /* Support NPA */
+#define VMNET_CAP_ENCAP 0x1000000 /* NPA not used, so redefining for ENCAP support */
#define VMNET_CAP_DCB 0x2000000 /* Support DCB */
#define VMNET_CAP_OFFLOAD_8OFFSET 0x4000000 /* supports 8bit parameterized offsets */
#define VMNET_CAP_OFFLOAD_16OFFSET 0x8000000 /* supports 16bit parameterized offsets */