]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli:smb: Fix code spelling
authorAndreas Schneider <asn@samba.org>
Thu, 27 Apr 2023 13:58:18 +0000 (15:58 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 27 Apr 2023 15:27:21 +0000 (15:27 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Apr 27 15:27:21 UTC 2023 on atb-devel-224

libcli/smb/smb1cli_close.c
libcli/smb/smb1cli_create.c
libcli/smb/smb1cli_read.c
libcli/smb/smb1cli_write.c
libcli/smb/smbXcli_base.c
libcli/smb/smb_constants.h
libcli/smb/smb_signing.c
libcli/smb/tstream_smbXcli_np.c
libcli/smb/util.c

index 89fbbba83f5508afc9655b233c74fac24243771d..00baa58457e4b131f1d418941430f287f56be016 100644 (file)
@@ -38,7 +38,7 @@ static void smb1cli_close_done(struct tevent_req *subreq);
  * @param[in] mem_ctx  The memory context for the result.
  * @param[in] ev The event context to work on.
  * @param[in] conn The smb connection.
- * @param[in] timeout_msec If positiv a timeout for the request.
+ * @param[in] timeout_msec If positive a timeout for the request.
  * @param[in] pid The process identifier.
  * @param[in] tcon The smb tree connect.
  * @param[in] session The smb session.
@@ -133,7 +133,7 @@ NTSTATUS smb1cli_close_recv(struct tevent_req *req)
  * @see smb1cli_close_send(), smb1cli_close_recv()
  *
  * @param[in] conn The smb connection.
- * @param[in] timeout_msec If positiv a timeout for the request.
+ * @param[in] timeout_msec If positive a timeout for the request.
  * @param[in] pid The process identifier.
  * @param[in] tcon The smb tree connect.
  * @param[in] session The smb session.
index d9887a04cda8eaf6c3bfb4830822134002a6eef9..fc1e16b2be10fb26bd792e2319d13848b6484a3f 100644 (file)
@@ -39,7 +39,7 @@ static void smb1cli_ntcreatex_done(struct tevent_req *subreq);
  * @param[in] mem_ctx The memory context for the result.
  * @param[in] ev The event context to work on.
  * @param[in] conn The smb connection.
- * @param[in] timeout_msec If positiv a timeout for the request.
+ * @param[in] timeout_msec If positive a timeout for the request.
  * @param[in] pid The process identifier
  * @param[in] tcon The smb tree connect.
  * @param[in] session The smb session.
@@ -189,7 +189,7 @@ static void smb1cli_ntcreatex_done(struct tevent_req *subreq)
  * @param[in] req A tevent request created with smb1cli_ntcreatex_send()
  * @param[out] pfnum The file id of the opened file or directory.
  *
- * @return NT_STATUS_OK on succsess
+ * @return NT_STATUS_OK on success
  */
 NTSTATUS smb1cli_ntcreatex_recv(struct tevent_req *req, uint16_t *pfnum)
 {
@@ -214,7 +214,7 @@ NTSTATUS smb1cli_ntcreatex_recv(struct tevent_req *req, uint16_t *pfnum)
  * @see smb1cli_ntcreatex_send() smb1cli_ntcreatex_recv()
  *
  * @param[in] conn The smb connection.
- * @param[in] timeout_msec If positiv a timeout for the request.
+ * @param[in] timeout_msec If positive a timeout for the request.
  * @param[in] pid The process identifier
  * @param[in] tcon The smb tree connect.
  * @param[in] session The smb session.
@@ -231,7 +231,7 @@ NTSTATUS smb1cli_ntcreatex_recv(struct tevent_req *req, uint16_t *pfnum)
  * @param[in] SecurityFlags
  * @param[out] pfnum The file id representing the file or directory created or opened.
  *
- * @return  NT_STATUS_OK on succsess
+ * @return  NT_STATUS_OK on success
  */
 NTSTATUS smb1cli_ntcreatex(struct smbXcli_conn *conn,
                           uint32_t timeout_msec,
index d7a7f43e66e107cef7301036b58ae6eb7547e917..877aab530dad4e078227715f7f4f915f3d99b626 100644 (file)
@@ -43,7 +43,7 @@ static void smb1cli_readx_done(struct tevent_req *subreq);
  * @param[in] mem_ctx The memory context for the result.
  * @param[in] ev The event context to work on.
  * @param[in] conn The smb connection.
- * @param[in] timeout_msec If positiv a timeout for the request.
+ * @param[in] timeout_msec If positive a timeout for the request.
  * @param[in] pid The process identifier
  * @param[in] tcon The smb tree connect.
  * @param[in] session The smb session.
@@ -220,7 +220,7 @@ static void smb1cli_readx_done(struct tevent_req *subreq)
  * @param[out] received The number of bytes received.
  * @param[out] rcvbuf Pointer to the bytes received.
  *
- * @return NT_STATUS_OK or STATUS_BUFFER_OVERFLOW on succsess.
+ * @return NT_STATUS_OK or STATUS_BUFFER_OVERFLOW on success.
  */
 NTSTATUS smb1cli_readx_recv(struct tevent_req *req,
                            uint32_t *received,
index 66f93c0cdfaa8212bf243e117f3074d333e82d21..d5bc57aa8166af88ec53dc7ad7eca0f1a5f6b968 100644 (file)
@@ -42,7 +42,7 @@ static void smb1cli_writex_done(struct tevent_req *subreq);
  * @param[in] mem_ctx The memory context for the result.
  * @param[in] ev The event context to work on.
  * @param[in] conn The smb connection.
- * @param[in] timeout_msec If positiv a timeout for the request.
+ * @param[in] timeout_msec If positive a timeout for the request.
  * @param[in] pid The process identifier
  * @param[in] tcon The smb tree connect.
  * @param[in] session The smb session.
@@ -190,7 +190,7 @@ static void smb1cli_writex_done(struct tevent_req *subreq)
  * @param[out] pwritten The number of bytes written to the file.
  * @param[out] pavailable Valid if writing to a named pipe or IO device.
  *
- * @return NT_STATUS_OK on succsess.
+ * @return NT_STATUS_OK on success.
  */
 NTSTATUS smb1cli_writex_recv(struct tevent_req *req, uint32_t *pwritten, uint16_t *pavailable)
 {
@@ -216,7 +216,7 @@ NTSTATUS smb1cli_writex_recv(struct tevent_req *req, uint32_t *pwritten, uint16_
  * @see smb1cli_writex_send(), smb1cli_writex_recv()
  *
  * @param[in] conn The smb connection.
- * @param[in] timeout_msec If positiv a timeout for the request.
+ * @param[in] timeout_msec If positive a timeout for the request.
  * @param[in] pid The process identifier
  * @param[in] tcon The smb tree connect.
  * @param[in] session The smb session.
@@ -228,7 +228,7 @@ NTSTATUS smb1cli_writex_recv(struct tevent_req *req, uint32_t *pwritten, uint16_
  * @param[out] pwritten The number of bytes written to the file.
  * @param[out] pavailable Valid if writing to a named pipe or IO device.
  *
- * @return NT_STATUS_OK on succsess.
+ * @return NT_STATUS_OK on success.
  */
 NTSTATUS smb1cli_writex(struct smbXcli_conn *conn,
                        uint32_t timeout_msec,
index a2a551d0f79e5136f498191ce93976ba1c58ff86..fe422eb83fa1b9b7415b001ac12fad73df7b850a 100644 (file)
@@ -3226,7 +3226,7 @@ NTSTATUS smb2cli_req_compound_submit(struct tevent_req **reqs,
                 * nonce wrap, or the security of the whole
                 * communication and the keys is destroyed.
                 * We must drop the connection once we have
-                * transfered too much data.
+                * transferred too much data.
                 *
                 * NOTE: We assume nonces greater than 8 bytes.
                 */
@@ -3888,7 +3888,7 @@ static NTSTATUS smb2cli_conn_dispatch_incoming(struct smbXcli_conn *conn,
                        if (!NT_STATUS_IS_OK(status)) {
                                /*
                                 * Only check the signature of the last response
-                                * of a successfull session auth. This matches
+                                * of a successful session auth. This matches
                                 * Windows behaviour for NTLM auth and reauth.
                                 */
                                state->smb2.require_signed_response = false;
@@ -6540,7 +6540,7 @@ NTSTATUS smb2cli_session_set_session_key(struct smbXcli_session *session,
         * nonce wrap, or the security of the whole
         * communication and the keys is destroyed.
         * We must drop the connection once we have
-        * transfered too much data.
+        * transferred too much data.
         *
         * NOTE: We assume nonces greater than 8 bytes.
         */
index a08b1931277ac871b2b47e064e83a83873c1ea55..1ee5d7f406ef3ed5b476b81170bf3d5e9210e215 100644 (file)
@@ -27,8 +27,8 @@
  */
 #define NBSSmessage     0x00   /* session message */
 #define NBSSrequest     0x81   /* session request */
-#define NBSSpositive    0x82   /* positiv session response */
-#define NBSSnegative    0x83   /* negativ session response */
+#define NBSSpositive    0x82   /* positive session response */
+#define NBSSnegative    0x83   /* negative session response */
 #define NBSSretarget    0x84   /* retarget session response */
 #define NBSSkeepalive   0x85   /* keepalive */
 
@@ -400,7 +400,7 @@ enum csc_policy {
 #define FILE_CASE_PRESERVED_NAMES       0x00000002
 #define FILE_UNICODE_ON_DISK            0x00000004
 /* According to cifs9f, this is 4, not 8 */
-/* Acconding to testing, this actually sets the security attribute! */
+/* According to testing, this actually sets the security attribute! */
 #define FILE_PERSISTENT_ACLS            0x00000008
 #define FILE_FILE_COMPRESSION           0x00000010
 #define FILE_VOLUME_QUOTAS              0x00000020
index 1d768ef39d0b71f4d0229399197db72af7dbf335..d50c96383809540b4bd4a25851aafc84b86f0c66 100644 (file)
 /* Used by the SMB1 signing functions. */
 
 struct smb1_signing_state {
-       /* is signing localy allowed */
+       /* is signing locally allowed */
        bool allowed;
 
-       /* is signing localy desired */
+       /* is signing locally desired */
        bool desired;
 
-       /* is signing localy mandatory */
+       /* is signing locally mandatory */
        bool mandatory;
 
        /* is signing negotiated by the peer */
index ef685e16f4f473376e064cbf4e8b066b69db3c77..990673196a8f7e6d5916659bc0d87bf47fce018c 100644 (file)
@@ -112,7 +112,7 @@ static int tstream_smbXcli_np_destructor(struct tstream_smbXcli_np *cli_nps)
         * tstream_disconnect_send()/_recv(), this will
         * never be called.
         *
-        * We use a maximun timeout of 1 second == 1000 msec.
+        * We use a maximum timeout of 1 second == 1000 msec.
         */
        cli_nps->timeout = MIN(cli_nps->timeout, 1000);
 
index c7b51ff84dba678b9a548fbbce386b1ae4a74bdf..6e29a98dc401503ee7c2a8ecf210607c09d612d1 100644 (file)
@@ -212,7 +212,7 @@ bool smb_buffer_oob(uint32_t bufsize, uint32_t offset, uint32_t length)
 }
 
 /***********************************************************
- Common function for pushing stings, used by smb_bytes_push_str()
+ Common function for pushing strings, used by smb_bytes_push_str()
  and trans_bytes_push_str(). Only difference is the align_odd
  parameter setting.
 ***********************************************************/
@@ -431,7 +431,7 @@ NTSTATUS smb_bytes_pull_str(TALLOC_CTX *mem_ctx, char **_str, bool ucs2,
  *
  * @param[in]  str  The string to translate.
  *
- * @return A corresponding enum @smb_signing_setting tranlated from the string.
+ * @return A corresponding enum @smb_signing_setting translated from the string.
  */
 enum smb_signing_setting smb_signing_setting_translate(const char *str)
 {
@@ -450,7 +450,7 @@ enum smb_signing_setting smb_signing_setting_translate(const char *str)
  *
  * @param[in]  str  The string to translate.
  *
- * @return A corresponding enum @smb_encryption_setting tranlated from the
+ * @return A corresponding enum @smb_encryption_setting translated from the
  *         string.
  */
 enum smb_encryption_setting smb_encryption_setting_translate(const char *str)