s3:rpc_server: Fix code spelling
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 4 Oct 2023 06:03:39 +0000 (19:03 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 25 Oct 2023 22:23:37 +0000 (22:23 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/rpc_server/mdssvc/es_mapping.c
source3/rpc_server/rpc_host.c
source3/rpc_server/spoolss/srv_spoolss_nt.c

index 57d227adcf6a7e3e280ab02c6d094c96edfd3276..e8d181daae1aa6335b38fa2d10752fb9cabad9d7 100644 (file)
@@ -66,7 +66,7 @@
  * Special cases:
  * x y    It's not possible to search for terms including spaces, Spotlight
  *        will search for x OR y.
- * x(x    Search for terms including ( and ) doesn not work with Spotlight.
+ * x(x    Search for terms including ( and ) does not work with Spotlight.
  *
  * [1] <http://lucene.apache.org/core/8_2_0/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#Escaping_Special_Characters>
  */
index ab9ad33c56226daec019d0b62408fc30dd4327dd..337076b506359c22d2f126bba002408636d4a905 100644 (file)
@@ -1280,7 +1280,7 @@ static struct rpc_work_process *rpc_host_find_idle_worker(
         */
        if (num_workers >= UINT16_MAX) {
                /*
-                * The worker index would not fix into 16-bits
+                * The worker index would not fit into 16-bits
                 */
                return NULL;
        }
index a220964070aea76c332ebbd1b33a4bbe5239bb15..16b8b41f87c0cc1b51f11a391607015cb0587a33 100644 (file)
@@ -763,7 +763,7 @@ static WERROR open_printer_hnd(struct pipes_struct *p,
 }
 
 /***************************************************************************
- check to see if the client motify handle is monitoring the notification
+ check to see if the client notify handle is monitoring the notification
  given by (notify_type, notify_field).
  **************************************************************************/
 
@@ -1100,7 +1100,7 @@ static void construct_info_data(struct spoolss_Notify *info_data,
                                uint16_t field, int id);
 
 /***********************************************************************
- Send a change notifation message on all handles which have a call
+ Send a change notification message on all handles which have a call
  back registered
  **********************************************************************/
 
@@ -2177,7 +2177,7 @@ static WERROR spoolss_dpd_version(TALLOC_CTX *mem_ctx,
        /*
         * now delete any associated files if delete_files is
         * true. Even if this part fails, we return success
-        * because the driver doesn not exist any more
+        * because the driver does not exist any more
         */
        if (delete_files) {
                delete_driver_files(session_info, info);
@@ -3494,7 +3494,7 @@ static bool construct_notify_jobs_info(struct messaging_context *msg_ctx,
                                                      struct spoolss_Notify,
                                                      info->count + 1);
                if (info->notifies == NULL) {
-                       DEBUG(2,("construct_notify_jobs_info: failed to enlarg buffer info->data!\n"));
+                       DEBUG(2,("construct_notify_jobs_info: failed to enlarge buffer info->data!\n"));
                        return false;
                }
 
@@ -5796,7 +5796,7 @@ static WERROR construct_printer_driver_info_level(TALLOC_CTX *mem_ctx,
        }
 
        /* these are allocated on mem_ctx and not tmp_ctx because they are
-        * the 'return value' and need to utlive this call */
+        * the 'return value' and need to outlive this call */
        switch (level) {
        case 1:
                result = fill_printer_driver_info1(mem_ctx, &r->info1, driver, servername);
@@ -8255,7 +8255,7 @@ static WERROR fill_port_2(TALLOC_CTX *mem_ctx,
 
 
 /****************************************************************************
- wrapper around the enumer ports command
+ wrapper around the enum ports command
 ****************************************************************************/
 
 static WERROR enumports_hook(TALLOC_CTX *ctx, int *count, char ***lines)
@@ -8732,7 +8732,7 @@ WERROR _spoolss_AddPrinterDriverEx(struct pipes_struct *p,
        }
 
        /*
-        * I think this is where he DrvUpgradePrinter() hook would be
+        * I think this is where the DrvUpgradePrinter() hook would be
         * be called in a driver's interface DLL on a Windows NT 4.0/2k
         * server.  Right now, we just need to send ourselves a message
         * to update each printer bound to this driver.   --jerry
@@ -9313,7 +9313,7 @@ WERROR _spoolss_SetForm(struct pipes_struct *p,
        if ((session_info->unix_token->uid != sec_initial_uid()) &&
             !security_token_has_privilege(session_info->security_token,
                                           SEC_PRIV_PRINT_OPERATOR)) {
-               DEBUG(2,("_spoolss_Setform: denied by insufficient permissions.\n"));
+               DEBUG(2,("_spoolss_SetForm: denied by insufficient permissions.\n"));
                return WERR_ACCESS_DENIED;
        }
 
@@ -10119,7 +10119,7 @@ WERROR _spoolss_SetPrinterDataEx(struct pipes_struct *p,
 
        /*
         * Access check : NT returns "access denied" if you make a
-        * SetPrinterData call without the necessary privildge.
+        * SetPrinterData call without the necessary privilege.
         * we were originally returning OK if nothing changed
         * which made Win2k issue **a lot** of SetPrinterData
         * when connecting to a printer  --jerry