1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

s3:printing: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:
Andreas Schneider 2023-07-13 09:21:37 +02:00 committed by Andreas Schneider
parent d8dd743f0b
commit 73abbd1465
5 changed files with 14 additions and 14 deletions

View 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

View 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,

View 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)

View 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

View 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) {