libsmb: Fix whitespace and a typo
authorVolker Lendecke <vl@samba.org>
Mon, 18 Dec 2023 20:13:56 +0000 (21:13 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 23 Jan 2024 23:28:31 +0000 (23:28 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
15 files changed:
source3/libsmb/cliconnect.c
source3/libsmb/clidgram.c
source3/libsmb/clierror.c
source3/libsmb/clifile.c
source3/libsmb/clifsinfo.c
source3/libsmb/cliquota.c
source3/libsmb/clisecdesc.c
source3/libsmb/conncache.c
source3/libsmb/errormap.c
source3/libsmb/errormap_wbc.c
source3/libsmb/libsmb_thread_impl.c
source3/libsmb/libsmb_thread_posix.c
source3/libsmb/libsmb_xattr.c
source3/libsmb/namequery_dc.c
source3/libsmb/smberr.c

index af9f215dc754613338c17cfebbdd29c182844ca0..61e35042586b86f9d28afef5fcc1efbbded617c6 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Unix SMB/CIFS implementation.
    client connect/disconnect routines
    Copyright (C) Andrew Tridgell 1994-1998
@@ -2776,7 +2776,7 @@ static void cli_start_connection_connected(struct tevent_req *subreq);
 static void cli_start_connection_done(struct tevent_req *subreq);
 
 /**
-   establishes a connection to after the negprot. 
+   establishes a connection to after the negprot.
    @param output_cli A fully initialised cli structure, non-null only on success
    @param dest_host The netbios name of the remote host
    @param dest_ss (optional) The destination IP, NULL for name based lookup
@@ -2938,9 +2938,9 @@ static NTSTATUS cli_start_connection_recv(struct tevent_req *req,
        return NT_STATUS_OK;
 }
 
-NTSTATUS cli_start_connection(struct cli_state **output_cli, 
-                             const char *my_name, 
-                             const char *dest_host, 
+NTSTATUS cli_start_connection(struct cli_state **output_cli,
+                             const char *my_name,
+                             const char *dest_host,
                              const struct sockaddr_storage *dest_ss, int port,
                              enum smb_signing_setting signing_state, int flags)
 {
@@ -3387,7 +3387,7 @@ NTSTATUS cli_smb1_setup_encryption(struct cli_state *cli,
    @param dest_ip (optional) The the destination IP, NULL for name based lookup
    @param port (optional) The destination port (0 for default)
    @param service (optional) The share to make the connection to.  Should be 'unqualified' in any way.
-   @param service_type The 'type' of serivice. 
+   @param service_type The 'type' of service.
    @param creds The used user credentials
 */
 
index ec0b1efa8ce171b9b93a28e31f1d92967e7ecb31..a45bdac77714438cd233f5784a027feb1b96fb1b 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Unix SMB/CIFS implementation.
    client dgram calls
    Copyright (C) Andrew Tridgell 1994-1998
index 0a5df8b9ae35ecac825742593d07e2927f923c38..afbec47934b73fd7423ac23af45555a334d94163 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Unix SMB/CIFS implementation.
    client error handling routines
    Copyright (C) Andrew Tridgell 1994-1998
index 5dc11f69458d2bd27e3eef259fe518788b4df886..cc1b4d40044e347e78f35671a24693d516a5ec1b 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Unix SMB/CIFS implementation.
    client file operations
    Copyright (C) Andrew Tridgell 1994-1998
index 3183e2f4f431ee1e7e5f9428387e5439738b5cd6..cc95f47d4b1f781a7dd92511a9cd5a71c87ed634 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Unix SMB/CIFS implementation.
    FS info functions
    Copyright (C) Stefan (metze) Metzmacher     2003
index 1f92960639ec54809ae68f05bbe7fd950c50b4d7..0c41272f21a0075058751ccdd554ba57032adb2f 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Unix SMB/CIFS implementation.
    client quota functions
    Copyright (C) Stefan (metze) Metzmacher     2003
@@ -45,7 +45,7 @@ void free_ntquota_list(SMB_NTQUOTA_LIST **qt_list)
 
        (*qt_list) = NULL;
 
-       return; 
+       return;
 }
 
 bool add_record_to_ntquota_list(TALLOC_CTX *mem_ctx,
index 0a5708f7ebd271b07665d0c33268011061b7d301..d6a266191ab078229da0068f9c40165d70bb4b76 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Unix SMB/CIFS implementation.
    client security descriptor functions
    Copyright (C) Andrew Tridgell 2000
index d5a865fb112efe0f6889f92eb037773fe9cf83bc..7310b508a3b3f9b5b72733dc5db0281e05d92a18 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Unix SMB/CIFS implementation.
 
    Winbind daemon connection manager
index ba8bc659bab5679ff8a2cb2474bb843c9a0f830c..fd7d6a19e9a9e4fea73b7ecd6a55d96e1896c730 100644 (file)
@@ -1,20 +1,20 @@
-/* 
+/*
  *  Unix SMB/CIFS implementation.
  *  error mapping functions
  *  Copyright (C) Andrew Tridgell 2001
  *  Copyright (C) Andrew Bartlett 2001
  *  Copyright (C) Tim Potter 2000
- *  
+ *
  *  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 Free Software Foundation; either version 3 of the License, or
  *  (at your option) any later version.
- *  
+ *
  *  This program is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
- *  
+ *
  *  You should have received a copy of the GNU General Public License
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
@@ -293,4 +293,3 @@ NTSTATUS dos_to_ntstatus(uint8_t eclass, uint32_t ecode)
        }
        return NT_STATUS_UNSUCCESSFUL;
 }
-
index b7e6ec067e02c75100b580601963f3e49f12fa15..ad523d6f26d1af6f9658cadf31b61a14c52e2903 100644 (file)
@@ -1,20 +1,20 @@
-/* 
+/*
  *  Unix SMB/CIFS implementation.
  *  error mapping functions
  *  Copyright (C) Andrew Tridgell 2001
  *  Copyright (C) Andrew Bartlett 2001
  *  Copyright (C) Tim Potter 2000
- *  
+ *
  *  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 Free Software Foundation; either version 3 of the License, or
  *  (at your option) any later version.
- *  
+ *
  *  This program is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
- *  
+ *
  *  You should have received a copy of the GNU General Public License
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
@@ -60,4 +60,3 @@ NTSTATUS map_nt_error_from_wbcErr(wbcErr wbc_err)
        /* Default return */
        return NT_STATUS_UNSUCCESSFUL;
 }
-
index dce611073ea03f37c12c975894290dd607762448..8b5d8597b2100a34586668ea92eb90603cb15d0a 100644 (file)
@@ -1,18 +1,18 @@
-/* 
+/*
    Unix SMB/Netbios implementation.
    SMB client library implementation
    Copyright (C) Derrell Lipman 2009
-   
+
    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 Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
-   
+
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
-   
+
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -99,7 +99,7 @@ smbc_thread_impl(
         int (*lock_mutex)(void *plock,
                           int lock_type,
                           const char *location),
-    
+
         /* Thread local storage. */
         int (*create_tls)(const char *keyname,
                           void **ppkey,
index 8c8299dd7f0d54b18e23a008dd6fa90cdfdfe833..36afc02feb29784bc5fc36405feddcca528786d6 100644 (file)
@@ -1,18 +1,18 @@
-/* 
+/*
    Unix SMB/Netbios implementation.
    SMB client library implementation
    Copyright (C) Derrell Lipman 2009
-   
+
    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 Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
-   
+
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
-   
+
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -50,4 +50,3 @@ smbc_thread_posix(void)
 {
         smb_thread_set_functions(&tf);
 }
-
index 3ccb063160abef6b2607f36dc2a5817baf89b8f5..dcb2f9e74a77af3da80efb481cdacd5c7f5b4869 100644 (file)
@@ -1,10 +1,10 @@
-/* 
+/*
    Unix SMB/Netbios implementation.
    SMB client library implementation
    Copyright (C) Andrew Tridgell 1998
    Copyright (C) Richard Sharpe 2000, 2002
    Copyright (C) John Terpstra 2000
-   Copyright (C) Tom Jansen (Ninja ISD) 2002 
+   Copyright (C) Tom Jansen (Ninja ISD) 2002
    Copyright (C) Derrell Lipman 2003-2008
    Copyright (C) Jeremy Allison 2007, 2008
 
@@ -1060,9 +1060,9 @@ cacl_get(SMBCCTX *context,
                                 if (all || all_nt) {
                                         if (determine_size) {
                                                 p = talloc_asprintf(
-                                                        ctx, 
+                                                        ctx,
                                                         ",ACL:"
-                                                        "%s:%d/%d/0x%08x", 
+                                                        "%s:%d/%d/0x%08x",
                                                         sidstr,
                                                         ace->type,
                                                         ace->flags,
@@ -1075,7 +1075,7 @@ cacl_get(SMBCCTX *context,
                                         } else {
                                                 n = snprintf(
                                                         buf, bufsize,
-                                                        ",ACL:%s:%d/%d/0x%08x", 
+                                                        ",ACL:%s:%d/%d/0x%08x",
                                                         sidstr,
                                                         ace->type,
                                                         ace->flags,
@@ -1087,8 +1087,8 @@ cacl_get(SMBCCTX *context,
                                             strcasecmp_m(name+4, sidstr) == 0)) {
                                         if (determine_size) {
                                                 p = talloc_asprintf(
-                                                        ctx, 
-                                                        "%d/%d/0x%08x", 
+                                                        ctx,
+                                                        "%d/%d/0x%08x",
                                                         ace->type,
                                                         ace->flags,
                                                         ace->access_mask);
@@ -1099,7 +1099,7 @@ cacl_get(SMBCCTX *context,
                                                 n = strlen(p);
                                         } else {
                                                 n = snprintf(buf, bufsize,
-                                                             "%d/%d/0x%08x", 
+                                                             "%d/%d/0x%08x",
                                                              ace->type,
                                                              ace->flags,
                                                              ace->access_mask);
@@ -1107,7 +1107,7 @@ cacl_get(SMBCCTX *context,
                                 } else if (all_nt_acls) {
                                         if (determine_size) {
                                                 p = talloc_asprintf(
-                                                        ctx, 
+                                                        ctx,
                                                         "%s%s:%d/%d/0x%08x",
                                                         i ? "," : "",
                                                         sidstr,
@@ -1848,7 +1848,7 @@ SMBC_setxattr_ctx(SMBCCTX *context,
                                dad->mode);
                        if (!ok) {
                                 /* cause failure if NT failed too */
-                                dad = NULL; 
+                                dad = NULL;
                         }
                 }
 
@@ -2171,7 +2171,7 @@ SMBC_getxattr_ctx(SMBCCTX *context,
                 /* Yup. */
                 const char *filename = name;
                 ret = cacl_get(context, talloc_tos(), srv,
-                               ipc_srv == NULL ? NULL : ipc_srv->cli, 
+                               ipc_srv == NULL ? NULL : ipc_srv->cli,
                                &ipc_srv->pol, path,
                                filename,
                                discard_const_p(char, value),
index f2598ed223f857f97450821cc8a2f2022a119000..06e2c5088e045feb5d0097e720ad2f0b013d3911 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Unix SMB/CIFS implementation.
 
    Winbind daemon connection manager
index 854f9bbdf50f62eaf3805a6b004efc0f750dbac4..167c796217a9a1d284141fa919e31e850df35fd3 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Unix SMB/CIFS implementation.
    Copyright (C) Andrew Tridgell 1998
 
@@ -142,7 +142,7 @@ static const struct
   int code;
   const char *e_class;
   err_code_struct *err_msgs;
-} err_classes[] = { 
+} err_classes[] = {
   {0,"SUCCESS",NULL},
   {0x01,"ERRDOS",dos_msgs},
   {0x02,"ERRSRV",server_msgs},