]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Inclusive terminology - "sanity check"
authorKaty Feng <fkaty@vmware.com>
Fri, 3 Feb 2023 17:41:08 +0000 (09:41 -0800)
committerKaty Feng <fkaty@vmware.com>
Fri, 3 Feb 2023 17:41:08 +0000 (09:41 -0800)
"sanity check" clean-up:

- Rename functions:
 - ./scripts/linux/network -> Renamed "sanity_check" to "confidence_check".
 - ./vgauth/lib/proto.c -> Renamed "Proto_SanityCheckReply" to
                                     "Proto_ConfidenceCheckReply".

- Replace "sanity check" with "confidence check" in comments.

20 files changed:
open-vm-tools/lib/slashProc/net.c
open-vm-tools/libguestlib/vmGuestLib.c
open-vm-tools/modules/shared/vmmemctl/kernelStubs.h
open-vm-tools/modules/solaris/vmhgfs/hgfsState.h
open-vm-tools/modules/solaris/vmhgfs/kernelStubs.h
open-vm-tools/modules/solaris/vmhgfs/vnode.c
open-vm-tools/scripts/common/statechange.sh
open-vm-tools/scripts/freebsd/network
open-vm-tools/scripts/linux/network
open-vm-tools/toolbox/toolboxcmd-logging.c
open-vm-tools/vgauth/lib/alias.c
open-vm-tools/vgauth/lib/common.c
open-vm-tools/vgauth/lib/proto.c
open-vm-tools/vgauth/serviceImpl/alias.c
open-vm-tools/vgauth/serviceImpl/filePosix.c
open-vm-tools/vgauth/serviceImpl/proto.c
open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c
open-vm-tools/vmblockmounter/vmblockmounter.c
open-vm-tools/vmhgfs-fuse/file.c
open-vm-tools/vmhgfs-fuse/request.c

index 7e006343083ad2972a4806d76991a4207f2b28fd..b72c8f699a52790e68c350352fc3835759b6d42e 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2009-2018 VMware, Inc. All rights reserved.
+ * Copyright (C) 2009-2018, 2023 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -566,7 +566,7 @@ SlashProcNet_GetRoute(unsigned int maxRoutes,
    myChannel = g_io_channel_unix_new(fd);
 
    /*
-    * 2.  Sanity check the header, making sure it matches what we expect.
+    * 2.  Confidence check the header, making sure it matches what we expect.
     *     (It's -extremely- unlikely this will change, but we should check
     *     anyway.)
     */
index 5e77b4b84d18d5c47be02b11db781c934452dd5c..6cd02436bcc24cb4914021cb7d483876e6726f5f 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2005-2016,2019-2020 VMware, Inc. All rights reserved.
+ * Copyright (C) 2005-2016,2019-2020, 2023 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -446,7 +446,7 @@ VMGuestLibUpdateInfo(VMGuestLibHandle handle) // IN
       goto done;
    }
 
-   /* Sanity check the results. */
+   /* Confidence check the results. */
    if (replyLen < sizeof hostVersion) {
       Debug("%s: Unable to retrieve version\n", __FUNCTION__);
       ret = VMGUESTLIB_ERROR_OTHER;
@@ -457,7 +457,7 @@ VMGuestLibUpdateInfo(VMGuestLibHandle handle) // IN
       VMGuestLibDataV2 *v2reply = (VMGuestLibDataV2 *)reply;
       size_t dataSize = sizeof *v2reply;
 
-      /* More sanity checks. */
+      /* More confidence checks. */
       if (v2reply->hdr.version != hostVersion) {
          Debug("%s: Incorrect data version returned\n", __FUNCTION__);
          ret = VMGUESTLIB_ERROR_OTHER;
@@ -491,7 +491,7 @@ VMGuestLibUpdateInfo(VMGuestLibHandle handle) // IN
       GuestLibV3StatCount count;
       VMGuestLibStatisticsV3 *v3stats;
 
-      /* More sanity checks. */
+      /* More confidence checks. */
       if (v3reply->hdr.version != hostVersion) {
          Debug("%s: Incorrect data version returned\n", __FUNCTION__);
          ret = VMGUESTLIB_ERROR_OTHER;
index 5a9ac5b7d2c35721e5d61194a036267f5af4d7a4..429a5cdbc9daa25d3a56cb0d2b6d81e56eb16d50 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2006-2019,2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2006-2019,2021, 2023 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -227,7 +227,7 @@ char * __cdecl _strdup_impl(
 
 #elif defined(__FreeBSD__)                      /* } else if (FreeBSD) { */
 
-/* Kernel memory on FreeBSD is tagged for statistics and sanity checking. */
+/* Kernel memory on FreeBSD is tagged for statistics and confidence checking. */
 MALLOC_DECLARE(M_VMWARE_TEMP);
 
 /*
index a739fdfd6926bcf694a282e485ffd0cf2c863c18..fc0612230339d46da4dd005f8086f565cbc75866 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2004-2016, 2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2004-2016, 2021, 2023 VMware, Inc. All rights reserved.
  *
  * The contents of this file are subject to the terms of the Common
  * Development and Distribution License (the "License") version 1.0
@@ -65,7 +65,7 @@
          HGFS_VP_TO_FP(vp)->fileType
 
 /*
- * This macro is used for sanity checking the fact that Solaris won't ever call
+ * This macro is used for confidence checking the fact that Solaris won't ever call
  * one of our vnode operations without first calling lookup(), which is the
  * place where we acquire the filename.  I have never seen a function fail
  * because of this, so it is likely that we can remove this macro and the checks
index cfcf0cee8aedaffee1e6ca69143f316814da26f3..5f677a8aeb36a7b50f7ddc741198361a32f3fb84 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2006-2019,2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2006-2019,2021, 2023 VMware, Inc. All rights reserved.
  *
  * The contents of this file are subject to the terms of the Common
  * Development and Distribution License (the "License") version 1.0
@@ -186,7 +186,7 @@ char * __cdecl _strdup_impl(
 
 #elif defined(__FreeBSD__)                      /* } else if (FreeBSD) { */
 
-/* Kernel memory on FreeBSD is tagged for statistics and sanity checking. */
+/* Kernel memory on FreeBSD is tagged for statistics and confidence checking. */
 MALLOC_DECLARE(M_VMWARE_TEMP);
 
 /*
index 6145a91af36f7c0a4a21f2e6ee9ecb99fafe35cf..bcbdebcff6d23dfc610e8d91387fad4bbe04f04a 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2004-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 2004-2016, 2023 VMware, Inc. All rights reserved.
  *
  * The contents of this file are subject to the terms of the Common
  * Development and Distribution License (the "License") version 1.0
@@ -2162,7 +2162,7 @@ HgfsReaddir(struct vnode *vp,       // IN: Vnode of directory to read
 
 
    /*
-    * XXX: If would be nice if we could perform some sort of sanity check on
+    * XXX: If would be nice if we could perform some sort of confidence check on
     * the handle here.  Perhaps make sure handle <= NUM_SEARCHES in
     * hgfsServer.c since the handle is the index number in searchArray.
     */
@@ -5571,7 +5571,7 @@ HgfsReaddir(struct vnode *vp,   // IN: Vnode of directory to read
 
 
    /*
-    * XXX: If would be nice if we could perform some sort of sanity check on
+    * XXX: If would be nice if we could perform some sort of confidence check on
     * the handle here.  Perhaps make sure handle <= NUM_SEARCHES in
     * hgfsServer.c since the handle is the index number in searchArray.
     */
index 39df65796f541afaa870900881857b1304ffdc3b..3320151866f2303a4a2bec514c66639dc54ca00b 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 ##########################################################
-# Copyright (C) 2010-2016 VMware, Inc. All rights reserved.
+# Copyright (C) 2010-2016, 2023 VMware, Inc. All rights reserved.
 #
 # This program is free software; you can redistribute it and/or modify it
 # under the terms of the GNU Lesser General Public License as published
@@ -107,7 +107,7 @@ RunScripts() {
 #
 
 main() {
-   # This is sanity checked in the case/esac bit below.
+   # This is confidence checked in the case/esac bit below.
    powerOp=`basename "$0" | sed 's,-default,,'`
    exitCode=0
 
index 0c70526173fbdf0219026b838addf4bdf2fa75dd..8e728ad226c05109b78224ba8ce1abc9e09a3e51 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 ##########################################################
-# Copyright (C) 2010-2017 VMware, Inc. All rights reserved.
+# Copyright (C) 2010-2017, 2023 VMware, Inc. All rights reserved.
 #
 # This program is free software; you can redistribute it and/or modify it
 # under the terms of the GNU Lesser General Public License as published
@@ -74,7 +74,7 @@ ToggleNetwork() {
 #
 # main --
 #
-#    Main entry point.  Perform some sanity checking, then map state change
+#    Main entry point.  Perform some confidence checking, then map state change
 #    events to relevant networking operations.
 #
 # Results:
index db37304df8a8bedb547d80b8bb36e77f296948b2..e866f5200833859cf1bfd12096c92e77dc9d0cc3 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh -x
 ##########################################################
-# Copyright (C) 2001-2018, 2021 VMware, Inc. All rights reserved.
+# Copyright (C) 2001-2018, 2021, 2023 VMware, Inc. All rights reserved.
 #
 # This program is free software; you can redistribute it and/or modify it
 # under the terms of the GNU Lesser General Public License as published
@@ -608,7 +608,7 @@ WakeNetworkManager()
 
 
 #
-# sanity_check --
+# confidence_check --
 #
 #    Check if the script has all the commands it needs to carry out the
 #    request. So far, it requires either ip or ifconfig command to read
@@ -616,7 +616,7 @@ WakeNetworkManager()
 #    the place where we need to do individual interface state change.
 #
 
-sanity_check()
+confidence_check()
 {
    ip_cmd=$(which ip 2>/dev/null)
    ifconfig_cmd=$(which ifconfig 2>/dev/null)
@@ -631,7 +631,7 @@ sanity_check()
 #
 # main --
 #
-#    Main entry point.  Perform some sanity checking, then map state change
+#    Main entry point.  Perform some confidence checking, then map state change
 #    events to relevant networking operations.
 #
 # Results:
@@ -650,7 +650,7 @@ main() {
          TranquilizeNetworkManager
          exitCode=$?
          if [ $exitCode != 0 ]; then
-            sanity_check suspend-vm
+            confidence_check suspend-vm
             save_active_NIC_list
             run_network_script stop
             exitCode=$?
@@ -660,7 +660,7 @@ main() {
          WakeNetworkManager
          exitCode=$?
          if [ $exitCode != 0 ]; then
-            sanity_check resume-vm
+            confidence_check resume-vm
             # According to hfu, "/etc/init.d/networking restart" on Debian 5.0
             # may bring down ethernet interfaces tagged as "allow-hotplug" without
             # bringing them back up.
index 1c23bb7b0377461e10f1e21823ab7c033ab97cd7..d83c3cd65e30d99463f6f9686e68c157ddb95479 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2015-2016,2020-2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2015-2016,2020-2021, 2023 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
  *    Various logging operations for toolbox-cmd.
  *
  *    Note:
- *    Servicenames are not sanity checked.  This means it can report
+ *    Servicenames are not confidence checked.  This means it can report
  *    the default value for a bogus servicename, or setting values for
- *    an unsupported servicename.  But any sanity checking would require
+ *    an unsupported servicename.  But any confidence checking would require
  *    all possible servicenames to #define themselves.  Lack of
- *    a sanity check overrrides this complexity.
+ *    a confidence check overrrides this complexity.
  *
  *    TODO:  This currently just modifies the tools.conf file, which means
  *    that if tools is running, it can talke up to 5 seconds to react
@@ -49,7 +49,7 @@
  *
  * LoggingCheckLevel --
  *
- *      Sanity check logging level.
+ *      Confidence check logging level.
  *
  * Results:
  *      Returns TRUE if its a valid logging level, FALSE if not.
index c4860b244d1c0083fd0e7bbc518f58e35aefe1f4..657b7f1b5c118625ef33e2ffd07ec85dc8531827 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2011-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-2016, 2023 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -220,7 +220,7 @@ VGAuth_FreeMappedAliasList(int num,
  ******************************************************************************
  * VGAuthValidateSubject --                                              */ /**
  *
- * @brief Does a sanity check on a Subject paramter.
+ * @brief Does a confidence check on a Subject parameter.
  *
  * @remark Can be called by any user.
  *
index 181b972b6e5d34ee564de91e792b425cb89ab1b0..1e26fea2ae3fe676877c48028f485d5a3f49945f 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2011-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-2017, 2023 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -553,7 +553,7 @@ done:
  * @li VGAuth debug messages will use the glib loglevel @b G_LOG_LEVEL_DEBUG.
  *
  * Note that any bad utf8 string arguments will be passed through
- * unmodified, so an error handler may want to sanity check the data.
+ * unmodified, so an error handler may want to confidence check the data.
  *
  * @remark Can be called by any user.
  *
index 6f23042a81d94ca9a244ad735de78594a2d21570..91fc4bb7817f8cb6a73de93202af91a3dce663c0 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2012-2017, 2019-2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2012-2017, 2019-2021, 2023 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -108,7 +108,7 @@ struct ProtoReply {
 
    /*
     * The client knows what its expecting back, which is
-    * used as a sanity check against what's actually read,
+    * used as a confidence check against what's actually read,
     * as well as telling us what to allocate for complex replies.
     */
    ProtoReplyType expectedReplyType;
@@ -1141,7 +1141,7 @@ Proto_FreeReply(ProtoReply *reply)
 
 /*
  ******************************************************************************
- * Proto_SanityCheckReply --                                             */ /**
+ * Proto_ConfidenceCheckReply --                                             */ /**
  *
  * Verifies a reply is internally consistent and the type is what we expected.
  *
@@ -1155,7 +1155,7 @@ Proto_FreeReply(ProtoReply *reply)
  */
 
 static VGAuthError
-Proto_SanityCheckReply(ProtoReply *reply,
+Proto_ConfidenceCheckReply(ProtoReply *reply,
                        int expectedSequenceNumber)
 {
 #if VGAUTH_PROTO_TRACE
@@ -1274,10 +1274,10 @@ VGAuth_ReadAndParseResponse(VGAuthContext *ctx,
    Proto_DumpReply(reply);
 #endif
 
-   err = Proto_SanityCheckReply(reply, ctx->comm.sequenceNumber);
+   err = Proto_ConfidenceCheckReply(reply, ctx->comm.sequenceNumber);
 
    if (VGAUTH_E_OK != err) {
-      Warning("%s: reply sanity check failed\n", __FUNCTION__);
+      Warning("%s: reply confidence check failed\n", __FUNCTION__);
       goto quit;
    }
 
index b28351eead7f40c52e8af181cda3a256c67dfb73..95ba1ce872ce51f6a59506b3625c8c8123cc816a 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2011-2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-2021, 2023 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -420,7 +420,7 @@ ServiceUserNameToTmpAliasStoreFileName(const gchar *userName)
  * ServiceLoadAliasFileContents --                                       */ /**
  *
  * Securely loads an alias or mapping file, preventing TOCTOU (Time of Check,
- * Time of Use) bugs.  This also provides a size sanity check, preventing
+ * Time of Use) bugs.  This also provides a size confidence check, preventing
  * a DoS attack.
  *
  * Steps:
@@ -518,7 +518,7 @@ ServiceLoadFileContentsWin(const gchar *fileName,
       goto done;
    }
 
-   // sanity check size
+   // confidence check size
    if ((fileAttrs.nFileSizeHigh != 0) ||
        (fileAttrs.nFileSizeLow > ALIASSTORE_FILE_MAX_SIZE)) {
       Warning("%s: size of %s too large %d %d; failing read\n", __FUNCTION__,
@@ -781,7 +781,7 @@ ServiceLoadFileContentsPosix(const gchar *fileName,
    }
 
    /*
-    * Now the sanity checks.
+    * Now the confidence checks.
     */
    if (lstatBuf.st_size != fstatBuf.st_size) {
       Warning("%s: size of %s changed (%d vs %d)\n", __FUNCTION__,
@@ -818,7 +818,7 @@ ServiceLoadFileContentsPosix(const gchar *fileName,
    }
 
    /*
-    * All sanity checks passed; read the bits.
+    * All confidence checks passed; read the bits.
     */
    toRead = lstatBuf.st_size;
    buf = g_malloc0(toRead + 1);
@@ -1879,7 +1879,7 @@ AliasSafeRenameFiles(const gchar *srcAliasFilename,
 
 
    /*
-    * Do some sanity checks on the files.
+    * Do some confidence checks on the files.
     */
    if (NULL != srcAliasFilename) {
       if (g_file_test(aliasFilename, G_FILE_TEST_EXISTS) &&
@@ -3086,7 +3086,7 @@ ServiceAliasQueryMappedAliases(int *num,
  *
  * If we fail to rename a bad file, the function returns an error.
  *
- * XXX add contents/XML sanity check too?
+ * XXX add contents/XML confidence check too?
  *
  * @return VGAUTH_E_OK on success, VGAuthError on failure
  *
@@ -3396,7 +3396,7 @@ ServiceAliasInitAliasStore(void)
       }
 
       /*
-       * Sanity check the alias store.
+       * Confidence check the alias store.
        */
       err = ServiceValidateAliases();
    }
index 8464154b8a7f0aac926d476245dc8a5d3b64ce90..69fc47d7225043341e9417d7d161773f53efbdbe 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2011-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-2016, 2023 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -293,7 +293,7 @@ ServiceFileGetPermissions(const gchar *fileName,
  * be looked up, assume the user has been removed or we have a network
  * user issue, and ignore the ownership check.
  *
- * Returns the uids found for subsequent sanity checks.
+ * Returns the uids found for subsequent confidence checks.
  *
  * @param[in]   fileName       The file name.
  * @param[in]   userName       The expected owner.
index 6c672601505258c6701957921040d53c1c15154d..502aea6211fdefed0a53714b5a5dd059dbdc0a83 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2011-2016,2019-2022 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-2016,2019-2023 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -1044,7 +1044,7 @@ Proto_FreeRequest(ProtoRequest *req)
 
 /*
  ******************************************************************************
- * Proto_SanityCheckRequest -                                            */ /**
+ * Proto_ConfidenceCheckRequest -                                            */ /**
  *
  * Verifies a request is internally consistent and the type is what we expected.
  *
@@ -1056,7 +1056,7 @@ Proto_FreeRequest(ProtoRequest *req)
  */
 
 static VGAuthError
-Proto_SanityCheckRequest(ProtoRequest *request)
+Proto_ConfidenceCheckRequest(ProtoRequest *request)
 {
    /*
     * There's not much else to do here for now.  The parser does
@@ -1149,12 +1149,12 @@ ServiceProtoReadAndProcessRequest(ServiceConnection *conn)
     */
    if (req->complete) {
       Proto_DumpRequest(req);
-      err = Proto_SanityCheckRequest(req);
+      err = Proto_ConfidenceCheckRequest(req);
       if (err != VGAUTH_E_OK) {
-         Warning("%s: request sanity check failed\n", __FUNCTION__);
+         Warning("%s: request confidence check failed\n", __FUNCTION__);
       }
 
-      // only try to handle it if the sanity check passed
+      // only try to handle it if the confidence check passed
       if (err == VGAUTH_E_OK) {
          err = ServiceProtoDispatchRequest(conn, req);
       }
index f5541a9a70961c09b4ef21cfbcfae62670114948..6e9d0fd24530535a53dafb538637af33cb544e07 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2016-2022 VMware, Inc. All rights reserved.
+ * Copyright (C) 2016-2023 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -266,7 +266,7 @@ LoadCatalogAndSchema(void)
     * xmlLoadCatalog() just adds to the default catalog, and won't return an
     * error if it doesn't exist so long as a default catalog is set.
     *
-    * So sanity check its existence.
+    * So confidence check its existence.
     */
    if (!g_file_test(catalogPath, G_FILE_TEST_EXISTS)) {
       g_warning("Error: catalog file not found at \"%s\"\n", catalogPath);
index 2735fd3340e38f6bf1d2052f5b0d436cda87c5c5..6100ecc82e1931eebb0b1543399083de41cf6a8f 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2011-2016, 2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-2016, 2021, 2023 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -186,7 +186,7 @@ main(int argc,          // IN
    sourceDir = argv[optind];
    mountPoint = argv[optind + 1];
 
-   /* Do some sanity checks on our desired mount point. */
+   /* Do some confidence checks on our desired mount point. */
    if (stat(mountPoint, &statBuf)) {
       perror("Error: cannot stat mount point");
       goto out;
index e56d621dbb896395718f76d401dd698b2eaa1639..e59c78e777531add97e76da2efe282d6f8860dde 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2013,2018-2019 VMware, Inc. All rights reserved.
+ * Copyright (C) 2013,2018-2019, 2023 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -612,7 +612,7 @@ HgfsDoRead(HgfsHandle handle,  // IN:  Handle for this file
             payload = ((HgfsReplyRead *)HGFS_REQ_PAYLOAD(req))->payload;
          }
 
-         /* Sanity check on read size. */
+         /* Confidence check on read size. */
          if (actualSize > count) {
             LOG(4, ("Server reply: read too big!\n"));
             result = -EPROTO;
index bba1f444f2184f232261bc9b612cd59a2b89b6aa..0b9f2554fcd0896c46c83be59a54c7fd371bd071 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2013,2019 VMware, Inc. All rights reserved.
+ * Copyright (C) 2013,2019, 2023 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -164,7 +164,7 @@ HgfsUnpackHeader(void *serverReply,           // IN:  server reply
 {
    HgfsHeader *header = (HgfsHeader *)serverReply;
 
-   /* First some sanity checking. */
+   /* First some confidence checking. */
    if ((replySize < sizeof (HgfsHeader)) ||
        (header->dummy != HGFS_OP_NEW_HEADER) ||
        (header->packetSize > replySize) ||