]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:printing: Fix code spelling
authorAndreas Schneider <asn@samba.org>
Thu, 13 Jul 2023 07:21:37 +0000 (09:21 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 19 Jul 2023 09:58:37 +0000 (09:58 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
source3/printing/lpq_parse.c
source3/printing/nt_printing.c
source3/printing/nt_printing_ads.c
source3/printing/print_iprint.c
source3/printing/printing.c

index 335bc7f4e75b8c599bd67f512f5c403836cfbf97..835140216f015cb88c9a97c98c464ebf38556f88 100644 (file)
@@ -340,8 +340,8 @@ parse lpq on an aix system
 
 Queue   Dev   Status    Job Files              User         PP %   Blks  Cp Rnk
 ------- ----- --------- --- ------------------ ---------- ---- -- ----- --- ---
-lazer   lazer READY
-lazer   lazer RUNNING   537 6297doc.A          kvintus@IE    0 10  2445   1   1
+laser   laser READY
+laser   laser RUNNING   537 6297doc.A          kvintus@IE    0 10  2445   1   1
               QUEUED    538 C.ps               root@IEDVB           124   1   2
               QUEUED    539 E.ps               root@IEDVB            28   1   3
               QUEUED    540 L.ps               root@IEDVB           172   1   4
index 4b4d12f25d55af868c45b3d8e1a8825acbe8496b..7907fb4b22969aec32a606ef5c0dbbbb1fd86718 100644 (file)
@@ -596,7 +596,7 @@ static int handle_ne_file(files_struct *fsp,
                        }
 
                        /*
-                        * Potential match data crosses buf boundry,
+                        * Potential match data crosses buf boundary,
                         * move it to beginning of buf, and fill the
                         * buf with as much as it will hold.
                         */
@@ -1161,7 +1161,7 @@ static uint32_t get_correct_cversion(const struct auth_session_info *session_inf
        /*
         * This is a Microsoft'ism. See references in MSDN to VER_FILEVERSION
         * for more details. Version in this case is not just the version of the
-        * file, but the version in the sense of kernal mode (2) vs. user mode
+        * file, but the version in the sense of kernel mode (2) vs. user mode
         * (3) drivers. Other bits of the version fields are the version info.
         * JRR 010716
         */
@@ -1277,7 +1277,7 @@ static WERROR clean_up_driver_struct_level(TALLOC_CTX *mem_ctx,
         * we can get .\driver.dll
         * or worse c:\windows\system\driver.dll !
         */
-       /* using an intermediate string to not have overlaping memcpy()'s */
+       /* using an intermediate string to not have overlapping memcpy()'s */
 
        strip_driver_path(mem_ctx, *driver_path);
        strip_driver_path(mem_ctx, *data_file);
@@ -1809,7 +1809,7 @@ bool printer_driver_in_use(TALLOC_CTX *mem_ctx,
                /* now check the error code */
 
                if ( W_ERROR_IS_OK(werr) ) {
-                       /* it's ok to remove the driver, we have other architctures left */
+                       /* it's ok to remove the driver, we have other architectures left */
                        in_use = false;
                        talloc_free(driver);
                }
@@ -2192,7 +2192,7 @@ bool delete_driver_files(const struct auth_session_info *session_info,
 
 /*
        A printer and a printer driver are 2 different things.
-       NT manages them separatelly, Samba does the same.
+       NT manages them separately, Samba does the same.
        Why ? Simply because it's easier and it makes sense !
 
        Now explanation: You have 3 printers behind your samba server,
index 0056786ad49556a58c20ac8bd329bdea62a48f2f..4d5991e6dc7756b4e62a27ae7f3217a87244a98b 100644 (file)
@@ -464,7 +464,7 @@ static WERROR nt_printer_info_to_mods(TALLOC_CTX *ctx,
        }
        ads_mod_str(ctx, mods, SPOOL_REG_VERSIONNUMBER, info_str);
 
-       /* empty strings in the mods list result in an attrubute error */
+       /* empty strings in the mods list result in an attribute error */
        if (strlen(info2->drivername) != 0)
                ads_mod_str(ctx, mods, SPOOL_REG_DRIVERNAME, info2->drivername);
        if (strlen(info2->location) != 0)
index 84a7aabf38f408c85c77f0428b5d096f14df4829..6600d954dedd691a6c144495b6d3bfadbe286173 100644 (file)
@@ -1008,7 +1008,7 @@ static int iprint_queue_get(const char *sharename,
 
        *q = NULL;
 
-       /* HACK ALERT!!!  The porblem with support the 'printer name'
+       /* HACK ALERT!!!  The problem with support the 'printer name'
           option is that we key the tdb off the sharename.  So we will
           overload the lpq_command string to pass in the printername
           (which is basically what we do for non-cups printers ... using
@@ -1056,7 +1056,7 @@ static int iprint_queue_get(const char *sharename,
        /*
        * For Linux iPrint servers from OES SP1 on, the iPrint server
        * uses Unix time for job start times unless it detects the iPrint
-       * client in an http User-Agent header.  (This was done to accomodate
+       * client in an http User-Agent header.  (This was done to accommodate
        * CUPS broken behavior.  According to RFC 2911, section 4.3.14, job
        * start times are supposed to be relative to how long the printer has
        * been up.)  Since libcups doesn't allow us to set that header before
index f7911244398e177088b2d76f12e041b244ace565..f29775eed637c989c200ba9794ff2f34640be99d 100644 (file)
@@ -1433,7 +1433,7 @@ static void print_queue_update_internal(struct tevent_context *ev,
 
 /****************************************************************************
  Update the internal database from the system print queue for a queue.
- obtain a lock on the print queue before proceeding (needed when mutiple
+ obtain a lock on the print queue before proceeding (needed when multiple
  smbd processes maytry to update the lpq cache concurrently).
 ****************************************************************************/
 
@@ -1705,7 +1705,7 @@ bool print_notify_register_pid(int snum)
 
        /* if (snum == -1), then the change notify request was
           on a print server handle and we need to register on
-          all print queus */
+          all print queues */
 
        if (snum == -1)
        {
@@ -1887,7 +1887,7 @@ bool print_job_exists(const char* sharename, uint32_t jobid)
 }
 
 /****************************************************************************
- Return the device mode asigned to a specific print job.
+ Return the device mode assigned to a specific print job.
  Only valid for the process doing the spooling and when the job
  has not been spooled.
 ****************************************************************************/
@@ -1997,7 +1997,7 @@ static bool print_job_delete1(struct tevent_context *ev,
 
        /* Hrm - we need to be able to cope with deleting a job before it
           has reached the spooler.  Just mark it as LPQ_DELETING and
-          let the print_queue_update() code rmeove the record */
+          let the print_queue_update() code remove the record */
 
 
        if (pjob->sysjob == -1) {