]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix DNS-SD sharing issues (Issue #1217)
authorMichael R Sweet <msweet@msweet.org>
Mon, 14 Apr 2025 14:40:41 +0000 (10:40 -0400)
committerMichael R Sweet <msweet@msweet.org>
Mon, 14 Apr 2025 14:40:41 +0000 (10:40 -0400)
- Follow mDNS hostname changes unless explicitly configured with the
  DNSSDHostName directive.
- Add DNSSDComputerName directive to control the "@ computer name" suffix on
  share names.
- Update registrations whenever we detect a conflict or a hostname change.
- Add RWLock for Printers array so that we can iterate over the printers list
  in the registration callback (separate thread).
- Update cupsd.conf man page.

CHANGES.md
doc/help/man-cupsd.conf.html
man/cupsd.conf.5
scheduler/classes.c
scheduler/conf.c
scheduler/dirsvc.c
scheduler/dirsvc.h
scheduler/ipp.c
scheduler/libcupsmime.exp [deleted file]
scheduler/printers.c
scheduler/printers.h

index 702d9f6365e7b52cb6869ee5c22d01466b0f0a97..cc60b6b9be766fff9e406c47634ae4b78af0c2f4 100644 (file)
@@ -36,6 +36,9 @@ Changes in CUPS v2.5b1 (YYYY-MM-DD)
 - Added new `cupsGetClock` API.
 - Added new `cupsParseOptions2` API with "end" argument.
 - Added `cups-oauth` and `cups-x509` utilities (Issue #1184)
+- Added `DNSSDComputerName` directive to "cupsd.conf" and updated cupsd to
+  correctly update the mDNS hostname only if the `DNSSDHostName` directive is
+  not specified (Issue #1217)
 - Updated documentation (Issue #984, Issue #1086, Issue #1182)
 - Updated translations (Issue #1146, Issue #1161, Issue #1164)
 - Updated the configure script to default to installing to /usr/local.
index 65b4b9371d951107b0020fd9f40c05da9db8e23e..09bab9937231b4d4bbb299a712c88e3105d4a560 100644 (file)
@@ -48,9 +48,8 @@ The default is &quot;No&quot;.
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>BrowseDNSSDSubTypes</strong><em>_subtype[,...]</em>
 <br>
-Specifies a list of Bonjour sub-types to advertise for each shared printer.
-For example, &quot;BrowseDNSSDSubTypes _cups,_print&quot; will tell network clients that both CUPS sharing and IPP Everywhere are supported.
-The default is &quot;_cups&quot; which is necessary for printer sharing to work between systems using CUPS.
+Specifies the DNS-SD sub-types to advertise, separated by commas.
+The default is &quot;_cups,_print,_universal&quot; to advertise shared printers to CUPS, IPP Everywhere, and AirPrint clients, respectively.
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>BrowseLocalProtocols all</strong><br>
 </p>
@@ -58,7 +57,7 @@ The default is &quot;_cups&quot; which is necessary for printer sharing to work
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>BrowseLocalProtocols none</strong><br>
 Specifies which protocols to use for local printer sharing.
-The default is &quot;dnssd&quot; on systems that support Bonjour and &quot;none&quot; otherwise.
+The default is &quot;dnssd&quot; on systems that support DNS-SD and &quot;none&quot; otherwise.
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>BrowseWebIF Yes</strong><br>
 </p>
@@ -87,7 +86,7 @@ The default is &quot;Basic&quot;.
 Specifies whether encryption will be used for authenticated requests.
 The default is &quot;Required&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>DefaultLanguage </strong><em>locale</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>DefaultLanguage </strong><em>LOCALE</em><br>
 Specifies the default language to use for text and web content.
 The default is &quot;en&quot;.
 </p>
@@ -95,13 +94,13 @@ The default is &quot;en&quot;.
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>DefaultPaperSize None</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>DefaultPaperSize </strong><em>sizename</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>DefaultPaperSize </strong><em>SIZENAME</em><br>
 Specifies the default paper size for new print queues. &quot;Auto&quot; uses a locale-specific default, while &quot;None&quot; specifies there is no default paper size.
 Specific size names are typically &quot;Letter&quot; or &quot;A4&quot;.
 The default is &quot;Auto&quot;.
 Note: The default paper size must use a size name from the PPD file and not a PWG self-describing media size name.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>DefaultPolicy </strong><em>policy-name</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>DefaultPolicy </strong><em>POLICY-NAME</em><br>
 Specifies the default access policy to use.
 The default access policy is &quot;default&quot;.
 </p>
@@ -111,15 +110,21 @@ The default access policy is &quot;default&quot;.
 Specifies whether local printers are shared by default.
 The default is &quot;Yes&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>DirtyCleanInterval </strong><em>seconds</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>DirtyCleanInterval </strong><em>SECONDS</em><br>
 Specifies the delay for updating of configuration and state files.
 A value of 0 causes the update to happen as soon as possible, typically within a few milliseconds.
 The default value is &quot;30&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>DNSSDHostName</strong><em>hostname.example.com</em>
-<br>
-Specifies the fully-qualified domain name for the server that is used for Bonjour sharing.
-The default is typically the server's &quot;.local&quot; hostname.
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>DNSSDComputerName none</strong><br>
+</p>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>DNSSDComputerName &quot;</strong><em>COMPUTER-NAME</em>&quot;<br>
+Specifies the human readable computer name that is appended to any shared printer names, for example &quot;My Printer @ Bob's Computer&quot;.
+The default is OS-specific and follows any system naming changes.
+The value &quot;none&quot; disables the &quot;@ Computer Name&quot; suffix added to shared printer names.
+</p>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>DNSSDHostName </strong><em>HOSTNAME</em><br>
+Specifies the fully-qualified domain name for the server that is used for DNS-SD sharing.
+The default is typically the server's &quot;.local&quot; hostname and is updated whenever that hostname changes.
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>ErrorPolicy abort-job</strong><br>
 Specifies that a failed print job should be aborted (discarded) unless otherwise specified for the printer.
@@ -133,7 +138,7 @@ Specifies that a failed print job should be retried at a later time unless other
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>ErrorPolicy stop-printer</strong><br>
 Specifies that a failed print job should stop the printer unless otherwise specified for the printer. The 'stop-printer' error policy is the default.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>FilterLimit </strong><em>limit</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>FilterLimit </strong><em>LIMIT</em><br>
 Specifies the maximum cost of filters that are run concurrently, which can be used to minimize disk, memory, and CPU resource problems.
 A limit of 0 disables filter limiting.
 An average print to a non-PostScript printer needs a filter limit of about 200.
@@ -141,7 +146,7 @@ A PostScript printer needs about half that (100).
 Setting the limit below these thresholds will effectively limit the scheduler to printing a single job at any time.
 The default limit is &quot;0&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>FilterNice </strong><em>nice-value</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>FilterNice </strong><em>NICE-VALUE</em><br>
 Specifies the scheduling priority (
 <strong>nice</strong>(8)
 
@@ -163,7 +168,7 @@ Double lookups also prevent clients with unregistered addresses from connecting
 The default is &quot;Off&quot; to avoid the potential server performance problems with hostname lookups.
 Only set this option to &quot;On&quot; or &quot;Double&quot; if absolutely required.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>IdleExitTimeout </strong><em>seconds</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>IdleExitTimeout </strong><em>SECONDS</em><br>
 Specifies the length of time to wait before shutting down due to inactivity.
 The default is &quot;60&quot; seconds.
 Note: Only applicable when
@@ -171,16 +176,16 @@ Note: Only applicable when
 
 is run on-demand (e.g., with <strong>-l</strong>).
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>JobKillDelay </strong><em>seconds</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>JobKillDelay </strong><em>SECONDS</em><br>
 Specifies the number of seconds to wait before killing the filters and backend associated with a canceled or held job.
 The default is &quot;300&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>JobRetryInterval </strong><em>seconds</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>JobRetryInterval </strong><em>SECONDS</em><br>
 Specifies the interval between retries of jobs in seconds.
 This is typically used for fax queues but can also be used with normal print queues whose error policy is &quot;retry-job&quot;.
 The default is &quot;300&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>JobRetryLimit </strong><em>count</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>JobRetryLimit </strong><em>COUNT</em><br>
 Specifies the number of retries that are done for jobs.
 This is typically used for fax queues but can also be used with normal print queues whose error policy is &quot;retry-job&quot;.
 The default is &quot;5&quot;.
@@ -191,138 +196,140 @@ The default is &quot;5&quot;.
 Specifies whether to support HTTP keep-alive connections.
 The default is &quot;Yes&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>&lt;Limit </strong><em>operation </em>...<strong>> </strong>... <strong>&lt;/Limit></strong><br>
-Specifies the IPP operations that are being limited inside a Policy section. IPP operation names are listed below in the section &quot;IPP OPERATION NAMES&quot;.
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>&lt;Limit </strong><em>OPERATION </em>...<strong>> </strong>... <strong>&lt;/Limit></strong><br>
+Specifies the IPP operations that are being limited inside a Policy section.
+IPP operation names are listed below in the section &quot;IPP OPERATION NAMES&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>&lt;Limit </strong><em>method </em>...<strong>> </strong>... <strong>&lt;/Limit></strong><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>&lt;Limit </strong><em>METHOD </em>...<strong>> </strong>... <strong>&lt;/Limit></strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>&lt;LimitExcept </strong><em>method </em>...<strong>> </strong>... <strong>&lt;/LimitExcept></strong><br>
-Specifies the HTTP methods that are being limited inside a Location section. HTTP method names are listed below in the section &quot;HTTP METHOD NAMES&quot;.
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>&lt;LimitExcept </strong><em>METHOD </em>...<strong>> </strong>... <strong>&lt;/LimitExcept></strong><br>
+Specifies the HTTP methods that are being limited inside a Location section.
+HTTP method names are listed below in the section &quot;HTTP METHOD NAMES&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LimitRequestBody </strong><em>size</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LimitRequestBody </strong><em>SIZE</em><br>
 Specifies the maximum size of print files, IPP requests, and HTML form data.
 The default is &quot;0&quot; which disables the limit check.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Listen </strong><em>ipv4-address</em><strong>:</strong><em>port</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Listen </strong><em>IPV4-ADDRESS</em><strong>:</strong><em>PORT</em><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Listen [</strong><em>ipv6-address</em><strong>]:</strong><em>port</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Listen [</strong><em>IPV6-ADDRESS</em><strong>]:</strong><em>PORT</em><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Listen *:</strong><em>port</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Listen *:</strong><em>PORT</em><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Listen </strong><em>/path/to/domain/socket</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Listen </strong><em>/PATH/TO/DOMAIN/SOCKET</em><br>
 Listens to the specified address and port or domain socket path for connections.
 Multiple Listen directives can be provided to listen on multiple addresses.
 The Listen directive is similar to the Port directive but allows you to restrict access to specific interfaces or networks.
-Note: &quot;Listen *:<em>port</em>&quot; and &quot;Port <em>port</em>&quot; effectively listen on all IP addresses, so you cannot combine them with Listen directives for explicit IPv4 or IPv6 addresses on the same port.
+Note: &quot;Listen *:<em>PORT</em>&quot; and &quot;Port <em>PORT</em>&quot; effectively listen on all IP addresses, so you cannot combine them with Listen directives for explicit IPv4 or IPv6 addresses on the same port.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>&lt;Location </strong><em>/path</em><strong>> </strong>... <strong>&lt;/Location></strong><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>&lt;Location </strong><em>/PATH</em><strong>> </strong>... <strong>&lt;/Location></strong><br>
 Specifies access control for the named location.
 Paths are documented below in the section &quot;LOCATION PATHS&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogDebugHistory </strong><em>number</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogDebugHistory </strong><em>NUMBER</em><br>
 Specifies the number of debugging messages that are retained for logging if an error occurs in a print job. Debug messages are logged regardless of the LogLevel setting.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel </strong>none<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel none</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel </strong>emerg<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel emerg</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel </strong>alert<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel alert</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel </strong>crit<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel crit</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel </strong>error<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel error</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel </strong>warn<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel warn</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel </strong>notice<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel notice</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel </strong>info<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel info</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel </strong>debug<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel debug</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel </strong>debug2<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogLevel debug2</strong><br>
 Specifies the level of logging for the ErrorLog file.
 The value &quot;none&quot; stops all logging while &quot;debug2&quot; logs everything.
 The default is &quot;warn&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogTimeFormat </strong>standard<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogTimeFormat standard</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogTimeFormat </strong>usecs<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>LogTimeFormat usecs</strong><br>
 Specifies the format of the date and time in the log files.
 The value &quot;standard&quot; is the default and logs whole seconds while &quot;usecs&quot; logs microseconds.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxClients </strong><em>number</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxClients </strong><em>NUMBER</em><br>
 Specifies the maximum number of simultaneous clients that are allowed by the scheduler.
 The default is &quot;100&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxClientsPerHost </strong><em>number</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxClientsPerHost </strong><em>NUMBER</em><br>
 Specifies the maximum number of simultaneous clients that are allowed from a
 single address.
 The default is the MaxClients value.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxCopies </strong><em>number</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxCopies </strong><em>NUMBER</em><br>
 Specifies the maximum number of copies that a user can print of each job.
 The default is &quot;9999&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxHoldTime </strong><em>seconds</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxHoldTime </strong><em>SECONDS</em><br>
 Specifies the maximum time a job may remain in the &quot;indefinite&quot; hold state before it is canceled.
 The default is &quot;0&quot; which disables cancellation of held jobs.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxJobs </strong><em>number</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxJobs </strong><em>NUMBER</em><br>
 Specifies the maximum number of simultaneous jobs that are allowed.
 Set to &quot;0&quot; to allow an unlimited number of jobs.
 The default is &quot;500&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxJobsPerPrinter </strong><em>number</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxJobsPerPrinter </strong><em>NUMBER</em><br>
 Specifies the maximum number of simultaneous jobs that are allowed per printer.
 The default is &quot;0&quot; which allows up to MaxJobs jobs per printer.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxJobsPerUser </strong><em>number</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxJobsPerUser </strong><em>NUMBER</em><br>
 Specifies the maximum number of simultaneous jobs that are allowed per user.
 The default is &quot;0&quot; which allows up to MaxJobs jobs per user.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxJobTime </strong><em>seconds</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxJobTime </strong><em>SECONDS</em><br>
 Specifies the maximum time a job may take to print before it is canceled.
 Set to &quot;0&quot; to disable cancellation of &quot;stuck&quot; jobs.
 The default is &quot;10800&quot; (3 hours).
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxLogSize </strong><em>size</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxLogSize </strong><em>SIZE</em><br>
 Specifies the maximum size of the log files before they are rotated.
 The value &quot;0&quot; disables log rotation.
 The default is &quot;1048576&quot; (1MB).
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxSubscriptions </strong><em>number</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxSubscriptions </strong><em>NUMBER</em><br>
 Specifies the maximum number of simultaneous event subscriptions that are allowed.
 Set to &quot;0&quot; to allow an unlimited number of subscriptions.
 The default is &quot;100&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxSubscriptionsPerJob </strong><em>number</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxSubscriptionsPerJob </strong><em>NUMBER</em><br>
 Specifies the maximum number of simultaneous event subscriptions that are allowed per job.
 The default is &quot;0&quot; which allows up to MaxSubscriptions subscriptions per job.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxSubscriptionsPerPrinter </strong><em>number</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxSubscriptionsPerPrinter </strong><em>NUMBER</em><br>
 Specifies the maximum number of simultaneous event subscriptions that are allowed per printer.
 The default is &quot;0&quot; which allows up to MaxSubscriptions subscriptions per printer.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxSubscriptionsPerUser </strong><em>number</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MaxSubscriptionsPerUser </strong><em>NUMBER</em><br>
 Specifies the maximum number of simultaneous event subscriptions that are allowed per user.
 The default is &quot;0&quot; which allows up to MaxSubscriptions subscriptions per user.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MultipleOperationTimeout </strong><em>seconds</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>MultipleOperationTimeout </strong><em>SECONDS</em><br>
 Specifies the maximum amount of time to allow between files in a multiple file print job.
 The default is &quot;900&quot; (15 minutes).
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>&lt;Policy </strong><em>name</em><strong>> </strong>... <strong>&lt;/Policy></strong><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>&lt;Policy </strong><em>NAME</em><strong>> </strong>... <strong>&lt;/Policy></strong><br>
 Specifies access control for the named policy.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Port </strong><em>number</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Port </strong><em>NUMBER</em><br>
 Listens to the specified port number for connections.
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>PreserveJobFiles Yes</strong><br>
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>PreserveJobFiles No</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>PreserveJobFiles </strong><em>seconds</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>PreserveJobFiles </strong><em>SECONDS</em><br>
 Specifies whether job files (documents) are preserved after a job is printed.
 If a numeric value is specified, job files are preserved for the indicated number of seconds after printing.
 The default is &quot;86400&quot; (preserve 1 day).
@@ -331,34 +338,34 @@ The default is &quot;86400&quot; (preserve 1 day).
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>PreserveJobHistory No</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>PreserveJobHistory </strong><em>seconds</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>PreserveJobHistory </strong><em>SECONDS</em><br>
 Specifies whether the job history is preserved after a job is printed.
 If a numeric value is specified, the job history is preserved for the indicated number of seconds after printing.
 If &quot;Yes&quot;, the job history is preserved until the MaxJobs limit is reached.
 The default is &quot;Yes&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>ReadyPaperSizes </strong><em>sizename[,...]</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>ReadyPaperSizes </strong><em>SIZENAME[,...]</em><br>
 Specifies a list of potential paper sizes that are reported as &quot;ready&quot; (loaded).
 The actual list will only contain sizes that each printer supports.
 The default is &quot;Letter,Legal,Tabloid,4x6,Env10&quot; when the default paper size is &quot;Letter&quot; and &quot;A3,A4,A5,A6,EnvDL&quot; otherwise.
 Note: Paper sizes must use the size names from the PPD file and not PWG self-describing media size names.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>ReloadTimeout </strong><em>seconds</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>ReloadTimeout </strong><em>SECONDS</em><br>
 Specifies the amount of time to wait for job completion before restarting the scheduler.
 The default is &quot;30&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>ServerAdmin </strong><em>email-address</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>ServerAdmin </strong><em>EMAIL-ADDRESS</em><br>
 Specifies the email address of the server administrator.
 The default value is &quot;root@ServerName&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>ServerAlias </strong><em>hostname </em>[ ... <em>hostname </em>]<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>ServerAlias </strong><em>HOSTNAME [... HOSTNAME]</em>]<br>
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>ServerAlias *</strong><br>
 The ServerAlias directive is used for HTTP Host header validation when clients connect to the scheduler from external interfaces.
 Using the special name &quot;*&quot; can expose your system to known browser-based DNS rebinding attacks, even when accessing sites through a firewall.
 If the auto-discovery of alternate names does not work, we recommend listing each alternate name with a ServerAlias directive instead of using &quot;*&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>ServerName </strong><em>hostname</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>ServerName </strong><em>HOSTNAME</em><br>
 Specifies the fully-qualified hostname of the server.
 The default is the value reported by the
 <strong>hostname</strong>(1)
@@ -388,32 +395,32 @@ Specifies what information is included in the Server header of HTTP responses.
 &quot;Full&quot; reports &quot;CUPS/major.minor.path (osname osversion; architecture) IPP/2.1&quot;.
 The default is &quot;Minimal&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>SSLListen </strong><em>ipv4-address</em><strong>:</strong><em>port</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>SSLListen </strong><em>IPV4-ADDRESS</em><strong>:</strong><em>PORT</em><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>SSLListen [</strong><em>ipv6-address</em><strong>]:</strong><em>port</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>SSLListen [</strong><em>IPV6-ADDRESS</em><strong>]:</strong><em>PORT</em><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>SSLListen *:</strong><em>port</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>SSLListen *:</strong><em>PORT</em><br>
 Listens on the specified address and port for encrypted connections.
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"></p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>SSLOptions </strong>[<em>AllowDH</em>] [<em>AllowRC4</em>] [<em>AllowSSL3</em>] [<em>DenyCBC</em>] [<em>DenyTLS1.0</em>] [<em>MaxTLS1.0</em>] [<em>MaxTLS1.1</em>] [<em>MaxTLS1.2</em>] [<em>MaxTLS1.3</em>] [<em>MinTLS1.0</em>] [<em>MinTLS1.1</em>] [<em>MinTLS1.2</em>] [<em>MinTLS1.3</em>] [<em>NoSystem</em>]<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>SSLOptions </strong><em>OPTIONS</em><br>
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>SSLOptions None</strong><br>
 Sets encryption options (only in /etc/cups/client.conf).
 By default, CUPS only supports encryption using TLS v1.0 or higher using known secure cipher suites.
 Security is reduced when <em>Allow</em> options are used.
 Security is enhanced when <em>Deny</em> options are used.
-The <em>AllowDH</em> option enables cipher suites using plain Diffie-Hellman key negotiation (not supported on systems using GNU TLS).
-The <em>AllowRC4</em> option enables the 128-bit RC4 cipher suites, which are required for some older clients.
-The <em>AllowSSL3</em> option enables SSL v3.0, which is required for some older clients that do not support TLS v1.0.
-The <em>DenyCBC</em> option disables all CBC cipher suites.
-The <em>DenyTLS1.0</em> option disables TLS v1.0 support - this sets the minimum protocol version to TLS v1.1.
-The <em>MinTLS</em> options set the minimum TLS version to support.
-The <em>MaxTLS</em> options set the maximum TLS version to support.
-The <em>NoSystem</em> option disables applying system cryptographic policy.
+The <strong>AllowDH</strong> option enables cipher suites using plain Diffie-Hellman key negotiation (not supported on systems using GNU TLS).
+The <strong>AllowRC4</strong> option enables the 128-bit RC4 cipher suites, which are required for some older clients.
+The <strong>AllowSSL3</strong> option enables SSL v3.0, which is required for some older clients that do not support TLS v1.0.
+The <strong>DenyCBC</strong> option disables all CBC cipher suites.
+The <strong>DenyTLS1.0</strong> option disables TLS v1.0 support - this sets the minimum protocol version to TLS v1.1.
+The <strong>MinTLS1.0</strong>, <strong>MinTLS1.1</strong>, <strong>MinTLS1.2</strong>, and <strong>MinTLS1.3</strong> options set the minimum TLS version to support.
+The <strong>MaxTLS1.0</strong>, <strong>MaxTLS1.1</strong>, <strong>MaxTLS1.2</strong>, and <strong>MaxTLS1.3</strong> options set the maximum TLS version to support.
+The <strong>NoSystem</strong> option disables applying system cryptographic policy.
 Not all operating systems support TLS 1.3 at this time.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>SSLPort </strong><em>port</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>SSLPort </strong><em>PORT</em><br>
 Listens on the specified port for encrypted connections.
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>StrictConformance Yes</strong><br>
@@ -422,13 +429,13 @@ Listens on the specified port for encrypted connections.
 Specifies whether the scheduler requires clients to strictly adhere to the IPP specifications.
 The default is &quot;No&quot;.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Timeout </strong><em>seconds</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Timeout </strong><em>SECONDS</em><br>
 Specifies the HTTP request timeout.
 The default is &quot;900&quot; (15 minutes).
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WebInterface yes</strong><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WebInterface Yes</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WebInterface no</strong><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WebInterface No</strong><br>
 Specifies whether the web interface is enabled.
 The default is &quot;No&quot;.
 </p>
@@ -437,19 +444,19 @@ The default is &quot;No&quot;.
 <a href="cupsd.html"><strong>cupsd</strong>(8):</a>
 
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">GET<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>GET</strong><br>
 Used by a client to download icons and other printer resources and to access the CUPS web interface.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">HEAD<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>HEAD</strong><br>
 Used by a client to get the type, size, and modification date of resources.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">OPTIONS<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>OPTIONS</strong><br>
 Used by a client to establish a secure (SSL/TLS) connection.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">POST<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>POST</strong><br>
 Used by a client to submit IPP requests and HTML forms from the CUPS web interface.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">PUT<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>PUT</strong><br>
 Used by a client to upload configuration files.
 </p>
     <h3 id="cupsd.conf-5.description.ipp-operation-names">Ipp Operation Names</h3>
@@ -457,136 +464,139 @@ Used by a client to upload configuration files.
 <a href="cupsd.html"><strong>cupsd</strong>(8):</a>
 
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">CUPS-Accept-Jobs<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>CUPS-Accept-Jobs</strong><br>
 Allows a printer to accept new jobs.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">CUPS-Add-Modify-Class<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>CUPS-Add-Modify-Class</strong><br>
 Adds or modifies a printer class.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">CUPS-Add-Modify-Printer<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>CUPS-Add-Modify-Printer</strong><br>
 Adds or modifies a printer.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">CUPS-Authenticate-Job<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>CUPS-Authenticate-Job</strong><br>
 Releases a job that is held for authentication.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">CUPS-Delete-Class<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>CUPS-Create-Local-Printer</strong><br>
+Creates a local, temporary IPP Everywhere printer.
+</p>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>CUPS-Delete-Class</strong><br>
 Deletes a printer class.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">CUPS-Delete-Printer<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>CUPS-Delete-Printer</strong><br>
 Deletes a printer.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">CUPS-Get-Classes<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>CUPS-Get-Classes</strong><br>
 Gets a list of printer classes.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">CUPS-Get-Default<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>CUPS-Get-Default</strong><br>
 Gets the server default printer or printer class.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">CUPS-Get-Devices<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>CUPS-Get-Devices</strong><br>
 Gets a list of devices that are currently available.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">CUPS-Get-Document<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>CUPS-Get-Document</strong><br>
 Gets a document file for a job.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">CUPS-Get-PPD<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>CUPS-Get-PPD</strong><br>
 Gets a PPD file.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">CUPS-Get-PPDs<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>CUPS-Get-PPDs</strong><br>
 Gets a list of installed PPD files.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">CUPS-Get-Printers<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>CUPS-Get-Printers</strong><br>
 Gets a list of printers.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">CUPS-Move-Job<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>CUPS-Move-Job</strong><br>
 Moves a job.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">CUPS-Reject-Jobs<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>CUPS-Reject-Jobs</strong><br>
 Prevents a printer from accepting new jobs.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">CUPS-Set-Default<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>CUPS-Set-Default</strong><br>
 Sets the server default printer or printer class.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Cancel-Job<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Cancel-Job</strong><br>
 Cancels a job.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Cancel-Jobs<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Cancel-Jobs</strong><br>
 Cancels one or more jobs.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Cancel-My-Jobs<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Cancel-My-Jobs</strong><br>
 Cancels one or more jobs creates by a user.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Cancel-Subscription<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Cancel-Subscription</strong><br>
 Cancels a subscription.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Close-Job<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Close-Job</strong><br>
 Closes a job that is waiting for more documents.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Create-Job<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Create-Job</strong><br>
 Creates a new job with no documents.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Create-Job-Subscriptions<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Create-Job-Subscriptions</strong><br>
 Creates a subscription for job events.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Create-Printer-Subscriptions<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Create-Printer-Subscriptions</strong><br>
 Creates a subscription for printer events.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Get-Job-Attributes<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Get-Job-Attributes</strong><br>
 Gets information about a job.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Get-Jobs<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Get-Jobs</strong><br>
 Gets a list of jobs.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Get-Notifications<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Get-Notifications</strong><br>
 Gets a list of event notifications for a subscription.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Get-Printer-Attributes<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Get-Printer-Attributes</strong><br>
 Gets information about a printer or printer class.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Get-Subscription-Attributes<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Get-Subscription-Attributes</strong><br>
 Gets information about a subscription.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Get-Subscriptions<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Get-Subscriptions</strong><br>
 Gets a list of subscriptions.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Hold-Job<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Hold-Job</strong><br>
 Holds a job from printing.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Hold-New-Jobs<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Hold-New-Jobs</strong><br>
 Holds all new jobs from printing.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Pause-Printer<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Pause-Printer</strong><br>
 Stops processing of jobs by a printer or printer class.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Pause-Printer-After-Current-Job<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Pause-Printer-After-Current-Job</strong><br>
 Stops processing of jobs by a printer or printer class after the current job is finished.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Print-Job<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Print-Job</strong><br>
 Creates a new job with a single document.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Purge-Jobs<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Purge-Jobs</strong><br>
 Cancels one or more jobs and deletes the job history.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Release-Held-New-Jobs<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Release-Held-New-Jobs</strong><br>
 Allows previously held jobs to print.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Release-Job<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Release-Job</strong><br>
 Allows a job to print.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Renew-Subscription<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Renew-Subscription</strong><br>
 Renews a subscription.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Restart-Job<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Restart-Job</strong><br>
 Reprints a job, if possible.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Send-Document<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Send-Document</strong><br>
 Adds a document to a job.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Set-Job-Attributes<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Set-Job-Attributes</strong><br>
 Changes job information.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Set-Printer-Attributes<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Set-Printer-Attributes</strong><br>
 Changes printer or printer class information.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">Validate-Job<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Validate-Job</strong><br>
 Validates options for a new job.
 </p>
     <h3 id="cupsd.conf-5.description.location-paths">Location Paths</h3>
@@ -594,40 +604,40 @@ Validates options for a new job.
 <a href="cupsd.html"><strong>cupsd</strong>(8):</a>
 
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">/<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>/</strong><br>
 The path for all get operations (get-printers, get-jobs, etc.)
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">/admin<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>/admin</strong><br>
 The path for all administration operations (add-printer, delete-printer, start-printer, etc.)
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">/admin/conf<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>/admin/conf</strong><br>
 The path for access to the CUPS configuration files (cupsd.conf, client.conf, etc.)
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">/admin/log<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>/admin/log</strong><br>
 The path for access to the CUPS log files (access_log, error_log, page_log)
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">/classes<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>/classes</strong><br>
 The path for all printer classes
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">/classes/name<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>/classes/name</strong><br>
 The resource for the named printer class
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">/jobs<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>/jobs</strong><br>
 The path for all jobs (hold-job, release-job, etc.)
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">/jobs/id<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>/jobs/id</strong><br>
 The path for the specified job
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">/printers<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>/printers</strong><br>
 The path for all printers
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">/printers/name<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>/printers/name</strong><br>
 The path for the named printer
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">/printers/name.png<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>/printers/name.png</strong><br>
 The icon file path for the named printer
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;">/printers/name.ppd<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>/printers/name.ppd</strong><br>
 The PPD file path for the named printer
 </p>
     <h3 id="cupsd.conf-5.description.directives-valid-within-location-and-limit-sections">Directives Valid Within Location And Limit Sections</h3>
@@ -637,21 +647,21 @@ The PPD file path for the named printer
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Allow none</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Allow </strong><em>host.domain.com</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Allow </strong><em>HOSTNAME</em><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Allow *.</strong><em>domain.com</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Allow *.</strong><em>DOMAIN</em><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Allow </strong><em>ipv4-address</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Allow </strong><em>IPV4-ADDRESS</em><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Allow </strong><em>ipv4-address</em><strong>/</strong><em>netmask</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Allow </strong><em>IPV4-ADDRESS</em><strong>/</strong><em>NETMASK</em><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Allow </strong><em>ipv4-address</em><strong>/</strong><em>mm</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Allow </strong><em>IPV4-ADDRESS</em><strong>/</strong><em>MM</em><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Allow [</strong><em>ipv6-address</em><strong>]</strong><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Allow [</strong><em>IPV6-ADDRESS</em><strong>]</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Allow [</strong><em>ipv6-address</em><strong>]/</strong><em>mm</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Allow [</strong><em>IPV6-ADDRESS</em><strong>]/</strong><em>MM</em><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Allow @IF(</strong><em>name</em><strong>)</strong><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Allow @IF(</strong><em>NAME</em><strong>)</strong><br>
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Allow @LOCAL</strong><br>
 Allows access from the named hosts, domains, addresses, or interfaces.
@@ -671,21 +681,21 @@ The value &quot;Default&quot; corresponds to the DefaultAuthType value.
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Deny none</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Deny </strong><em>host.domain.com</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Deny </strong><em>HOSTNAME</em><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Deny *.</strong><em>domain.com</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Deny *.</strong><em>DOMAIN</em><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Deny </strong><em>ipv4-address</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Deny </strong><em>IPV4-ADDRESS</em><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Deny </strong><em>ipv4-address</em><strong>/</strong><em>netmask</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Deny </strong><em>IPV4-ADDRESS</em><strong>/</strong><em>NETMASK</em><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Deny </strong><em>ipv4-address</em><strong>/</strong><em>mm</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Deny </strong><em>IPV4-ADDRESS</em><strong>/</strong><em>MM</em><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Deny [</strong><em>ipv6-address</em><strong>]</strong><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Deny [</strong><em>IPV6-ADDRESS</em><strong>]</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Deny [</strong><em>ipv6-address</em><strong>]/</strong><em>mm</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Deny [</strong><em>IPV6-ADDRESS</em><strong>]/</strong><em>MM</em><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Deny @IF(</strong><em>name</em><strong>)</strong><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Deny @IF(</strong><em>NAME</em><strong>)</strong><br>
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Deny @LOCAL</strong><br>
 Denies access from the named hosts, domains, addresses, or interfaces.
@@ -707,10 +717,10 @@ Specifies that access is denied by default. Allow lines are then processed follo
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Order deny,allow</strong><br>
 Specifies that access is allowed by default. Deny lines are then processed followed by Allow lines to determine whether a client may access a particular resource.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Require group </strong><em>group-name </em>[ <em>group-name </em>... ]<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Require group </strong><em>GROUP-NAME [... GROUP-NAME]</em><br>
 Specifies that an authenticated user must be a member of one of the named groups.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Require user {</strong><em>user-name</em>|<strong>@</strong><em>group-name</em>} ...<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Require user {</strong><em>USER-NAME</em>|<strong>@</strong><em>GROUP-NAME</em>} ...<br>
 Specifies that an authenticated user must match one of the named users or be a member of one of the named groups.
 The group name &quot;@SYSTEM&quot; corresponds to the list of groups defined by the SystemGroup directive in the
 <a href="cups-files.conf.html"><strong>cups-files.conf</strong>(5)</a>
@@ -736,9 +746,9 @@ For example, this can be used to require authentication only for remote accesses
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>JobPrivateAccess default</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>JobPrivateAccess </strong>{<em>user</em>|<strong>@</strong><em>group</em>|<strong>@ACL</strong>|<strong>@OWNER</strong>|<strong>@SYSTEM</strong>} ...<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>JobPrivateAccess </strong>{<em>USER</em>|<strong>@</strong><em>GROUP</em>|<strong>@ACL</strong>|<strong>@OWNER</strong>|<strong>@SYSTEM</strong>} ...<br>
 Specifies an access list for a job's private values.
-The &quot;default&quot; access list is &quot;@OWNER @SYSTEM&quot;.
+The default access list is &quot;@OWNER @SYSTEM&quot;.
 &quot;@ACL&quot; maps to the printer's requesting-user-name-allowed or requesting-user-name-denied values.
 &quot;@OWNER&quot; maps to the job's owner.
 &quot;@SYSTEM&quot; maps to the groups listed for the SystemGroup directive in the
@@ -752,17 +762,17 @@ file.
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>JobPrivateValues none</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>JobPrivateValues </strong><em>attribute-name </em>[ ... <em>attribute-name </em>]<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>JobPrivateValues </strong><em>ATTRIBUTE-NAME [... ATTRIBUTE-NAME]</em><br>
 Specifies the list of job values to make private.
-The &quot;default&quot; values are &quot;job-name&quot;, &quot;job-originating-host-name&quot;, &quot;job-originating-user-name&quot;, and &quot;phone&quot;.
+The default values are &quot;job-name&quot;, &quot;job-originating-host-name&quot;, &quot;job-originating-user-name&quot;, and &quot;phone&quot;.
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>SubscriptionPrivateAccess all</strong><br>
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>SubscriptionPrivateAccess default</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>SubscriptionPrivateAccess </strong>{<em>user</em>|<strong>@</strong><em>group</em>|<strong>@ACL</strong>|<strong>@OWNER</strong>|<strong>@SYSTEM</strong>} ...<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>SubscriptionPrivateAccess </strong>{<em>USER</em>|<strong>@</strong><em>GROUP</em>|<strong>@ACL</strong>|<strong>@OWNER</strong>|<strong>@SYSTEM</strong>} ...<br>
 Specifies an access list for a subscription's private values.
-The &quot;default&quot; access list is &quot;@OWNER @SYSTEM&quot;.
+The default access list is &quot;@OWNER @SYSTEM&quot;.
 &quot;@ACL&quot; maps to the printer's requesting-user-name-allowed or requesting-user-name-denied values.
 &quot;@OWNER&quot; maps to the job's owner.
 &quot;@SYSTEM&quot; maps to the groups listed for the SystemGroup directive in the
@@ -776,9 +786,9 @@ file.
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>SubscriptionPrivateValues none</strong><br>
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>SubscriptionPrivateValues </strong><em>attribute-name </em>[ ... <em>attribute-name </em>]<br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>SubscriptionPrivateValues </strong><em>ATTRIBUTE-NAME [... ATTRIBUTE-NAME]</em><br>
 Specifies the list of subscription values to make private.
-The &quot;default&quot; values are &quot;notify-events&quot;, &quot;notify-pull-method&quot;, &quot;notify-recipient-uri&quot;, &quot;notify-subscriber-user-name&quot;, and &quot;notify-user-data&quot;.
+The default values are &quot;notify-events&quot;, &quot;notify-pull-method&quot;, &quot;notify-recipient-uri&quot;, &quot;notify-subscriber-user-name&quot;, and &quot;notify-user-data&quot;.
 </p>
     <h3 id="cupsd.conf-5.description.deprecated-directives">Deprecated Directives</h3>
 <p>The following directives are deprecated and will be removed in a future release of CUPS:
@@ -786,7 +796,7 @@ The &quot;default&quot; values are &quot;notify-events&quot;, &quot;notify-pull-
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>AuthType Negotiate</strong><br>
 Specifies Kerberos authentication is required.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Classification </strong><em>banner</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>Classification </strong><em>BANNER</em><br>
 <br>
 Specifies the security classification of the server.
 Any valid banner name can be used, including &quot;classified&quot;, &quot;confidential&quot;, &quot;secret&quot;, &quot;topsecret&quot;, and &quot;unclassified&quot;, or the banner can be omitted to disable secure printing functions.
@@ -802,11 +812,11 @@ The default is &quot;No&quot;.
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>DefaultAuthType Negotiate</strong><br>
 Specifies that Kerberos authentication is required by default.
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>GSSServiceName </strong><em>name</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>GSSServiceName </strong><em>NAME</em><br>
 Specifies the service name when using Kerberos authentication.
 The default service name is &quot;http.&quot;
 </p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>PageLogFormat </strong><em>format-string</em><br>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>PageLogFormat </strong><em>FORMAT-STRING</em><br>
 Specifies the format of PageLog lines.
 Sequences beginning with percent (%) characters are replaced with the corresponding information, while all other characters are copied literally.
 The following percent sequences are recognized:
index 4e8317095638715153b3261aa525c26ced4d1343..1a3a32515ac0c7effa85d367ee28cee55cceb1d5 100644 (file)
@@ -8,7 +8,7 @@
 .\" Licensed under Apache License v2.0.  See the file "LICENSE" for more
 .\" information.
 .\"
-.TH cupsd.conf 5 "CUPS" "2025-03-12" "OpenPrinting"
+.TH cupsd.conf 5 "CUPS" "2025-04-14" "OpenPrinting"
 .SH NAME
 cupsd.conf \- server configuration file for cups
 .SH DESCRIPTION
@@ -49,9 +49,8 @@ The default is "No".
 .\"#BrowseDNSSDSubTypes
 .TP 5
 .BI BrowseDNSSDSubTypes _subtype[,...]
-Specifies a list of Bonjour sub-types to advertise for each shared printer.
-For example, "BrowseDNSSDSubTypes _cups,_print" will tell network clients that both CUPS sharing and IPP Everywhere are supported.
-The default is "_cups" which is necessary for printer sharing to work between systems using CUPS.
+Specifies the DNS-SD sub-types to advertise, separated by commas.
+The default is "_cups,_print,_universal" to advertise shared printers to CUPS, IPP Everywhere, and AirPrint clients, respectively.
 .\"#BrowseLocalProtocols
 .TP 5
 \fBBrowseLocalProtocols all\fR
@@ -60,7 +59,7 @@ The default is "_cups" which is necessary for printer sharing to work between sy
 .TP 5
 \fBBrowseLocalProtocols none\fR
 Specifies which protocols to use for local printer sharing.
-The default is "dnssd" on systems that support Bonjour and "none" otherwise.
+The default is "dnssd" on systems that support DNS-SD and "none" otherwise.
 .\"#BrowseWebIF
 .TP 5
 \fBBrowseWebIF Yes\fR
@@ -94,7 +93,7 @@ Specifies whether encryption will be used for authenticated requests.
 The default is "Required".
 .\"#DefaultLanguage
 .TP 5
-\fBDefaultLanguage \fIlocale\fR
+\fBDefaultLanguage \fILOCALE\fR
 Specifies the default language to use for text and web content.
 The default is "en".
 .\"#DefaultPaperSize
@@ -103,14 +102,14 @@ The default is "en".
 .TP 5
 \fBDefaultPaperSize None\fR
 .TP 5
-\fBDefaultPaperSize \fIsizename\fR
+\fBDefaultPaperSize \fISIZENAME\fR
 Specifies the default paper size for new print queues. "Auto" uses a locale-specific default, while "None" specifies there is no default paper size.
 Specific size names are typically "Letter" or "A4".
 The default is "Auto".
 Note: The default paper size must use a size name from the PPD file and not a PWG self-describing media size name.
 .\"#DefaultPolicy
 .TP 5
-\fBDefaultPolicy \fIpolicy-name\fR
+\fBDefaultPolicy \fIPOLICY-NAME\fR
 Specifies the default access policy to use.
 The default access policy is "default".
 .\"#DefaultShared
@@ -122,15 +121,23 @@ Specifies whether local printers are shared by default.
 The default is "Yes".
 .\"#DirtyCleanInterval
 .TP 5
-\fBDirtyCleanInterval \fIseconds\fR
+\fBDirtyCleanInterval \fISECONDS\fR
 Specifies the delay for updating of configuration and state files.
 A value of 0 causes the update to happen as soon as possible, typically within a few milliseconds.
 The default value is "30".
+.\"#DNSSDComputerName
+.TP 5
+\fBDNSSDComputerName none\fR
+.TP 5
+\fBDNSSDComputerName "\fICOMPUTER-NAME\fR"
+Specifies the human readable computer name that is appended to any shared printer names, for example "My Printer @ Bob's Computer".
+The default is OS-specific and follows any system naming changes.
+The value "none" disables the "@ Computer Name" suffix added to shared printer names.
 .\"#DNSSDHostName
 .TP 5
-.BI DNSSDHostName hostname.example.com
-Specifies the fully-qualified domain name for the server that is used for Bonjour sharing.
-The default is typically the server's ".local" hostname.
+\fBDNSSDHostName \fIHOSTNAME\fR
+Specifies the fully-qualified domain name for the server that is used for DNS-SD sharing.
+The default is typically the server's ".local" hostname and is updated whenever that hostname changes.
 .\"#ErrorPolicy
 .TP 5
 \fBErrorPolicy abort-job\fR
@@ -146,7 +153,7 @@ Specifies that a failed print job should be retried at a later time unless other
 Specifies that a failed print job should stop the printer unless otherwise specified for the printer. The 'stop-printer' error policy is the default.
 .\"#FilterLimit
 .TP 5
-\fBFilterLimit \fIlimit\fR
+\fBFilterLimit \fILIMIT\fR
 Specifies the maximum cost of filters that are run concurrently, which can be used to minimize disk, memory, and CPU resource problems.
 A limit of 0 disables filter limiting.
 An average print to a non-PostScript printer needs a filter limit of about 200.
@@ -155,7 +162,7 @@ Setting the limit below these thresholds will effectively limit the scheduler to
 The default limit is "0".
 .\"#FilterNice
 .TP 5
-\fBFilterNice \fInice-value\fR
+\fBFilterNice \fINICE-VALUE\fR
 Specifies the scheduling priority (
 .BR nice (8)
 value) of filters that are run to print a job.
@@ -177,7 +184,7 @@ The default is "Off" to avoid the potential server performance problems with hos
 Only set this option to "On" or "Double" if absolutely required.
 .\"#IdleExitTimeout
 .TP 5
-\fBIdleExitTimeout \fIseconds\fR
+\fBIdleExitTimeout \fISECONDS\fR
 Specifies the length of time to wait before shutting down due to inactivity.
 The default is "60" seconds.
 Note: Only applicable when
@@ -185,18 +192,18 @@ Note: Only applicable when
 is run on-demand (e.g., with \fB-l\fR).
 .\"#JobKillDelay
 .TP 5
-\fBJobKillDelay \fIseconds\fR
+\fBJobKillDelay \fISECONDS\fR
 Specifies the number of seconds to wait before killing the filters and backend associated with a canceled or held job.
 The default is "300".
 .\"#JobRetryInterval
 .TP 5
-\fBJobRetryInterval \fIseconds\fR
+\fBJobRetryInterval \fISECONDS\fR
 Specifies the interval between retries of jobs in seconds.
 This is typically used for fax queues but can also be used with normal print queues whose error policy is "retry-job".
 The default is "300".
 .\"#JobRetryLimit
 .TP 5
-\fBJobRetryLimit \fIcount\fR
+\fBJobRetryLimit \fICOUNT\fR
 Specifies the number of retries that are done for jobs.
 This is typically used for fax queues but can also be used with normal print queues whose error policy is "retry-job".
 The default is "5".
@@ -209,155 +216,157 @@ Specifies whether to support HTTP keep-alive connections.
 The default is "Yes".
 .\"#LimitIPP
 .TP 5
-\fB<Limit \fIoperation \fR...\fB> \fR... \fB</Limit>\fR
-Specifies the IPP operations that are being limited inside a Policy section. IPP operation names are listed below in the section "IPP OPERATION NAMES".
+\fB<Limit \fIOPERATION \fR...\fB> \fR... \fB</Limit>\fR
+Specifies the IPP operations that are being limited inside a Policy section.
+IPP operation names are listed below in the section "IPP OPERATION NAMES".
 .\"#Limit
 .TP 5
-\fB<Limit \fImethod \fR...\fB> \fR... \fB</Limit>\fR
+\fB<Limit \fIMETHOD \fR...\fB> \fR... \fB</Limit>\fR
 .\"#LimitExcept
 .TP 5
-\fB<LimitExcept \fImethod \fR...\fB> \fR... \fB</LimitExcept>\fR
-Specifies the HTTP methods that are being limited inside a Location section. HTTP method names are listed below in the section "HTTP METHOD NAMES".
+\fB<LimitExcept \fIMETHOD \fR...\fB> \fR... \fB</LimitExcept>\fR
+Specifies the HTTP methods that are being limited inside a Location section.
+HTTP method names are listed below in the section "HTTP METHOD NAMES".
 .\"#LimitRequestBody
 .TP 5
-\fBLimitRequestBody \fIsize\fR
+\fBLimitRequestBody \fISIZE\fR
 Specifies the maximum size of print files, IPP requests, and HTML form data.
 The default is "0" which disables the limit check.
 .\"#Listen
 .TP 5
-\fBListen \fIipv4-address\fB:\fIport\fR
+\fBListen \fIIPV4-ADDRESS\fB:\fIPORT\fR
 .TP 5
-\fBListen [\fIipv6-address\fB]:\fIport\fR
+\fBListen [\fIIPV6-ADDRESS\fB]:\fIPORT\fR
 .TP 5
-\fBListen *:\fIport\fR
+\fBListen *:\fIPORT\fR
 .TP 5
-\fBListen \fI/path/to/domain/socket\fR
+\fBListen \fI/PATH/TO/DOMAIN/SOCKET\fR
 Listens to the specified address and port or domain socket path for connections.
 Multiple Listen directives can be provided to listen on multiple addresses.
 The Listen directive is similar to the Port directive but allows you to restrict access to specific interfaces or networks.
-Note: "Listen *:\fIport\fR" and "Port \fIport\fR" effectively listen on all IP addresses, so you cannot combine them with Listen directives for explicit IPv4 or IPv6 addresses on the same port.
+Note: "Listen *:\fIPORT\fR" and "Port \fIPORT\fR" effectively listen on all IP addresses, so you cannot combine them with Listen directives for explicit IPv4 or IPv6 addresses on the same port.
 .\"#Location
 .TP 5
-\fB<Location \fI/path\fB> \fR... \fB</Location>\fR
+\fB<Location \fI/PATH\fB> \fR... \fB</Location>\fR
 Specifies access control for the named location.
 Paths are documented below in the section "LOCATION PATHS".
 .\"#LogDebugHistory
 .TP 5
-\fBLogDebugHistory \fInumber\fR
+\fBLogDebugHistory \fINUMBER\fR
 Specifies the number of debugging messages that are retained for logging if an error occurs in a print job. Debug messages are logged regardless of the LogLevel setting.
 .\"#LogLevel
 .TP 5
-\fBLogLevel \fRnone
+\fBLogLevel none\fR
 .TP 5
-\fBLogLevel \fRemerg
+\fBLogLevel emerg\fR
 .TP 5
-\fBLogLevel \fRalert
+\fBLogLevel alert\fR
 .TP 5
-\fBLogLevel \fRcrit
+\fBLogLevel crit\fR
 .TP 5
-\fBLogLevel \fRerror
+\fBLogLevel error\fR
 .TP 5
-\fBLogLevel \fRwarn
+\fBLogLevel warn\fR
 .TP 5
-\fBLogLevel \fRnotice
+\fBLogLevel notice\fR
 .TP 5
-\fBLogLevel \fRinfo
+\fBLogLevel info\fR
 .TP 5
-\fBLogLevel \fRdebug
+\fBLogLevel debug\fR
 .TP 5
-\fBLogLevel \fRdebug2
+\fBLogLevel debug2\fR
 Specifies the level of logging for the ErrorLog file.
 The value "none" stops all logging while "debug2" logs everything.
 The default is "warn".
 .\"#LogTimeFormat
 .TP 5
-\fBLogTimeFormat \fRstandard
+\fBLogTimeFormat standard\fR
 .TP 5
-\fBLogTimeFormat \fRusecs
+\fBLogTimeFormat usecs\fR
 Specifies the format of the date and time in the log files.
 The value "standard" is the default and logs whole seconds while "usecs" logs microseconds.
 .\"#MaxClients
 .TP 5
-\fBMaxClients \fInumber\fR
+\fBMaxClients \fINUMBER\fR
 Specifies the maximum number of simultaneous clients that are allowed by the scheduler.
 The default is "100".
 .\"#MaxClientPerHost
 .TP 5
-\fBMaxClientsPerHost \fInumber\fR
+\fBMaxClientsPerHost \fINUMBER\fR
 Specifies the maximum number of simultaneous clients that are allowed from a
 single address.
 The default is the MaxClients value.
 .\"#MaxCopies
 .TP 5
-\fBMaxCopies \fInumber\fR
+\fBMaxCopies \fINUMBER\fR
 Specifies the maximum number of copies that a user can print of each job.
 The default is "9999".
 .\"#MaxHoldTime
 .TP 5
-\fBMaxHoldTime \fIseconds\fR
+\fBMaxHoldTime \fISECONDS\fR
 Specifies the maximum time a job may remain in the "indefinite" hold state before it is canceled.
 The default is "0" which disables cancellation of held jobs.
 .\"#MaxJobs
 .TP 5
-\fBMaxJobs \fInumber\fR
+\fBMaxJobs \fINUMBER\fR
 Specifies the maximum number of simultaneous jobs that are allowed.
 Set to "0" to allow an unlimited number of jobs.
 The default is "500".
 .\"#MaxJobsPerPrinter
 .TP 5
-\fBMaxJobsPerPrinter \fInumber\fR
+\fBMaxJobsPerPrinter \fINUMBER\fR
 Specifies the maximum number of simultaneous jobs that are allowed per printer.
 The default is "0" which allows up to MaxJobs jobs per printer.
 .\"#MaxJobsPerUser
 .TP 5
-\fBMaxJobsPerUser \fInumber\fR
+\fBMaxJobsPerUser \fINUMBER\fR
 Specifies the maximum number of simultaneous jobs that are allowed per user.
 The default is "0" which allows up to MaxJobs jobs per user.
 .\"#MaxJobTime
 .TP 5
-\fBMaxJobTime \fIseconds\fR
+\fBMaxJobTime \fISECONDS\fR
 Specifies the maximum time a job may take to print before it is canceled.
 Set to "0" to disable cancellation of "stuck" jobs.
 The default is "10800" (3 hours).
 .\"#MaxLogSize
 .TP 5
-\fBMaxLogSize \fIsize\fR
+\fBMaxLogSize \fISIZE\fR
 Specifies the maximum size of the log files before they are rotated.
 The value "0" disables log rotation.
 The default is "1048576" (1MB).
 .\"#MaxSubscriptions
 .TP 5
-\fBMaxSubscriptions \fInumber\fR
+\fBMaxSubscriptions \fINUMBER\fR
 Specifies the maximum number of simultaneous event subscriptions that are allowed.
 Set to "0" to allow an unlimited number of subscriptions.
 The default is "100".
 .\"#MaxSubscriptionsPerJob
 .TP 5
-\fBMaxSubscriptionsPerJob \fInumber\fR
+\fBMaxSubscriptionsPerJob \fINUMBER\fR
 Specifies the maximum number of simultaneous event subscriptions that are allowed per job.
 The default is "0" which allows up to MaxSubscriptions subscriptions per job.
 .\"#MaxSubscriptionsPerPrinter
 .TP 5
-\fBMaxSubscriptionsPerPrinter \fInumber\fR
+\fBMaxSubscriptionsPerPrinter \fINUMBER\fR
 Specifies the maximum number of simultaneous event subscriptions that are allowed per printer.
 The default is "0" which allows up to MaxSubscriptions subscriptions per printer.
 .\"#MaxSubscriptionsPerUser
 .TP 5
-\fBMaxSubscriptionsPerUser \fInumber\fR
+\fBMaxSubscriptionsPerUser \fINUMBER\fR
 Specifies the maximum number of simultaneous event subscriptions that are allowed per user.
 The default is "0" which allows up to MaxSubscriptions subscriptions per user.
 .\"#MultipleOperationTimeout
 .TP 5
-\fBMultipleOperationTimeout \fIseconds\fR
+\fBMultipleOperationTimeout \fISECONDS\fR
 Specifies the maximum amount of time to allow between files in a multiple file print job.
 The default is "900" (15 minutes).
 .\"#Policy
 .TP 5
-\fB<Policy \fIname\fB> \fR... \fB</Policy>\fR
+\fB<Policy \fINAME\fB> \fR... \fB</Policy>\fR
 Specifies access control for the named policy.
 .\"#Port
 .TP 5
-\fBPort \fInumber\fR
+\fBPort \fINUMBER\fR
 Listens to the specified port number for connections.
 .\"#PreserveJobFiles
 .TP 5
@@ -365,7 +374,7 @@ Listens to the specified port number for connections.
 .TP 5
 \fBPreserveJobFiles No\fR
 .TP 5
-\fBPreserveJobFiles \fIseconds\fR
+\fBPreserveJobFiles \fISECONDS\fR
 Specifies whether job files (documents) are preserved after a job is printed.
 If a numeric value is specified, job files are preserved for the indicated number of seconds after printing.
 The default is "86400" (preserve 1 day).
@@ -375,31 +384,31 @@ The default is "86400" (preserve 1 day).
 .TP 5
 \fBPreserveJobHistory No\fR
 .TP 5
-\fBPreserveJobHistory \fIseconds\fR
+\fBPreserveJobHistory \fISECONDS\fR
 Specifies whether the job history is preserved after a job is printed.
 If a numeric value is specified, the job history is preserved for the indicated number of seconds after printing.
 If "Yes", the job history is preserved until the MaxJobs limit is reached.
 The default is "Yes".
 .\"#ReadyPaperSizes
 .TP 5
-\fBReadyPaperSizes \fIsizename[,...]\fR
+\fBReadyPaperSizes \fISIZENAME[,...]\fR
 Specifies a list of potential paper sizes that are reported as "ready" (loaded).
 The actual list will only contain sizes that each printer supports.
 The default is "Letter,Legal,Tabloid,4x6,Env10" when the default paper size is "Letter" and "A3,A4,A5,A6,EnvDL" otherwise.
 Note: Paper sizes must use the size names from the PPD file and not PWG self-describing media size names.
 .\"#ReloadTimeout
 .TP 5
-\fBReloadTimeout \fIseconds\fR
+\fBReloadTimeout \fISECONDS\fR
 Specifies the amount of time to wait for job completion before restarting the scheduler.
 The default is "30".
 .\"#ServerAdmin
 .TP 5
-\fBServerAdmin \fIemail-address\fR
+\fBServerAdmin \fIEMAIL-ADDRESS\fR
 Specifies the email address of the server administrator.
 The default value is "root@ServerName".
 .\"#ServerAlias
 .TP 5
-\fBServerAlias \fIhostname \fR[ ... \fIhostname \fR]
+\fBServerAlias \fIHOSTNAME [... HOSTNAME]\fR]
 .TP 5
 \fBServerAlias *\fR
 The ServerAlias directive is used for HTTP Host header validation when clients connect to the scheduler from external interfaces.
@@ -407,7 +416,7 @@ Using the special name "*" can expose your system to known browser-based DNS reb
 If the auto-discovery of alternate names does not work, we recommend listing each alternate name with a ServerAlias directive instead of using "*".
 .\"#ServerName
 .TP 5
-\fBServerName \fIhostname\fR
+\fBServerName \fIHOSTNAME\fR
 Specifies the fully-qualified hostname of the server.
 The default is the value reported by the
 .BR hostname (1)
@@ -438,34 +447,34 @@ Specifies what information is included in the Server header of HTTP responses.
 The default is "Minimal".
 .\"#SSLListen
 .TP 5
-\fBSSLListen \fIipv4-address\fB:\fIport\fR
+\fBSSLListen \fIIPV4-ADDRESS\fB:\fIPORT\fR
 .TP 5
-\fBSSLListen [\fIipv6-address\fB]:\fIport\fR
+\fBSSLListen [\fIIPV6-ADDRESS\fB]:\fIPORT\fR
 .TP 5
-\fBSSLListen *:\fIport\fR
+\fBSSLListen *:\fIPORT\fR
 Listens on the specified address and port for encrypted connections.
 .\"#SSLOptions
 .TP 5
 .TP 5
-\fBSSLOptions \fR[\fIAllowDH\fR] [\fIAllowRC4\fR] [\fIAllowSSL3\fR] [\fIDenyCBC\fR] [\fIDenyTLS1.0\fR] [\fIMaxTLS1.0\fR] [\fIMaxTLS1.1\fR] [\fIMaxTLS1.2\fR] [\fIMaxTLS1.3\fR] [\fIMinTLS1.0\fR] [\fIMinTLS1.1\fR] [\fIMinTLS1.2\fR] [\fIMinTLS1.3\fR] [\fINoSystem\fR]
+\fBSSLOptions \fIOPTIONS\fR
 .TP 5
 \fBSSLOptions None\fR
 Sets encryption options (only in /etc/cups/client.conf).
 By default, CUPS only supports encryption using TLS v1.0 or higher using known secure cipher suites.
 Security is reduced when \fIAllow\fR options are used.
 Security is enhanced when \fIDeny\fR options are used.
-The \fIAllowDH\fR option enables cipher suites using plain Diffie-Hellman key negotiation (not supported on systems using GNU TLS).
-The \fIAllowRC4\fR option enables the 128-bit RC4 cipher suites, which are required for some older clients.
-The \fIAllowSSL3\fR option enables SSL v3.0, which is required for some older clients that do not support TLS v1.0.
-The \fIDenyCBC\fR option disables all CBC cipher suites.
-The \fIDenyTLS1.0\fR option disables TLS v1.0 support - this sets the minimum protocol version to TLS v1.1.
-The \fIMinTLS\fR options set the minimum TLS version to support.
-The \fIMaxTLS\fR options set the maximum TLS version to support.
-The \fINoSystem\fR option disables applying system cryptographic policy.
+The \fBAllowDH\fR option enables cipher suites using plain Diffie-Hellman key negotiation (not supported on systems using GNU TLS).
+The \fBAllowRC4\fR option enables the 128-bit RC4 cipher suites, which are required for some older clients.
+The \fBAllowSSL3\fR option enables SSL v3.0, which is required for some older clients that do not support TLS v1.0.
+The \fBDenyCBC\fR option disables all CBC cipher suites.
+The \fBDenyTLS1.0\fR option disables TLS v1.0 support - this sets the minimum protocol version to TLS v1.1.
+The \fBMinTLS1.0\fR, \fBMinTLS1.1\fR, \fBMinTLS1.2\fR, and \fBMinTLS1.3\fR options set the minimum TLS version to support.
+The \fBMaxTLS1.0\fR, \fBMaxTLS1.1\fR, \fBMaxTLS1.2\fR, and \fBMaxTLS1.3\fR options set the maximum TLS version to support.
+The \fBNoSystem\fR option disables applying system cryptographic policy.
 Not all operating systems support TLS 1.3 at this time.
 .\"#SSLPort
 .TP 5
-\fBSSLPort \fIport\fR
+\fBSSLPort \fIPORT\fR
 Listens on the specified port for encrypted connections.
 .\"#StrictConformance
 .TP 5
@@ -476,207 +485,210 @@ Specifies whether the scheduler requires clients to strictly adhere to the IPP s
 The default is "No".
 .\"#Timeout
 .TP 5
-\fBTimeout \fIseconds\fR
+\fBTimeout \fISECONDS\fR
 Specifies the HTTP request timeout.
 The default is "900" (15 minutes).
 .\"#WebInterface
 .TP 5
-\fBWebInterface yes\fR
+\fBWebInterface Yes\fR
 .TP 5
-\fBWebInterface no\fR
+\fBWebInterface No\fR
 Specifies whether the web interface is enabled.
 The default is "No".
 .SS HTTP METHOD NAMES
 The following HTTP methods are supported by
 .BR cupsd (8):
 .TP 5
-GET
+.B GET
 Used by a client to download icons and other printer resources and to access the CUPS web interface.
 .TP 5
-HEAD
+.B HEAD
 Used by a client to get the type, size, and modification date of resources.
 .TP 5
-OPTIONS
+.B OPTIONS
 Used by a client to establish a secure (SSL/TLS) connection.
 .TP 5
-POST
+.B POST
 Used by a client to submit IPP requests and HTML forms from the CUPS web interface.
 .TP 5
-PUT
+.B PUT
 Used by a client to upload configuration files.
 .SS IPP OPERATION NAMES
 The following IPP operations are supported by
 .BR cupsd (8):
 .TP 5
-CUPS\-Accept\-Jobs
+.B CUPS\-Accept\-Jobs
 Allows a printer to accept new jobs.
 .TP 5
-CUPS\-Add\-Modify\-Class
+.B CUPS\-Add\-Modify\-Class
 Adds or modifies a printer class.
 .TP 5
-CUPS\-Add\-Modify\-Printer
+.B CUPS\-Add\-Modify\-Printer
 Adds or modifies a printer.
 .TP 5
-CUPS\-Authenticate\-Job
+.B CUPS\-Authenticate\-Job
 Releases a job that is held for authentication.
 .TP 5
-CUPS\-Delete\-Class
+.B CUPS\-Create\-Local\-Printer
+Creates a local, temporary IPP Everywhere printer.
+.TP 5
+.B CUPS\-Delete\-Class
 Deletes a printer class.
 .TP 5
-CUPS\-Delete\-Printer
+.B CUPS\-Delete\-Printer
 Deletes a printer.
 .TP 5
-CUPS\-Get\-Classes
+.B CUPS\-Get\-Classes
 Gets a list of printer classes.
 .TP 5
-CUPS\-Get\-Default
+.B CUPS\-Get\-Default
 Gets the server default printer or printer class.
 .TP 5
-CUPS\-Get\-Devices
+.B CUPS\-Get\-Devices
 Gets a list of devices that are currently available.
 .TP 5
-CUPS\-Get\-Document
+.B CUPS\-Get\-Document
 Gets a document file for a job.
 .TP 5
-CUPS\-Get\-PPD
+.B CUPS\-Get\-PPD
 Gets a PPD file.
 .TP 5
-CUPS\-Get\-PPDs
+.B CUPS\-Get\-PPDs
 Gets a list of installed PPD files.
 .TP 5
-CUPS\-Get\-Printers
+.B CUPS\-Get\-Printers
 Gets a list of printers.
 .TP 5
-CUPS\-Move\-Job
+.B CUPS\-Move\-Job
 Moves a job.
 .TP 5
-CUPS\-Reject\-Jobs
+.B CUPS\-Reject\-Jobs
 Prevents a printer from accepting new jobs.
 .TP 5
-CUPS\-Set\-Default
+.B CUPS\-Set\-Default
 Sets the server default printer or printer class.
 .TP 5
-Cancel\-Job
+.B Cancel\-Job
 Cancels a job.
 .TP 5
-Cancel\-Jobs
+.B Cancel\-Jobs
 Cancels one or more jobs.
 .TP 5
-Cancel\-My\-Jobs
+.B Cancel\-My\-Jobs
 Cancels one or more jobs creates by a user.
 .TP 5
-Cancel\-Subscription
+.B Cancel\-Subscription
 Cancels a subscription.
 .TP 5
-Close\-Job
+.B Close\-Job
 Closes a job that is waiting for more documents.
 .TP 5
-Create\-Job
+.B Create\-Job
 Creates a new job with no documents.
 .TP 5
-Create\-Job\-Subscriptions
+.B Create\-Job\-Subscriptions
 Creates a subscription for job events.
 .TP 5
-Create\-Printer\-Subscriptions
+.B Create\-Printer\-Subscriptions
 Creates a subscription for printer events.
 .TP 5
-Get\-Job\-Attributes
+.B Get\-Job\-Attributes
 Gets information about a job.
 .TP 5
-Get\-Jobs
+.B Get\-Jobs
 Gets a list of jobs.
 .TP 5
-Get\-Notifications
+.B Get\-Notifications
 Gets a list of event notifications for a subscription.
 .TP 5
-Get\-Printer\-Attributes
+.B Get\-Printer\-Attributes
 Gets information about a printer or printer class.
 .TP 5
-Get\-Subscription\-Attributes
+.B Get\-Subscription\-Attributes
 Gets information about a subscription.
 .TP 5
-Get\-Subscriptions
+.B Get\-Subscriptions
 Gets a list of subscriptions.
 .TP 5
-Hold\-Job
+.B Hold\-Job
 Holds a job from printing.
 .TP 5
-Hold\-New\-Jobs
+.B Hold\-New\-Jobs
 Holds all new jobs from printing.
 .TP 5
-Pause\-Printer
+.B Pause\-Printer
 Stops processing of jobs by a printer or printer class.
 .TP 5
-Pause\-Printer\-After\-Current\-Job
+.B Pause\-Printer\-After\-Current\-Job
 Stops processing of jobs by a printer or printer class after the current job is finished.
 .TP 5
-Print\-Job
+.B Print\-Job
 Creates a new job with a single document.
 .TP 5
-Purge\-Jobs
+.B Purge\-Jobs
 Cancels one or more jobs and deletes the job history.
 .TP 5
-Release\-Held\-New\-Jobs
+.B Release\-Held\-New\-Jobs
 Allows previously held jobs to print.
 .TP 5
-Release\-Job
+.B Release\-Job
 Allows a job to print.
 .TP 5
-Renew\-Subscription
+.B Renew\-Subscription
 Renews a subscription.
 .TP 5
-Restart\-Job
+.B Restart\-Job
 Reprints a job, if possible.
 .TP 5
-Send\-Document
+.B Send\-Document
 Adds a document to a job.
 .TP 5
-Set\-Job\-Attributes
+.B Set\-Job\-Attributes
 Changes job information.
 .TP 5
-Set\-Printer\-Attributes
+.B Set\-Printer\-Attributes
 Changes printer or printer class information.
 .TP 5
-Validate\-Job
+.B Validate\-Job
 Validates options for a new job.
 .SS LOCATION PATHS
 The following paths are commonly used when configuring
 .BR cupsd (8):
 .TP 5
-/
+.B /
 The path for all get operations (get-printers, get-jobs, etc.)
 .TP 5
-/admin
+.B /admin
 The path for all administration operations (add-printer, delete-printer, start-printer, etc.)
 .TP 5
-/admin/conf
+.B /admin/conf
 The path for access to the CUPS configuration files (cupsd.conf, client.conf, etc.)
 .TP 5
-/admin/log
+.B /admin/log
 The path for access to the CUPS log files (access_log, error_log, page_log)
 .TP 5
-/classes
+.B /classes
 The path for all printer classes
 .TP 5
-/classes/name
+.B /classes/name
 The resource for the named printer class
 .TP 5
-/jobs
+.B /jobs
 The path for all jobs (hold-job, release-job, etc.)
 .TP 5
-/jobs/id
+.B /jobs/id
 The path for the specified job
 .TP 5
-/printers
+.B /printers
 The path for all printers
 .TP 5
-/printers/name
+.B /printers/name
 The path for the named printer
 .TP 5
-/printers/name.png
+.B /printers/name.png
 The icon file path for the named printer
 .TP 5
-/printers/name.ppd
+.B /printers/name.ppd
 The PPD file path for the named printer
 .SS DIRECTIVES VALID WITHIN LOCATION AND LIMIT SECTIONS
 The following directives may be placed inside Location and Limit sections in the \fBcupsd.conf\fR file:
@@ -685,21 +697,21 @@ The following directives may be placed inside Location and Limit sections in the
 .TP 5
 \fBAllow none\fR
 .TP 5
-\fBAllow \fIhost.domain.com\fR
+\fBAllow \fIHOSTNAME\fR
 .TP 5
-\fBAllow *.\fIdomain.com\fR
+\fBAllow *.\fIDOMAIN\fR
 .TP 5
-\fBAllow \fIipv4-address\fR
+\fBAllow \fIIPV4-ADDRESS\fR
 .TP 5
-\fBAllow \fIipv4-address\fB/\fInetmask\fR
+\fBAllow \fIIPV4-ADDRESS\fB/\fINETMASK\fR
 .TP 5
-\fBAllow \fIipv4-address\fB/\fImm\fR
+\fBAllow \fIIPV4-ADDRESS\fB/\fIMM\fR
 .TP 5
-\fBAllow [\fIipv6-address\fB]\fR
+\fBAllow [\fIIPV6-ADDRESS\fB]\fR
 .TP 5
-\fBAllow [\fIipv6-address\fB]/\fImm\fR
+\fBAllow [\fIIPV6-ADDRESS\fB]/\fIMM\fR
 .TP 5
-\fBAllow @IF(\fIname\fB)\fR
+\fBAllow @IF(\fINAME\fB)\fR
 .TP 5
 \fBAllow @LOCAL\fR
 Allows access from the named hosts, domains, addresses, or interfaces.
@@ -719,21 +731,21 @@ The value "Default" corresponds to the DefaultAuthType value.
 .TP 5
 \fBDeny none\fR
 .TP 5
-\fBDeny \fIhost.domain.com\fR
+\fBDeny \fIHOSTNAME\fR
 .TP 5
-\fBDeny *.\fIdomain.com\fR
+\fBDeny *.\fIDOMAIN\fR
 .TP 5
-\fBDeny \fIipv4-address\fR
+\fBDeny \fIIPV4-ADDRESS\fR
 .TP 5
-\fBDeny \fIipv4-address\fB/\fInetmask\fR
+\fBDeny \fIIPV4-ADDRESS\fB/\fINETMASK\fR
 .TP 5
-\fBDeny \fIipv4-address\fB/\fImm\fR
+\fBDeny \fIIPV4-ADDRESS\fB/\fIMM\fR
 .TP 5
-\fBDeny [\fIipv6-address\fB]\fR
+\fBDeny [\fIIPV6-ADDRESS\fB]\fR
 .TP 5
-\fBDeny [\fIipv6-address\fB]/\fImm\fR
+\fBDeny [\fIIPV6-ADDRESS\fB]/\fIMM\fR
 .TP 5
-\fBDeny @IF(\fIname\fB)\fR
+\fBDeny @IF(\fINAME\fB)\fR
 .TP 5
 \fBDeny @LOCAL\fR
 Denies access from the named hosts, domains, addresses, or interfaces.
@@ -755,10 +767,10 @@ Specifies that access is denied by default. Allow lines are then processed follo
 \fBOrder deny,allow\fR
 Specifies that access is allowed by default. Deny lines are then processed followed by Allow lines to determine whether a client may access a particular resource.
 .TP 5
-\fBRequire group \fIgroup-name \fR[ \fIgroup-name \fR... ]
+\fBRequire group \fIGROUP-NAME [... \fIGROUP-NAME]\fR
 Specifies that an authenticated user must be a member of one of the named groups.
 .TP 5
-\fBRequire user {\fIuser-name\fR|\fB@\fIgroup-name\fR} ...
+\fBRequire user {\fIUSER-NAME\fR|\fB@\fIGROUP-NAME\fR} ...
 Specifies that an authenticated user must match one of the named users or be a member of one of the named groups.
 The group name "@SYSTEM" corresponds to the list of groups defined by the SystemGroup directive in the
 .BR cups-files.conf (5)
@@ -782,9 +794,9 @@ The following directives may be placed inside Policy sections in the \fBcupsd.co
 .TP 5
 \fBJobPrivateAccess default\fR
 .TP 5
-\fBJobPrivateAccess \fR{\fIuser\fR|\fB@\fIgroup\fR|\fB@ACL\fR|\fB@OWNER\fR|\fB@SYSTEM\fR} ...
+\fBJobPrivateAccess \fR{\fIUSER\fR|\fB@\fIGROUP\fR|\fB@ACL\fR|\fB@OWNER\fR|\fB@SYSTEM\fR} ...
 Specifies an access list for a job's private values.
-The "default" access list is "@OWNER @SYSTEM".
+The default access list is "@OWNER @SYSTEM".
 "@ACL" maps to the printer's requesting-user-name-allowed or requesting-user-name-denied values.
 "@OWNER" maps to the job's owner.
 "@SYSTEM" maps to the groups listed for the SystemGroup directive in the
@@ -797,17 +809,17 @@ file.
 .TP 5
 \fBJobPrivateValues none\fR
 .TP 5
-\fBJobPrivateValues \fIattribute-name \fR[ ... \fIattribute-name \fR]
+\fBJobPrivateValues \fIATTRIBUTE-NAME [... ATTRIBUTE-NAME]\fR
 Specifies the list of job values to make private.
-The "default" values are "job-name", "job-originating-host-name", "job-originating-user-name", and "phone".
+The default values are "job-name", "job-originating-host-name", "job-originating-user-name", and "phone".
 .TP 5
 \fBSubscriptionPrivateAccess all\fR
 .TP 5
 \fBSubscriptionPrivateAccess default\fR
 .TP 5
-\fBSubscriptionPrivateAccess \fR{\fIuser\fR|\fB@\fIgroup\fR|\fB@ACL\fR|\fB@OWNER\fR|\fB@SYSTEM\fR} ...
+\fBSubscriptionPrivateAccess \fR{\fIUSER\fR|\fB@\fIGROUP\fR|\fB@ACL\fR|\fB@OWNER\fR|\fB@SYSTEM\fR} ...
 Specifies an access list for a subscription's private values.
-The "default" access list is "@OWNER @SYSTEM".
+The default access list is "@OWNER @SYSTEM".
 "@ACL" maps to the printer's requesting-user-name-allowed or requesting-user-name-denied values.
 "@OWNER" maps to the job's owner.
 "@SYSTEM" maps to the groups listed for the SystemGroup directive in the
@@ -820,9 +832,9 @@ file.
 .TP 5
 \fBSubscriptionPrivateValues none\fR
 .TP 5
-\fBSubscriptionPrivateValues \fIattribute-name \fR[ ... \fIattribute-name \fR]
+\fBSubscriptionPrivateValues \fIATTRIBUTE-NAME [... ATTRIBUTE-NAME]\fR
 Specifies the list of subscription values to make private.
-The "default" values are "notify-events", "notify-pull-method", "notify-recipient-uri", "notify-subscriber-user-name", and "notify-user-data".
+The default values are "notify-events", "notify-pull-method", "notify-recipient-uri", "notify-subscriber-user-name", and "notify-user-data".
 .SS DEPRECATED DIRECTIVES
 The following directives are deprecated and will be removed in a future release of CUPS:
 .TP 5
@@ -830,7 +842,7 @@ The following directives are deprecated and will be removed in a future release
 Specifies Kerberos authentication is required.
 .\"#Classification
 .TP 5
-\fBClassification \fIbanner\fR
+\fBClassification \fIBANNER\fR
 .br
 Specifies the security classification of the server.
 Any valid banner name can be used, including "classified", "confidential", "secret", "topsecret", and "unclassified", or the banner can be omitted to disable secure printing functions.
@@ -848,12 +860,12 @@ The default is "No".
 Specifies that Kerberos authentication is required by default.
 .\"#GSSServiceName
 .TP 5
-\fBGSSServiceName \fIname\fR
+\fBGSSServiceName \fINAME\fR
 Specifies the service name when using Kerberos authentication.
 The default service name is "http."
 .\"#PageLogFormat
 .TP 5
-\fBPageLogFormat \fIformat-string\fR
+\fBPageLogFormat \fIFORMAT-STRING\fR
 Specifies the format of PageLog lines.
 Sequences beginning with percent (%) characters are replaced with the corresponding information, while all other characters are copied literally.
 The following percent sequences are recognized:
index 511fbe83ea3a7b05a25a6eef732b0fabff26aa28..cc785612031d40615919065344714c5a02ad9cdb 100644 (file)
@@ -1,11 +1,12 @@
 /*
  * Printer class routines for the CUPS scheduler.
  *
- * Copyright © 2020-2024 by OpenPrinting.
- * Copyright 2007-2017 by Apple Inc.
- * Copyright 1997-2007 by Easy Software Products, all rights reserved.
+ * Copyright © 2020-2025 by OpenPrinting.
+ * Copyright © 2007-2017 by Apple Inc.
+ * Copyright © 1997-2007 by Easy Software Products, all rights reserved.
  *
- * Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
+ * Licensed under Apache License v2.0.  See the file "LICENSE" for more
+ * information.
  */
 
 /*
@@ -662,7 +663,8 @@ cupsdSaveAllClasses(void)
                        value[2048],    /* Value string */
                        *name;          /* Current user name */
   cupsd_printer_t      *pclass;        /* Current printer class */
-  int                  i;              /* Looping var */
+  int                  i, j,           /* Looping vars */
+                       pcount;         /* Number of printers */
   cups_option_t                *option;        /* Current option */
 
 
@@ -689,14 +691,16 @@ cupsdSaveAllClasses(void)
   * Write each local class known to the system...
   */
 
-  for (pclass = (cupsd_printer_t *)cupsArrayFirst(Printers);
-       pclass;
-       pclass = (cupsd_printer_t *)cupsArrayNext(Printers))
+  cupsRWLockRead(&PrintersLock);
+
+  for (i = 0, pcount = cupsArrayGetCount(Printers); i < pcount; i ++)
   {
    /*
     * Skip remote destinations and regular printers...
     */
 
+    pclass = (cupsd_printer_t *)cupsArrayGetElement(Printers, i);
+
     if ((pclass->type & CUPS_PTYPE_REMOTE) ||
         !(pclass->type & CUPS_PTYPE_CLASS))
       continue;
@@ -768,8 +772,8 @@ cupsdSaveAllClasses(void)
              pclass->job_sheets[1]);
     cupsFilePutConf(fp, "JobSheets", value);
 
-    for (i = 0; i < pclass->num_printers; i ++)
-      cupsFilePrintf(fp, "Printer %s\n", pclass->printers[i]->name);
+    for (j = 0; j < pclass->num_printers; j ++)
+      cupsFilePrintf(fp, "Printer %s\n", pclass->printers[j]->name);
 
     cupsFilePrintf(fp, "QuotaPeriod %d\n", pclass->quota_period);
     cupsFilePrintf(fp, "PageLimit %d\n", pclass->page_limit);
@@ -785,9 +789,9 @@ cupsdSaveAllClasses(void)
     if (pclass->error_policy)
       cupsFilePutConf(fp, "ErrorPolicy", pclass->error_policy);
 
-    for (i = pclass->num_options, option = pclass->options;
-         i > 0;
-        i --, option ++)
+    for (j = pclass->num_options, option = pclass->options;
+         j > 0;
+        j --, option ++)
     {
       snprintf(value, sizeof(value), "%s %s", option->name, option->value);
       cupsFilePutConf(fp, "Option", value);
@@ -799,5 +803,7 @@ cupsdSaveAllClasses(void)
       cupsFilePuts(fp, "</Class>\n");
   }
 
+  cupsRWUnlock(&PrintersLock);
+
   cupsdCloseCreatedConfFile(fp, filename);
 }
index a947d27f8fde8c42ad831b0dcbb8c4a02ebb9d3b..b1fa3dc04c7789debac7f09ff560600eb649b644 100644 (file)
@@ -79,6 +79,7 @@ static const cupsd_var_t      cupsd_vars[] =
   { "DefaultPolicy",           &DefaultPolicy,         CUPSD_VARTYPE_STRING },
   { "DefaultShared",           &DefaultShared,         CUPSD_VARTYPE_BOOLEAN },
   { "DirtyCleanInterval",      &DirtyCleanInterval,    CUPSD_VARTYPE_TIME },
+  { "DNSSDComputerName",       &DNSSDComputerName,     CUPSD_VARTYPE_STRING },
   { "DNSSDHostName",           &DNSSDHostName,         CUPSD_VARTYPE_STRING },
   { "ErrorPolicy",             &ErrorPolicy,           CUPSD_VARTYPE_STRING },
   { "FilterLimit",             &FilterLimit,           CUPSD_VARTYPE_INTEGER },
@@ -757,8 +758,9 @@ cupsdReadConfiguration(void)
   Browsing                 = CUPS_DEFAULT_BROWSING;
   DefaultShared            = CUPS_DEFAULT_DEFAULT_SHARED;
 
-  cupsdSetString(&DNSSDSubTypes, "_cups,_print,_universal");
+  cupsdClearString(&DNSSDComputerName);
   cupsdClearString(&DNSSDHostName);
+  cupsdSetString(&DNSSDSubTypes, "_cups,_print,_universal");
 
   cupsdSetString(&ErrorPolicy, CUPS_DEFAULT_ERROR_POLICY);
 
@@ -866,6 +868,12 @@ cupsdReadConfiguration(void)
     return (0);
   }
 
+  DNSSDComputerNameConfigured = DNSSDComputerName != NULL;
+  DNSSDHostNameConfigured     = DNSSDHostName != NULL;
+
+  if (DNSSDComputerName && (!*DNSSDComputerName || !strcmp(DNSSDComputerName, "none")))
+    cupsdClearString(&DNSSDComputerName);
+
   RunUser = getuid();
 
   cupsdLogMessage(CUPSD_LOG_INFO, "Remote access is %s.",
index 3d72d94228f1637cd4d6396661215220a64c0e28..62951f6f60a7a4e285cbd8a3a578a3e1adae07aa 100644 (file)
@@ -90,9 +90,6 @@ cupsdRegisterPrinter(cupsd_printer_t *p)/* I - Printer */
 void
 cupsdStartBrowsing(void)
 {
-  cupsd_printer_t      *p;             /* Current printer */
-
-
   if (!Browsing || !BrowseLocalProtocols)
     return;
 
@@ -112,16 +109,6 @@ cupsdStartBrowsing(void)
 
     DNSSDPort = 0;
     cupsdUpdateDNSSDName();
-
-   /*
-    * Register the individual printers
-    */
-
-    for (p = (cupsd_printer_t *)cupsArrayFirst(Printers); p; p = (cupsd_printer_t *)cupsArrayNext(Printers))
-    {
-      if (!(p->type & (CUPS_PTYPE_REMOTE | CUPS_PTYPE_SCANNER)))
-       dnssdRegisterPrinter(p);
-    }
   }
 }
 
@@ -152,7 +139,10 @@ cupsdStopBrowsing(void)
 void
 cupsdUpdateDNSSDName(void)
 {
-  char name[1024];                     /* Computer/host name */
+  char                 name[1024];     /* Computer/host name */
+  cupsd_printer_t      *p;             /* Current printer */
+  int                  i,              /* Looping var */
+                       pcount;         /* Number of printers */
 
 
  /*
@@ -182,42 +172,41 @@ cupsdUpdateDNSSDName(void)
   if (!DNSSDPort)
     return;
 
+  cupsdLogMessage(CUPSD_LOG_DEBUG, "Using port %d for DNS-SD services.", DNSSDPort);
+
  /*
   * Get the computer name...
   */
 
-  if (cupsDNSSDCopyComputerName(DNSSDContext, name, sizeof(name)) && name[0])
-    cupsdSetString(&DNSSDComputerName, name);
-
-  if (!DNSSDComputerName)
+  if (!DNSSDComputerNameConfigured)
   {
-   /*
-    * Use the ServerName instead...
-    */
-
-    cupsdLogMessage(CUPSD_LOG_DEBUG, "Using ServerName \"%s\" as computer name.", ServerName);
-    cupsdSetString(&DNSSDComputerName, ServerName);
+    if (cupsDNSSDCopyComputerName(DNSSDContext, name, sizeof(name)) && name[0])
+      cupsdSetString(&DNSSDComputerName, name);
+    else
+      cupsdSetString(&DNSSDComputerName, ServerName);
   }
 
+  if (DNSSDComputerName)
+    cupsdLogMessage(CUPSD_LOG_DEBUG, "Appending \"@ %s\" to DNS-SD shared printer names.", DNSSDComputerName);
+
  /*
   * Get the hostname...
   */
 
-  if (cupsDNSSDCopyHostName(DNSSDContext, name, sizeof(name)))
-    cupsdSetString(&DNSSDHostName, name);
-
-  if (!DNSSDHostName)
+  if (!DNSSDHostNameConfigured)
   {
-    if (strchr(ServerName, '.'))
+    if (cupsDNSSDCopyHostName(DNSSDContext, name, sizeof(name)))
+      cupsdSetString(&DNSSDHostName, name);
+    else if (strchr(ServerName, '.'))
       cupsdSetString(&DNSSDHostName, ServerName);
     else
       cupsdSetStringf(&DNSSDHostName, "%s.local", ServerName);
 
-    cupsdLogMessage(CUPSD_LOG_INFO, "Defaulting to \"DNSSDHostName %s\".", DNSSDHostName);
+    cupsdLogMessage(CUPSD_LOG_DEBUG, "DNS-SD host name is now \"%s\".", DNSSDHostName);
   }
 
  /*
-  * Then (re)register the web interface if enabled...
+  * Then (re)register the web interface if enabled and any shared printers...
   */
 
   cupsDNSSDServiceDelete(DNSSDWebIF);
@@ -236,6 +225,20 @@ cupsdUpdateDNSSDName(void)
     cupsDNSSDServiceAdd(DNSSDWebIF, "_http._tcp", /*domain*/NULL, DNSSDHostName, (uint16_t)DNSSDPort, /*num_txt*/0, /*txt*/NULL);
     cupsDNSSDServicePublish(DNSSDWebIF);
   }
+
+ /*
+  * (Re)register the individual printers
+  */
+
+  cupsRWLockRead(&PrintersLock);
+  for (i = 0, pcount = cupsArrayGetCount(Printers); i < pcount; i ++)
+  {
+    p = (cupsd_printer_t *)cupsArrayGetElement(Printers, i);
+
+    if (!(p->type & (CUPS_PTYPE_REMOTE | CUPS_PTYPE_SCANNER)))
+      dnssdRegisterPrinter(p);
+  }
+  cupsRWUnlock(&PrintersLock);
 }
 
 
@@ -425,11 +428,11 @@ dnssdRegisterCallback(
   const char   *reg_name;              // Updated service name
 
 
-  if (flags & CUPS_DNSSD_FLAGS_ERROR)
+  if ((flags & CUPS_DNSSD_FLAGS_ERROR) || !p)
     return;
 
-  if (!p)
-    return;
+  if (flags & CUPS_DNSSD_FLAGS_HOST_CHANGE)
+    cupsdUpdateDNSSDName();
 
   reg_name = cupsDNSSDServiceGetName(service);
 
index cb978cd4e5ea4d9917238ba73ba97e012a78fb37..77d8c36dcc06c034fa9d1e35b7316fc276f9bbd0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Directory services definitions for the CUPS scheduler.
  *
- * Copyright © 2020-2024 by OpenPrinting.
+ * Copyright © 2020-2025 by OpenPrinting.
  * Copyright © 2007-2017 by Apple Inc.
  * Copyright © 1997-2007 by Easy Software Products, all rights reserved.
  *
@@ -28,11 +28,15 @@ VAR int                     Browsing        VALUE(TRUE),
                        BrowseLocalProtocols
                                        VALUE(BROWSE_ALL);
                                        /* Protocols to support for local printers */
-VAR char               *DNSSDComputerName VALUE(NULL),
+VAR char               *DNSSDComputerName VALUE(NULL);
                                        /* Computer/server name */
-                       *DNSSDHostName  VALUE(NULL),
+VAR int                        DNSSDComputerNameConfigured VALUE(0);
+                                       /* Was the DNSSDComputerName value configured in cupsd.conf? */
+VAR char               *DNSSDHostName  VALUE(NULL);
                                        /* Hostname */
-                       *DNSSDSubTypes VALUE(NULL);
+VAR int                        DNSSDHostNameConfigured VALUE(0);
+                                       /* Was the DNSSDHostName value configured in cupsd.conf? */
+VAR char               *DNSSDSubTypes VALUE(NULL);
                                        /* Bonjour registration subtypes */
 VAR cups_array_t       *DNSSDAlias     VALUE(NULL);
                                        /* List of dynamic ServerAlias's */
index d330bbd8f8dea3f462f43e7e6f66f8a83f84872d..6c49fe408db5171e6f1303be374cf077be4a91fd 100644 (file)
@@ -7532,6 +7532,8 @@ get_printers(cupsd_client_t *con, /* I - Client connection */
   * OK, build a list of printers for this printer...
   */
 
+  cupsRWLockWrite(&PrintersLock); // Should be a reader lock, but we can't easily update loop logic right now
+
   if (first_printer_name)
   {
     if ((printer = cupsdFindDest(first_printer_name)) == NULL)
@@ -7581,6 +7583,8 @@ get_printers(cupsd_client_t *con, /* I - Client connection */
     }
   }
 
+  cupsRWUnlock(&PrintersLock);
+
   cupsArrayDelete(ra);
 
   con->response->request.status.status_code = IPP_STATUS_OK;
diff --git a/scheduler/libcupsmime.exp b/scheduler/libcupsmime.exp
deleted file mode 100644 (file)
index cd02a6f..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-_mimeAddFilter
-_mimeAddType
-_mimeAddTypeRule
-_mimeDelete
-_mimeDeleteFilter
-_mimeDeleteType
-_mimeFileType
-_mimeFilter
-_mimeFilter2
-_mimeFilterLookup
-_mimeFirstFilter
-_mimeFirstType
-_mimeLoad
-_mimeLoadFilters
-_mimeLoadTypes
-_mimeNew
-_mimeNextFilter
-_mimeNextType
-_mimeNumFilters
-_mimeNumTypes
-_mimeSetErrorCallback
-_mimeType
index 74595e591061f710235f374f81d732338031777e..2d5be1797bd7c25b9d68a443bf195b3c5bc393e5 100644 (file)
@@ -112,13 +112,16 @@ cupsdAddPrinter(const char *name) /* I - Name of printer */
   * Insert the printer in the printer list alphabetically...
   */
 
+  cupsRWLockWrite(&PrintersLock);
+
   if (!Printers)
     Printers = cupsArrayNew(compare_printers, NULL);
 
-  cupsdLogMessage(CUPSD_LOG_DEBUG2,
-                  "cupsdAddPrinter: Adding %s to Printers", p->name);
+  cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdAddPrinter: Adding %s to Printers", p->name);
   cupsArrayAdd(Printers, p);
 
+  cupsRWUnlock(&PrintersLock);
+
  /*
   * Return the new printer...
   */
@@ -821,11 +824,18 @@ cupsdDeleteTemporaryPrinters(int force) /* I - Force deletion instead of auto? *
 cupsd_printer_t *                      /* O - Destination in list */
 cupsdFindDest(const char *name)                /* I - Name of printer or class to find */
 {
-  cupsd_printer_t      key;            /* Search key */
+  cupsd_printer_t      key,            /* Search key */
+                       *match;         /* Match */
+
 
+  cupsRWLockRead(&PrintersLock);
 
   key.name = (char *)name;
-  return ((cupsd_printer_t *)cupsArrayFind(Printers, &key));
+  match    = (cupsd_printer_t *)cupsArrayFind(Printers, &key);
+
+  cupsRWUnlock(&PrintersLock);
+
+  return (match);
 }
 
 
@@ -860,8 +870,9 @@ cupsdLoadAllPrinters(void)
                        *value,         /* Pointer to value */
                        *valueptr;      /* Pointer into value */
   cupsd_printer_t      *p;             /* Current printer */
-  int                  found_raw = 0;          /* Flag whether raw queue is installed */
-  int                  found_driver = 0;               /* Flag whether queue with classic driver is installed */
+  int                  found_raw = 0;  /* Flag whether raw queue is installed */
+  int                  found_driver = 0;
+                                       /* Flag whether queue with classic driver is installed */
 
 
  /*
@@ -1374,8 +1385,9 @@ cupsdRenamePrinter(
   * Remove the printer from the array(s) first...
   */
 
-  cupsdLogMessage(CUPSD_LOG_DEBUG2,
-                  "cupsdRenamePrinter: Removing %s from Printers", p->name);
+  cupsRWLockWrite(&PrintersLock);
+
+  cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdRenamePrinter: Removing %s from Printers", p->name);
   cupsArrayRemove(Printers, p);
 
  /*
@@ -1411,9 +1423,10 @@ cupsdRenamePrinter(
   * Add the printer back to the printer array(s)...
   */
 
-  cupsdLogMessage(CUPSD_LOG_DEBUG2,
-                  "cupsdRenamePrinter: Adding %s to Printers", p->name);
+  cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdRenamePrinter: Adding %s to Printers", p->name);
   cupsArrayAdd(Printers, p);
+
+  cupsRWUnlock(&PrintersLock);
 }
 
 
@@ -1425,7 +1438,8 @@ cupsdRenamePrinter(
 void
 cupsdSaveAllPrinters(void)
 {
-  int                  i;              /* Looping var */
+  int                  i, j,           /* Looping vars */
+                       pcount;         /* Number of printers */
   cups_file_t          *fp;            /* printers.conf file */
   char                 filename[1024], /* printers.conf filename */
                        value[2048],    /* Value string */
@@ -1461,14 +1475,16 @@ cupsdSaveAllPrinters(void)
   * Write each local printer known to the system...
   */
 
-  for (printer = (cupsd_printer_t *)cupsArrayFirst(Printers);
-       printer;
-       printer = (cupsd_printer_t *)cupsArrayNext(Printers))
+  cupsRWLockRead(&PrintersLock);
+
+  for (i = 0, pcount = cupsArrayGetCount(Printers); i < pcount; i ++)
   {
    /*
     * Skip printer classes and temporary queues...
     */
 
+    printer = (cupsd_printer_t *)cupsArrayGetElement(Printers, i);
+
     if ((printer->type & CUPS_PTYPE_CLASS) || printer->temporary)
       continue;
 
@@ -1548,11 +1564,11 @@ cupsdSaveAllPrinters(void)
     cupsFilePrintf(fp, "StateTime %d\n", (int)printer->state_time);
     cupsFilePrintf(fp, "ConfigTime %d\n", (int)printer->config_time);
 
-    for (i = 0; i < printer->num_reasons; i ++)
-      if (strcmp(printer->reasons[i], "connecting-to-device") &&
-          strcmp(printer->reasons[i], "cups-insecure-filter-warning") &&
-          strcmp(printer->reasons[i], "cups-missing-filter-warning"))
-        cupsFilePutConf(fp, "Reason", printer->reasons[i]);
+    for (j = 0; j < printer->num_reasons; j ++)
+      if (strcmp(printer->reasons[j], "connecting-to-device") &&
+          strcmp(printer->reasons[j], "cups-insecure-filter-warning") &&
+          strcmp(printer->reasons[j], "cups-missing-filter-warning"))
+        cupsFilePutConf(fp, "Reason", printer->reasons[j]);
 
     cupsFilePrintf(fp, "Type %d\n", printer->type);
 
@@ -1584,9 +1600,9 @@ cupsdSaveAllPrinters(void)
     if (printer->error_policy)
       cupsFilePutConf(fp, "ErrorPolicy", printer->error_policy);
 
-    for (i = printer->num_options, option = printer->options;
-         i > 0;
-        i --, option ++)
+    for (j = printer->num_options, option = printer->options;
+         j > 0;
+        j --, option ++)
     {
       snprintf(value, sizeof(value), "%s %s", option->name, option->value);
       cupsFilePutConf(fp, "Option", value);
@@ -1597,14 +1613,14 @@ cupsdSaveAllPrinters(void)
     {
       snprintf(value, sizeof(value), "%s ", marker->name);
 
-      for (i = 0, ptr = value + strlen(value);
-           i < marker->num_values && ptr < (value + sizeof(value) - 1);
-          i ++)
+      for (j = 0, ptr = value + strlen(value);
+           j < marker->num_values && ptr < (value + sizeof(value) - 1);
+          j ++)
       {
-        if (i)
+        if (j)
          *ptr++ = ',';
 
-        cupsCopyString(ptr, marker->values[i].string.text, (size_t)(value + sizeof(value) - ptr));
+        cupsCopyString(ptr, marker->values[j].string.text, (size_t)(value + sizeof(value) - ptr));
         ptr += strlen(ptr);
       }
 
@@ -1617,8 +1633,8 @@ cupsdSaveAllPrinters(void)
     {
       cupsFilePrintf(fp, "Attribute %s %d", marker->name,
                      marker->values[0].integer);
-      for (i = 1; i < marker->num_values; i ++)
-        cupsFilePrintf(fp, ",%d", marker->values[i].integer);
+      for (j = 1; j < marker->num_values; j ++)
+        cupsFilePrintf(fp, ",%d", marker->values[j].integer);
       cupsFilePuts(fp, "\n");
     }
 
@@ -1627,8 +1643,8 @@ cupsdSaveAllPrinters(void)
     {
       cupsFilePrintf(fp, "Attribute %s %d", marker->name,
                      marker->values[0].integer);
-      for (i = 1; i < marker->num_values; i ++)
-        cupsFilePrintf(fp, ",%d", marker->values[i].integer);
+      for (j = 1; j < marker->num_values; j ++)
+        cupsFilePrintf(fp, ",%d", marker->values[j].integer);
       cupsFilePuts(fp, "\n");
     }
 
@@ -1637,8 +1653,8 @@ cupsdSaveAllPrinters(void)
     {
       cupsFilePrintf(fp, "Attribute %s %d", marker->name,
                      marker->values[0].integer);
-      for (i = 1; i < marker->num_values; i ++)
-        cupsFilePrintf(fp, ",%d", marker->values[i].integer);
+      for (j = 1; j < marker->num_values; j ++)
+        cupsFilePrintf(fp, ",%d", marker->values[j].integer);
       cupsFilePuts(fp, "\n");
     }
 
@@ -1656,14 +1672,14 @@ cupsdSaveAllPrinters(void)
     {
       snprintf(value, sizeof(value), "%s ", marker->name);
 
-      for (i = 0, ptr = value + strlen(value);
-           i < marker->num_values && ptr < (value + sizeof(value) - 1);
-          i ++)
+      for (j = 0, ptr = value + strlen(value);
+           j < marker->num_values && ptr < (value + sizeof(value) - 1);
+          j ++)
       {
-        if (i)
+        if (j)
          *ptr++ = ',';
 
-        cupsCopyString(ptr, marker->values[i].string.text, (size_t)(value + sizeof(value) - ptr));
+        cupsCopyString(ptr, marker->values[j].string.text, (size_t)(value + sizeof(value) - ptr));
         ptr += strlen(ptr);
       }
 
@@ -1676,14 +1692,14 @@ cupsdSaveAllPrinters(void)
     {
       snprintf(value, sizeof(value), "%s ", marker->name);
 
-      for (i = 0, ptr = value + strlen(value);
-           i < marker->num_values && ptr < (value + sizeof(value) - 1);
-          i ++)
+      for (j = 0, ptr = value + strlen(value);
+           j < marker->num_values && ptr < (value + sizeof(value) - 1);
+          j ++)
       {
-        if (i)
+        if (j)
          *ptr++ = ',';
 
-        cupsCopyString(ptr, marker->values[i].string.text, (size_t)(value + sizeof(value) - ptr));
+        cupsCopyString(ptr, marker->values[j].string.text, (size_t)(value + sizeof(value) - ptr));
         ptr += strlen(ptr);
       }
 
@@ -1701,6 +1717,8 @@ cupsdSaveAllPrinters(void)
       cupsFilePuts(fp, "</Printer>\n");
   }
 
+  cupsRWUnlock(&PrintersLock);
+
   cupsdCloseCreatedConfFile(fp, filename);
 }
 
index 360d8ac7f1fe98e923435c590999ac49092ed1d9..cd87f9990c8ac9890c2b794db273538d89d2516c 100644 (file)
@@ -1,11 +1,12 @@
 /*
  * Printer definitions for the CUPS scheduler.
  *
- * Copyright © 2020-2024 by OpenPrinting.
+ * Copyright © 2020-2025 by OpenPrinting.
  * Copyright @ 2007-2017 by Apple Inc.
  * Copyright @ 1997-2007 by Easy Software Products, all rights reserved.
  *
- * Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
+ * Licensed under Apache License v2.0.  See the file "LICENSE" for more
+ * information.
  */
 
 #include <cups/pwg-private.h>
@@ -107,6 +108,8 @@ VAR int                     NextPrinterId   VALUE(1);
                                        /* Next printer-id value */
 VAR cups_array_t       *Printers       VALUE(NULL);
                                        /* Printer list */
+VAR cups_rwlock_t      PrintersLock    VALUE(CUPS_RWLOCK_INITIALIZER);
+                                       /* Reader/writer lock for printers list */
 VAR cupsd_printer_t    *DefaultPrinter VALUE(NULL);
                                        /* Default printer */
 VAR char               *DefaultPolicy  VALUE(NULL);