summaryrefslogtreecommitdiff
path: root/meta/recipes-extended/cups
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2013-03-01 10:23:19 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-02 12:53:18 +0000
commitc3c51a5961f77d51e7f8eb1f0746d16576663bba (patch)
tree6b2463e02a387e7833e58ef8986ad1d9ab9bb490 /meta/recipes-extended/cups
parent61001cd4d8a36a980b6e6967cba6f0ea48fdaebc (diff)
downloadopenembedded-core-c3c51a5961f77d51e7f8eb1f0746d16576663bba.tar.gz
openembedded-core-c3c51a5961f77d51e7f8eb1f0746d16576663bba.tar.bz2
openembedded-core-c3c51a5961f77d51e7f8eb1f0746d16576663bba.zip
cups: remove old patch files
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-extended/cups')
-rw-r--r--meta/recipes-extended/cups/cups/cups-CVE-2011-2896.patch140
-rw-r--r--meta/recipes-extended/cups/cups/cups-CVE-2011-3170.patch54
-rw-r--r--meta/recipes-extended/cups/cups/cups-CVE-2012-5519.patch2965
3 files changed, 0 insertions, 3159 deletions
diff --git a/meta/recipes-extended/cups/cups/cups-CVE-2011-2896.patch b/meta/recipes-extended/cups/cups/cups-CVE-2011-2896.patch
deleted file mode 100644
index 7c6f75bd6c..0000000000
--- a/meta/recipes-extended/cups/cups/cups-CVE-2011-2896.patch
+++ /dev/null
@@ -1,140 +0,0 @@
-cups - CVE-2011-2896
-
-the patch come from:
-http://cups.org/strfiles/3867/str3867.patch
-
-The LZW decompressor in the LWZReadByte function in giftoppm.c
-in the David Koblas GIF decoder in PBMPLUS, as used in the
-gif_read_lzw function in filter/image-gif.c in CUPS before 1.4.7,
-the LZWReadByte function in plug-ins/common/file-gif-load.c
-in GIMP 2.6.11 and earlier, the LZWReadByte function in img/gifread.c
-in XPCE in SWI-Prolog 5.10.4 and earlier, and other products,
-does not properly handle code words that are absent from the
-decompression table when encountered, which allows remote attackers to
-trigger an infinite loop or a heap-based buffer overflow, and possibly
-execute arbitrary code, via a crafted compressed stream, a related
-issue to CVE-2006-1168 and CVE-2011-2895.
-http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-2896
-
-Integrated-by: Li Wang <li.wang@windriver.com>
----
- filter/image-gif.c | 46 ++++++++++++++++++++--------------------------
- 1 files changed, 20 insertions(+), 26 deletions(-)
-
-diff --git a/filter/image-gif.c b/filter/image-gif.c
-index 3857c21..fa9691e 100644
---- a/filter/image-gif.c
-+++ b/filter/image-gif.c
-@@ -353,7 +353,7 @@ gif_get_code(FILE *fp, /* I - File to read from */
- * Read in another buffer...
- */
-
-- if ((count = gif_get_block (fp, buf + last_byte)) <= 0)
-+ if ((count = gif_get_block(fp, buf + last_byte)) <= 0)
- {
- /*
- * Whoops, no more data!
-@@ -582,19 +582,13 @@ gif_read_lzw(FILE *fp, /* I - File to read from */
- gif_get_code(fp, 0, 1);
-
- /*
-- * Wipe the decompressor table...
-+ * Wipe the decompressor table (already mostly 0 due to the calloc above...)
- */
-
- fresh = 1;
-
-- for (i = 0; i < clear_code; i ++)
-- {
-- table[0][i] = 0;
-+ for (i = 1; i < clear_code; i ++)
- table[1][i] = i;
-- }
--
-- for (; i < 4096; i ++)
-- table[0][i] = table[1][0] = 0;
-
- sp = stack;
-
-@@ -605,29 +599,30 @@ gif_read_lzw(FILE *fp, /* I - File to read from */
- fresh = 0;
-
- do
-+ {
- firstcode = oldcode = gif_get_code(fp, code_size, 0);
-+ }
- while (firstcode == clear_code);
-
-- return (firstcode);
-+ return (firstcode & 255);
- }
- else if (!table)
- return (0);
-
- if (sp > stack)
-- return (*--sp);
-+ return ((*--sp) & 255);
-
-- while ((code = gif_get_code (fp, code_size, 0)) >= 0)
-+ while ((code = gif_get_code(fp, code_size, 0)) >= 0)
- {
- if (code == clear_code)
- {
-- for (i = 0; i < clear_code; i ++)
-- {
-- table[0][i] = 0;
-- table[1][i] = i;
-- }
-+ /*
-+ * Clear/reset the compression table...
-+ */
-
-- for (; i < 4096; i ++)
-- table[0][i] = table[1][i] = 0;
-+ memset(table, 0, 2 * sizeof(gif_table_t));
-+ for (i = 1; i < clear_code; i ++)
-+ table[1][i] = i;
-
- code_size = set_code_size + 1;
- max_code_size = 2 * clear_code;
-@@ -637,12 +632,11 @@ gif_read_lzw(FILE *fp, /* I - File to read from */
-
- firstcode = oldcode = gif_get_code(fp, code_size, 0);
-
-- return (firstcode);
-+ return (firstcode & 255);
- }
-- else if (code == end_code)
-+ else if (code == end_code || code > max_code)
- {
-- unsigned char buf[260];
--
-+ unsigned char buf[260]; /* Block buffer */
-
- if (!gif_eof)
- while (gif_get_block(fp, buf) > 0);
-@@ -652,7 +646,7 @@ gif_read_lzw(FILE *fp, /* I - File to read from */
-
- incode = code;
-
-- if (code >= max_code)
-+ if (code == max_code)
- {
- if (sp < (stack + 8192))
- *sp++ = firstcode;
-@@ -690,10 +684,10 @@ gif_read_lzw(FILE *fp, /* I - File to read from */
- oldcode = incode;
-
- if (sp > stack)
-- return (*--sp);
-+ return ((*--sp) & 255);
- }
-
-- return (code);
-+ return (code & 255);
- }
-
-
---
-1.7.0.5
-
diff --git a/meta/recipes-extended/cups/cups/cups-CVE-2011-3170.patch b/meta/recipes-extended/cups/cups/cups-CVE-2011-3170.patch
deleted file mode 100644
index fd1b95847c..0000000000
--- a/meta/recipes-extended/cups/cups/cups-CVE-2011-3170.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-cups CVE-2011-3170
-
-the patch come from:
-http://cups.org/strfiles/3914/str3914.patch
-
-The gif_read_lzw function in filter/image-gif.c in CUPS 1.4.8 and
-earlier does not properly handle the first code word in an LZW stream,
-which allows remote attackers to trigger a heap-based buffer overflow,
-and possibly execute arbitrary code, via a crafted stream, a different
-vulnerability than CVE-2011-2896.
-http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-3170
-
-Integrated-by: Li Wang <li.wang@windriver.com>
----
- filter/image-gif.c | 14 +++++++++-----
- 1 files changed, 9 insertions(+), 5 deletions(-)
-
-diff --git a/filter/image-gif.c b/filter/image-gif.c
-index 9542704..3857c21 100644
---- a/filter/image-gif.c
-+++ b/filter/image-gif.c
-@@ -654,11 +654,13 @@ gif_read_lzw(FILE *fp, /* I - File to read from */
-
- if (code >= max_code)
- {
-- *sp++ = firstcode;
-- code = oldcode;
-+ if (sp < (stack + 8192))
-+ *sp++ = firstcode;
-+
-+ code = oldcode;
- }
-
-- while (code >= clear_code)
-+ while (code >= clear_code && sp < (stack + 8192))
- {
- *sp++ = table[1][code];
- if (code == table[0][code])
-@@ -667,8 +669,10 @@ gif_read_lzw(FILE *fp, /* I - File to read from */
- code = table[0][code];
- }
-
-- *sp++ = firstcode = table[1][code];
-- code = max_code;
-+ if (sp < (stack + 8192))
-+ *sp++ = firstcode = table[1][code];
-+
-+ code = max_code;
-
- if (code < 4096)
- {
---
-1.7.0.5
-
diff --git a/meta/recipes-extended/cups/cups/cups-CVE-2012-5519.patch b/meta/recipes-extended/cups/cups/cups-CVE-2012-5519.patch
deleted file mode 100644
index 6b2887a5c9..0000000000
--- a/meta/recipes-extended/cups/cups/cups-CVE-2012-5519.patch
+++ /dev/null
@@ -1,2965 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## DP: Description: Move file, directory, user, and group configuration to a
-## DP: separate file. Also warn about directives that have moved and set
-## DP: default cups-files.conf.
-## DP:
-## DP: Author: Michael Sweet <msweet@apple.com>
-## DP: Origin: http://svn.cups.org/public/cups/branches/branch-1.6@10710
-## DP: Origin: http://svn.cups.org/public/cups/branches/branch-1.6@10713
-## DP:
-## DP: Author: Marc Deslauriers <marc.deslauriers@canonical.com>
-## DP: Author: Tim Waugh <twaugh@redhat.com>
-## DP:
-## DP: Bug-Upstream: https://www.cups.org/str.php?L4223
-## DP: Bug-Debian: http://bugs.debian.org/692791
-## DP: Bug-CVE: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-5519
-
-@DPATCH@
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/conf/Makefile cups/conf/Makefile
---- cups~/conf/Makefile 2012-12-08 00:29:09.000000000 +0100
-+++ cups/conf/Makefile 2012-12-08 00:29:10.000000000 +0100
-@@ -19,7 +19,7 @@
- # Config files...
- #
-
--KEEP = cupsd.conf snmp.conf
-+KEEP = cups-files.conf cupsd.conf snmp.conf
- REPLACE = mime.convs mime.types
-
-
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/conf/cups-files.conf.in cups/conf/cups-files.conf.in
---- cups~/conf/cups-files.conf.in 1970-01-01 01:00:00.000000000 +0100
-+++ cups/conf/cups-files.conf.in 2012-12-08 00:29:10.000000000 +0100
-@@ -0,0 +1,98 @@
-+#
-+# "$Id$"
-+#
-+# Sample file/directory/user/group configuration file for the CUPS scheduler.
-+# See "man cups-files.conf" for a complete description of this file.
-+#
-+
-+# List of events that are considered fatal errors for the scheduler...
-+#FatalErrors @CUPS_FATAL_ERRORS@
-+
-+# Default user and group for filters/backends/helper programs; this cannot be
-+# any user or group that resolves to ID 0 for security reasons...
-+#User @CUPS_USER@
-+#Group @CUPS_GROUP@
-+
-+# Administrator user group, used to match @SYSTEM in cupsd.conf policy rules...
-+SystemGroup @CUPS_SYSTEM_GROUPS@
-+@CUPS_SYSTEM_AUTHKEY@
-+
-+# User that is substituted for unauthenticated (remote) root accesses...
-+#RemoteRoot remroot
-+
-+# Do we allow file: device URIs other than to /dev/null?
-+#FileDevice No
-+
-+# Permissions for configuration and log files...
-+#ConfigFilePerm @CUPS_CONFIG_FILE_PERM@
-+#LogFilePerm @CUPS_LOG_FILE_PERM@
-+
-+# Location of the file logging all access to the scheduler; may be the name
-+# "syslog". If not an absolute path, the value of ServerRoot is used as the
-+# root directory. Also see the "AccessLogLevel" directive in cupsd.conf.
-+AccessLog @CUPS_LOGDIR@/access_log
-+
-+# Location of cache files used by the scheduler...
-+#CacheDir @CUPS_CACHEDIR@
-+
-+# Location of data files used by the scheduler...
-+#DataDir @CUPS_DATADIR@
-+
-+# Location of the static web content served by the scheduler...
-+#DocumentRoot @CUPS_DOCROOT@
-+
-+# Location of the file logging all messages produced by the scheduler and any
-+# helper programs; may be the name "syslog". If not an absolute path, the value
-+# of ServerRoot is used as the root directory. Also see the "LogLevel"
-+# directive in cupsd.conf.
-+ErrorLog @CUPS_LOGDIR@/error_log
-+
-+# Location of fonts used by older print filters...
-+#FontPath @CUPS_FONTPATH@
-+
-+# Location of LPD configuration
-+#LPDConfigFile @CUPS_DEFAULT_LPD_CONFIG_FILE@
-+
-+# Location of the file logging all pages printed by the scheduler and any
-+# helper programs; may be the name "syslog". If not an absolute path, the value
-+# of ServerRoot is used as the root directory. Also see the "PageLogFormat"
-+# directive in cupsd.conf.
-+PageLog @CUPS_LOGDIR@/page_log
-+
-+# Location of the file listing all of the local printers...
-+#Printcap @CUPS_DEFAULT_PRINTCAP@
-+
-+# Format of the Printcap file...
-+#PrintcapFormat bsd
-+#PrintcapFormat plist
-+#PrintcapFormat solaris
-+
-+# Location of all spool files...
-+#RequestRoot @CUPS_REQUESTS@
-+
-+# Location of helper programs...
-+#ServerBin @CUPS_SERVERBIN@
-+
-+# SSL/TLS certificate for the scheduler...
-+#ServerCertificate @CUPS_SERVERCERT@
-+
-+# SSL/TLS private key for the scheduler...
-+#ServerKey @CUPS_SERVERKEY@
-+
-+# Location of other configuration files...
-+#ServerRoot @CUPS_SERVERROOT@
-+
-+# Location of Samba configuration file...
-+#SMBConfigFile @CUPS_DEFAULT_SMB_CONFIG_FILE@
-+
-+# Location of scheduler state files...
-+#StateDir @CUPS_STATEDIR@
-+
-+# Location of scheduler/helper temporary files. This directory is emptied on
-+# scheduler startup and cannot be one of the standard (public) temporary
-+# directory locations for security reasons...
-+#TempDir @CUPS_REQUESTS@/tmp
-+
-+#
-+# End of "$Id$".
-+#
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/conf/cupsd.conf.in cups/conf/cupsd.conf.in
---- cups~/conf/cupsd.conf.in 2012-12-08 00:29:09.000000000 +0100
-+++ cups/conf/cupsd.conf.in 2012-12-08 00:29:10.000000000 +0100
-@@ -13,10 +13,6 @@
- # LogLevel debug2 gets usable now
- MaxLogSize 0
-
--# Administrator user group...
--SystemGroup @CUPS_SYSTEM_GROUPS@
--@CUPS_SYSTEM_AUTHKEY@
--
- # Only listen for connections from the local machine.
- Listen localhost:@DEFAULT_IPP_PORT@
- @CUPS_LISTEN_DOMAINSOCKET@
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/config-scripts/cups-defaults.m4 cups/config-scripts/cups-defaults.m4
---- cups~/config-scripts/cups-defaults.m4 2012-12-07 13:00:47.000000000 +0100
-+++ cups/config-scripts/cups-defaults.m4 2012-12-08 00:29:10.000000000 +0100
-@@ -353,6 +353,7 @@
- fi
-
- AC_DEFINE_UNQUOTED(CUPS_DEFAULT_LPD_CONFIG_FILE, "$CUPS_DEFAULT_LPD_CONFIG_FILE")
-+AC_SUBST(CUPS_DEFAULT_LPD_CONFIG_FILE)
-
- dnl Default SMB config file...
- AC_ARG_WITH(smbconfigfile, [ --with-smbconfigfile set default SMBConfigFile URI],
-@@ -374,6 +375,7 @@
- fi
-
- AC_DEFINE_UNQUOTED(CUPS_DEFAULT_SMB_CONFIG_FILE, "$CUPS_DEFAULT_SMB_CONFIG_FILE")
-+AC_SUBST(CUPS_DEFAULT_SMB_CONFIG_FILE)
-
- dnl Default MaxCopies value...
- AC_ARG_WITH(max-copies, [ --with-max-copies set default max copies value, default=9999 ],
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/config-scripts/cups-ssl.m4 cups/config-scripts/cups-ssl.m4
---- cups~/config-scripts/cups-ssl.m4 2012-12-07 13:00:47.000000000 +0100
-+++ cups/config-scripts/cups-ssl.m4 2012-12-08 00:29:10.000000000 +0100
-@@ -27,6 +27,8 @@
- SSLFLAGS=""
- SSLLIBS=""
- have_ssl=0
-+CUPS_SERVERCERT=""
-+CUPS_SERVERKEY=""
-
- if test x$enable_ssl != xno; then
- dnl Look for CDSA...
-@@ -36,6 +38,7 @@
- have_ssl=1
- AC_DEFINE(HAVE_SSL)
- AC_DEFINE(HAVE_CDSASSL)
-+ CUPS_SERVERCERT="/Library/Keychains/System.keychain"
-
- dnl Check for the various security headers...
- AC_CHECK_HEADER(Security/SecPolicy.h,
-@@ -85,6 +88,9 @@
- fi
-
- if test $have_ssl = 1; then
-+ CUPS_SERVERCERT="ssl/server.crt"
-+ CUPS_SERVERKEY="ssl/server.key"
-+
- if $PKGCONFIG --exists gcrypt; then
- SSLLIBS="$SSLLIBS `$PKGCONFIG --libs gcrypt`"
- SSLFLAGS="$SSLFLAGS `$PKGCONFIG --cflags gcrypt`"
-@@ -122,6 +128,9 @@
- $libcrypto)
-
- if test "x${SSLLIBS}" != "x"; then
-+ CUPS_SERVERCERT="ssl/server.crt"
-+ CUPS_SERVERKEY="ssl/server.key"
-+
- break
- fi
- done
-@@ -135,6 +144,8 @@
- AC_MSG_RESULT([ Using SSLFLAGS="$SSLFLAGS"])
- fi
-
-+AC_SUBST(CUPS_SERVERCERT)
-+AC_SUBST(CUPS_SERVERKEY)
- AC_SUBST(SSLFLAGS)
- AC_SUBST(SSLLIBS)
-
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/configure.in cups/configure.in
---- cups~/configure.in 2012-12-07 13:00:47.000000000 +0100
-+++ cups/configure.in 2012-12-08 00:29:10.000000000 +0100
-@@ -63,14 +63,14 @@
- AC_SUBST(UNINSTALL_LANGUAGES)
-
- AC_OUTPUT(Makedefs packaging/cups.list init/cups.sh init/cups-lpd cups-config
-- conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf
-+ conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf
- data/testprint
- desktop/cups.desktop
- doc/index.html doc/help/ref-cupsd-conf.html doc/help/standard.html
- init/org.cups.cups-lpd.plist init/cups.xml
- man/client.conf.man man/cups-deviced.man man/cups-driverd.man
- man/cups-lpd.man man/cupsaddsmb.man man/cupsd.man
-- man/cupsd.conf.man man/lpoptions.man
-+ man/cups-files.conf.man man/cupsd.conf.man man/lpoptions.man
- templates/header.tmpl
- $LANGFILES)
-
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/doc/help/ref-cups-files-conf.html.in cups/doc/help/ref-cups-files-conf.html.in
---- cups~/doc/help/ref-cups-files-conf.html.in 1970-01-01 01:00:00.000000000 +0100
-+++ cups/doc/help/ref-cups-files-conf.html.in 2012-12-08 00:29:10.000000000 +0100
-@@ -0,0 +1,531 @@
-+<HTML>
-+<!-- SECTION: References -->
-+<HEAD>
-+ <TITLE>cups-files.conf</TITLE>
-+ <LINK REL="STYLESHEET" TYPE="text/css" HREF="../cups-printable.css">
-+</HEAD>
-+<BODY>
-+
-+<H1 CLASS="title">cups-files.conf</H1>
-+
-+<P>The <VAR>/etc/cups/cups-files.conf</VAR> file contains configuration <I>directives</I> that control the files, directories. users. and groups that are used by the CUPS scheduler, <CODE>cupsd(8)</CODE>. Each directive is listed on a line by itself followed by its value. Comments are introduced using the number sign ("#") character at the beginning of a line.</P>
-+
-+<H2 CLASS="title"><A NAME="AccessLog">AccessLog</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+AccessLog /var/log/cups/access_log
-+AccessLog /var/log/cups/access_log-%s
-+AccessLog syslog
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>AccessLog</CODE> directive sets the name of the
-+access log file. If the filename is not absolute then it is
-+assumed to be relative to the <A
-+HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
-+access log file is stored in "common log format" and can be used
-+by any web access reporting tool to generate a report on CUPS
-+server activity.</P>
-+
-+<P>The server name can be included in the filename by using
-+<CODE>%s</CODE> in the name.</P>
-+
-+<P>The special name "syslog" can be used to send the access
-+information to the system log instead of a plain file.</P>
-+
-+<P>The default access log file is
-+<VAR>@CUPS_LOGDIR@/access_log</VAR>.</P>
-+
-+
-+<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.15</SPAN><A NAME="ConfigFilePerm">ConfigFilePerm</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+ConfigFilePerm 0644
-+ConfigFilePerm 0640
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>ConfigFilePerm</CODE> directive specifies the permissions to use when the scheduler writes configuration and cache files, typically in response to IPP or HTTP requests. The default is @CUPS_CONFIG_FILE_PERM@.</P>
-+
-+<BLOCKQUOTE><B>Note:</B>
-+
-+<P>The permissions for the <VAR>printers.conf</VAR> file are always masked to only allow access from the scheduler user (typically root). This is done because printer device URIs sometimes contain sensitive authentication information that should not be generally known on the system. There is no way to disable this security feature.</P>
-+
-+</BLOCKQUOTE>
-+
-+
-+<H2 CLASS="title"><A NAME="DataDir">DataDir</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+DataDir /usr/share/cups
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>DataDir</CODE> directive sets the directory to use
-+for data files.</P>
-+
-+
-+<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/OS X 10.5</SPAN><A NAME="DefaultAuthType">DefaultAuthType</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+DefaultAuthType Basic
-+DefaultAuthType BasicDigest
-+DefaultAuthType Digest
-+DefaultAuthType Negotiate
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>DefaultAuthType</CODE> directive specifies the type
-+of authentication to use for IPP operations that require a
-+username. The default is <CODE>Basic</CODE>.</P>
-+
-+
-+<H2 CLASS="title"><A NAME="DocumentRoot">DocumentRoot</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+DocumentRoot /usr/share/doc/cups
-+DocumentRoot /foo/bar/doc/cups
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>DocumentRoot</CODE> directive specifies the location
-+of web content for the HTTP server in CUPS. If an absolute path
-+is not specified then it is assumed to be relative to the <A
-+HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
-+default directory is <VAR>@CUPS_DOCROOT@</VAR>.</P>
-+
-+<P>Documents are first looked up in a sub-directory for the
-+primary language requested by the client (e.g.
-+<VAR>@CUPS_DOCROOT@/fr/...</VAR>) and then directly under
-+the <CODE>DocumentRoot</CODE> directory (e.g.
-+<VAR>@CUPS_DOCROOT@/...</VAR>), so it is possible to
-+localize the web content by providing subdirectories for each
-+language needed.</P>
-+
-+
-+<H2 CLASS="title"><A NAME="ErrorLog">ErrorLog</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+ErrorLog /var/log/cups/error_log
-+ErrorLog /var/log/cups/error_log-%s
-+ErrorLog syslog
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>ErrorLog</CODE> directive sets the name of the error
-+log file. If the filename is not absolute then it is assumed to
-+be relative to the <A
-+HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
-+default error log file is <VAR>@CUPS_LOGDIR@/error_log</VAR>.</P>
-+
-+<P>The server name can be included in the filename by using
-+<CODE>%s</CODE> in the name.</P>
-+
-+<P>The special name "syslog" can be used to send the error
-+information to the system log instead of a plain file.</P>
-+
-+
-+<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.4/OS X 10.6</SPAN><A NAME="FatalErrors">FatalErrors</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+FatalErrors none
-+FatalErrors all
-+FatalErrors browse
-+FatalErrors config
-+FatalErrors listen
-+FatalErrors log
-+FatalErrors permissions
-+FatalErrors all -permissions
-+FatalErrors config permissions log
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>FatalErrors</CODE> directive determines whether certain kinds of
-+errors are fatal. The following kinds of errors are currently recognized:</P>
-+
-+<UL>
-+
-+ <LI><CODE>none</CODE> - No errors are fatal</LI>
-+
-+ <LI><CODE>all</CODE> - All of the errors below are fatal</LI>
-+
-+ <LI><CODE>browse</CODE> - Browsing initialization errors are fatal,
-+ for example failed binding to the CUPS browse port or failed connections
-+ to LDAP servers</LI>
-+
-+ <LI><CODE>config</CODE> - Configuration file syntax errors are
-+ fatal</LI>
-+
-+ <LI><CODE>listen</CODE> - Listen or Port errors are fatal, except for
-+ IPv6 failures on the loopback or "any" addresses</LI>
-+
-+ <LI><CODE>log</CODE> - Log file creation or write errors are fatal</LI>
-+
-+ <LI><CODE>permissions</CODE> - Bad startup file permissions are
-+ fatal, for example shared SSL certificate and key files with world-
-+ read permissions</LI>
-+
-+</UL>
-+
-+<P>Multiple errors can be listed, and the form "-kind" can be used with
-+<CODE>all</CODE> to remove specific kinds of errors. The default setting is
-+<CODE>@CUPS_FATAL_ERRORS@</CODE>.</P>
-+
-+
-+<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.18</SPAN><A NAME="FileDevice">FileDevice</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+FileDevice Yes
-+FileDevice No
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>FileDevice</CODE> directive determines whether the
-+scheduler allows new printers to be added using device URIs of
-+the form <CODE>file:/filename</CODE>. File devices are most often
-+used to test new printer drivers and do not support raw file
-+printing.</P>
-+
-+<P>The default setting is <CODE>No</CODE>.</P>
-+
-+<BLOCKQUOTE><B>Note:</B>
-+
-+<P>File devices are managed by the scheduler. Since the
-+scheduler normally runs as the root user, file devices
-+can be used to overwrite system files and potentially
-+gain unauthorized access to the system. If you must
-+create printers using file devices, we recommend that
-+you set the <CODE>FileDevice</CODE> directive to
-+<CODE>Yes</CODE> for only as long as you need to add the
-+printers to the system, and then reset the directive to
-+<CODE>No</CODE>.</P>
-+
-+</BLOCKQUOTE>
-+
-+
-+<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.3</SPAN><A NAME="FontPath">FontPath</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+FontPath /foo/bar/fonts
-+FontPath /usr/share/cups/fonts:/foo/bar/fonts
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>FontPath</CODE> directive specifies the font path to
-+use when searching for fonts. The default font path is
-+<CODE>/usr/share/cups/fonts</CODE>.</P>
-+
-+
-+<H2 CLASS="title"><A NAME="Group">Group</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+Group lp
-+Group nobody
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>Group</CODE> directive specifies the UNIX group that
-+filter and CGI programs run as. The default group is
-+system-specific but is usually <CODE>lp</CODE> or
-+<CODE>nobody</CODE>.</P>
-+
-+
-+<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.15</SPAN><A NAME="LogFilePerm">LogFilePerm</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+LogFilePerm 0644
-+LogFilePerm 0600
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>LogFilePerm</CODE> directive specifies the
-+permissions to use when writing log files. The default
-+is @CUPS_LOG_FILE_PERM@.</P>
-+
-+
-+<H2 CLASS="title"><A NAME="PageLog">PageLog</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+PageLog /var/log/cups/page_log
-+PageLog /var/log/cups/page_log-%s
-+PageLog syslog
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>PageLog</CODE> directive sets the name of the page
-+log file. If the filename is not absolute then it is assumed to
-+be relative to the <A
-+HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
-+default page log file is <VAR>@CUPS_LOGDIR@/page_log</VAR>.</P>
-+
-+<P>The server name can be included in the filename by using
-+<CODE>%s</CODE> in the name.</P>
-+
-+<P>The special name "syslog" can be used to send the page
-+information to the system log instead of a plain file.</P>
-+
-+
-+<H2 CLASS="title"><A NAME="Printcap">Printcap</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+Printcap
-+Printcap /etc/printcap
-+Printcap /etc/printers.conf
-+Printcap /Library/Preferences/org.cups.printers.plist
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>Printcap</CODE> directive controls whether or not a
-+printcap file is automatically generated and updated with a list
-+of available printers. If specified with no value, then no
-+printcap file will be generated. The default is to generate a
-+file named <VAR>@CUPS_DEFAULT_PRINTCAP@</VAR>.</P>
-+
-+<P>When a filename is specified (e.g. <VAR>@CUPS_DEFAULT_PRINTCAP@</VAR>),
-+the printcap file is written whenever a printer is added or
-+removed. The printcap file can then be used by applications that
-+are hardcoded to look at the printcap file for the available
-+printers.</P>
-+
-+
-+<H2 CLASS="title"><A NAME="PrintcapFormat">PrintcapFormat</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+PrintcapFormat BSD
-+PrintcapFormat Solaris
-+PrintcapFormat plist
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>PrintcapFormat</CODE> directive controls the output format of the
-+printcap file. The default is to generate the plist format on OS X, the
-+Solaris format on Solaris, and the BSD format on other operating systems.</P>
-+
-+
-+<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.3</SPAN><A NAME="RemoteRoot">RemoteRoot</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+RemoteRoot remroot
-+RemoteRoot root
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>RemoteRoot</CODE> directive sets the username for
-+unauthenticated root requests from remote hosts. The default
-+username is <VAR>remroot</VAR>. Setting <CODE>RemoteRoot</CODE>
-+to <VAR>root</VAR> effectively disables this security
-+mechanism.</P>
-+
-+
-+<H2 CLASS="title"><A NAME="RequestRoot">RequestRoot</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+RequestRoot /var/spool/cups
-+RequestRoot /foo/bar/spool/cups
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>RequestRoot</CODE> directive sets the directory for
-+incoming IPP requests and HTML forms. If an absolute path is not
-+provided then it is assumed to be relative to the <A
-+HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
-+default request directory is <VAR>@CUPS_REQUESTS@</VAR>.</P>
-+
-+
-+<H2 CLASS="title"><A NAME="ServerBin">ServerBin</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+ServerBin /usr/lib/cups
-+ServerBin /foo/bar/lib/cups
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>ServerBin</CODE> directive sets the directory for
-+server-run executables. If an absolute path is not provided then
-+it is assumed to be relative to the <A
-+HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
-+default executable directory is <VAR>/usr/lib/cups</VAR>,
-+<VAR>/usr/lib32/cups</VAR>, or <VAR>/usr/libexec/cups</VAR>
-+depending on the operating system.</P>
-+
-+
-+<H2 CLASS="title"><A NAME="ServerCertificate">ServerCertificate</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+ServerCertificate /etc/cups/ssl/server.crt
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>ServerCertificate</CODE> directive specifies the
-+location of the SSL certificate file used by the server when
-+negotiating encrypted connections. The certificate must not be
-+encrypted (password protected) since the scheduler normally runs
-+in the background and will be unable to ask for a password.</P>
-+
-+<P>The default certificate file is
-+<VAR>/etc/cups/ssl/server.crt</VAR>.</P>
-+
-+
-+<H2 CLASS="title"><A NAME="ServerKey">ServerKey</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+ServerKey /etc/cups/ssl/server.key
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>ServerKey</CODE> directive specifies the location of
-+the SSL private key file used by the server when negotiating
-+encrypted connections.</P>
-+
-+<P>The default key file is
-+<VAR>/etc/cups/ssl/server.crt</VAR>.</P>
-+
-+
-+<H2 CLASS="title"><A NAME="ServerRoot">ServerRoot</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+ServerRoot /etc/cups
-+ServerRoot /foo/bar/cups
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>ServerRoot</CODE> directive specifies the absolute
-+path to the server configuration and state files. It is also used
-+to resolve relative paths in the <VAR>cupsd.conf</VAR> file. The
-+default server directory is <VAR>/etc/cups</VAR>.</P>
-+
-+
-+<H2 CLASS="title"><A NAME="SystemGroup">SystemGroup</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+SystemGroup lpadmin
-+SystemGroup sys
-+SystemGroup system
-+SystemGroup root
-+SystemGroup root lpadmin
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>SystemGroup</CODE> directive specifies the system
-+administration group for <CODE>System</CODE> authentication.
-+Multiple groups can be listed, separated with spaces. The default
-+group list is <CODE>@CUPS_SYSTEM_GROUPS@</CODE>.</P>
-+
-+
-+<H2 CLASS="title"><A NAME="TempDir">TempDir</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+TempDir /var/tmp
-+TempDir /foo/bar/tmp
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>TempDir</CODE> directive specifies an absolute path
-+for the directory to use for temporary files. The default
-+directory is <VAR>@CUPS_REQUESTS@/tmp</VAR>.</P>
-+
-+<P>Temporary directories must be world-writable and should have
-+the "sticky" permission bit enabled so that other users cannot
-+delete filter temporary files. The following commands will create
-+an appropriate temporary directory called
-+<VAR>/foo/bar/tmp</VAR>:</P>
-+
-+<PRE CLASS="command">
-+<KBD>mkdir /foo/bar/tmp</KBD>
-+<KBD>chmod a+rwxt /foo/bar/tmp</KBD>
-+</PRE>
-+
-+
-+<H2 CLASS="title"><A NAME="User">User</A></H2>
-+
-+<H3>Examples</H3>
-+
-+<PRE CLASS="command">
-+User lp
-+User guest
-+</PRE>
-+
-+<H3>Description</H3>
-+
-+<P>The <CODE>User</CODE> directive specifies the UNIX user that
-+filter and CGI programs run as. The default user is
-+<CODE>@CUPS_USER@</CODE>.</P>
-+
-+<BLOCKQUOTE><B>Note:</B>
-+
-+<P>You may not use user <CODE>root</CODE>, as that would expose
-+the system to unacceptable security risks. The scheduler will
-+automatically choose user <CODE>nobody</CODE> if you specify a
-+user whose ID is 0.</P>
-+
-+</BLOCKQUOTE>
-+
-+
-+</BODY>
-+</HTML>
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/doc/help/ref-cupsd-conf.html.in cups/doc/help/ref-cupsd-conf.html.in
---- cups~/doc/help/ref-cupsd-conf.html.in 2012-12-07 13:00:48.000000000 +0100
-+++ cups/doc/help/ref-cupsd-conf.html.in 2012-12-08 00:29:10.000000000 +0100
-@@ -191,82 +191,6 @@
- HREF="#Limit"><CODE>Limit</CODE></A> section.</P>
-
-
--<H2 CLASS="title"><SPAN CLASS="info">Deprecated</SPAN><A NAME="AuthClass">AuthClass</A></H2>
--
--<H3>Examples</H3>
--
--<PRE CLASS="command">
--&lt;Location /path&gt;
-- ...
-- AuthClass Anonymous
-- AuthClass User
-- AuthClass System
-- AuthClass Group
--&lt;/Location&gt;
--</PRE>
--
--<H3>Description</H3>
--
--<P>The <CODE>AuthClass</CODE> directive defines what level of
--authentication is required:</P>
--
--<UL>
--
-- <LI><CODE>Anonymous</CODE> - No authentication should be
-- performed (default)</LI>
--
-- <LI><CODE>User</CODE> - A valid username and password is
-- required</LI>
--
-- <LI><CODE>System</CODE> - A valid username and password
-- is required, and the username must belong to the "sys"
-- group; this can be changed using the <A
-- HREF="#SystemGroup"><CODE>SystemGroup</CODE></A>
-- directive</LI>
--
-- <LI><CODE>Group</CODE> - A valid username and password is
-- required, and the username must belong to the group named
-- by the <A
-- HREF="#AuthGroupName"><CODE>AuthGroupName</CODE></A>
-- directive</LI>
--
--</UL>
--
--<P>The <CODE>AuthClass</CODE> directive must appear inside a <A
--HREF="#Location"><CODE>Location</CODE></A> or <A
--HREF="#Limit"><CODE>Limit</CODE></A> section.</P>
--
--<P><B>This directive is deprecated and will be removed from a
--future release of CUPS.</B> Consider using the more flexible <A
--HREF="#Require"><CODE>Require</CODE></A> directive instead.</P>
--
--
--<H2 CLASS="title"><SPAN CLASS="info">Deprecated</SPAN><A NAME="AuthGroupName">AuthGroupName</A></H2>
--
--<H3>Examples</H3>
--
--<PRE CLASS="command">
--&lt;Location /path&gt;
-- ...
-- AuthGroupName mygroup
-- AuthGroupName lp
--&lt;/Location&gt;
--</PRE>
--
--<H3>Description</H3>
--
--<P>The <CODE>AuthGroupName</CODE> directive sets the group to use
--for <CODE>Group</CODE> authentication.</P>
--
--<P>The <CODE>AuthGroupName</CODE> directive must appear inside a
--<A HREF="#Location"><CODE>Location</CODE></A> or <A
--HREF="#Limit"><CODE>Limit</CODE></A> section.</P>
--
--<P><B>This directive is deprecated and will be removed from a
--future release of CUPS.</B> Consider using the more flexible <A
--HREF="#Require"><CODE>Require</CODE></A> directive instead.</P>
--
--
- <H2 CLASS="title"><A NAME="AuthType">AuthType</A></H2>
-
- <H3>Examples</H3>
-@@ -2494,65 +2418,6 @@
- files as soon as each job is completed, canceled, or aborted.</P>
-
-
--<H2 CLASS="title"><A NAME="Printcap">Printcap</A></H2>
--
--<H3>Examples</H3>
--
--<PRE CLASS="command">
--Printcap
--Printcap /etc/printcap
--Printcap /etc/printers.conf
--Printcap /Library/Preferences/org.cups.printers.plist
--</PRE>
--
--<H3>Description</H3>
--
--<P>The <CODE>Printcap</CODE> directive controls whether or not a
--printcap file is automatically generated and updated with a list
--of available printers. If specified with no value, then no
--printcap file will be generated. The default is to generate a
--file named <VAR>@CUPS_DEFAUL_PRINTCAP@</VAR>.</P>
--
--<P>When a filename is specified (e.g. <VAR>@CUPS_DEFAULT_PRINTCAP@</VAR>),
--the printcap file is written whenever a printer is added or
--removed. The printcap file can then be used by applications that
--are hardcoded to look at the printcap file for the available
--printers.</P>
--
--
--<H2 CLASS="title"><A NAME="PrintcapFormat">PrintcapFormat</A></H2>
--
--<H3>Examples</H3>
--
--<PRE CLASS="command">
--PrintcapFormat BSD
--PrintcapFormat Solaris
--PrintcapFormat plist
--</PRE>
--
--<H3>Description</H3>
--
--<P>The <CODE>PrintcapFormat</CODE> directive controls the output format of the
--printcap file. The default is to generate the plist format on Mac OS X, the
--Solaris format on Solaris, and the BSD format on other operating systems.</P>
--
--
--<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.13</SPAN><A NAME="PrintcapGUI">PrintcapGUI</A></H2>
--
--<H3>Examples</H3>
--
--<PRE CLASS="command">
--PrintGUI /usr/bin/glpoptions
--</PRE>
--
--<H3>Description</H3>
--
--<P>The <CODE>PrintcapGUI</CODE> directive sets the program to
--associate with the IRIX printer GUI interface script which is
--used by IRIX applications to display printer-specific options.
--There is no default program.</P>
--
--
- <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.21</SPAN><A NAME="ReloadTimeout">ReloadTimeout</A></H2>
-
- <H3>Examples</H3>
-@@ -2569,42 +2434,6 @@
- before doing a restart. The default is 30 seconds.</P>
-
-
--<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.3</SPAN><A NAME="RemoteRoot">RemoteRoot</A></H2>
--
--<H3>Examples</H3>
--
--<PRE CLASS="command">
--RemoteRoot remroot
--RemoteRoot root
--</PRE>
--
--<H3>Description</H3>
--
--<P>The <CODE>RemoteRoot</CODE> directive sets the username for
--unauthenticated root requests from remote hosts. The default
--username is <VAR>remroot</VAR>. Setting <CODE>RemoteRoot</CODE>
--to <VAR>root</VAR> effectively disables this security
--mechanism.</P>
--
--
--<H2 CLASS="title"><A NAME="RequestRoot">RequestRoot</A></H2>
--
--<H3>Examples</H3>
--
--<PRE CLASS="command">
--RequestRoot /var/spool/cups
--RequestRoot /foo/bar/spool/cups
--</PRE>
--
--<H3>Description</H3>
--
--<P>The <CODE>RequestRoot</CODE> directive sets the directory for
--incoming IPP requests and HTML forms. If an absolute path is not
--provided then it is assumed to be relative to the <A
--HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
--default request directory is <VAR>@CUPS_REQUESTS@</VAR>.</P>
--
--
- <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.7</SPAN><A NAME="Require">Require</A></H2>
-
- <H3>Examples</H3>
-@@ -2759,64 +2588,6 @@
- </BLOCKQUOTE>
-
-
--<H2 CLASS="title"><A NAME="ServerBin">ServerBin</A></H2>
--
--<H3>Examples</H3>
--
--<PRE CLASS="command">
--ServerBin /usr/lib/cups
--ServerBin /foo/bar/lib/cups
--</PRE>
--
--<H3>Description</H3>
--
--<P>The <CODE>ServerBin</CODE> directive sets the directory for
--server-run executables. If an absolute path is not provided then
--it is assumed to be relative to the <A
--HREF="#ServerRoot"><CODE>ServerRoot</CODE></A> directory. The
--default executable directory is <VAR>/usr/lib/cups</VAR>,
--<VAR>/usr/lib32/cups</VAR>, or <VAR>/usr/libexec/cups</VAR>
--depending on the operating system.</P>
--
--
--<H2 CLASS="title"><A NAME="ServerCertificate">ServerCertificate</A></H2>
--
--<H3>Examples</H3>
--
--<PRE CLASS="command">
--ServerCertificate /etc/cups/ssl/server.crt
--</PRE>
--
--<H3>Description</H3>
--
--<P>The <CODE>ServerCertificate</CODE> directive specifies the
--location of the SSL certificate file used by the server when
--negotiating encrypted connections. The certificate must not be
--encrypted (password protected) since the scheduler normally runs
--in the background and will be unable to ask for a password.</P>
--
--<P>The default certificate file is
--<VAR>/etc/cups/ssl/server.crt</VAR>.</P>
--
--
--<H2 CLASS="title"><A NAME="ServerKey">ServerKey</A></H2>
--
--<H3>Examples</H3>
--
--<PRE CLASS="command">
--ServerKey /etc/cups/ssl/server.key
--</PRE>
--
--<H3>Description</H3>
--
--<P>The <CODE>ServerKey</CODE> directive specifies the location of
--the SSL private key file used by the server when negotiating
--encrypted connections.</P>
--
--<P>The default key file is
--<VAR>/etc/cups/ssl/server.crt</VAR>.</P>
--
--
- <H2 CLASS="title"><A NAME="ServerName">ServerName</A></H2>
-
- <H3>Examples</H3>
-@@ -2833,23 +2604,6 @@
- hostname.</P>
-
-
--<H2 CLASS="title"><A NAME="ServerRoot">ServerRoot</A></H2>
--
--<H3>Examples</H3>
--
--<PRE CLASS="command">
--ServerRoot /etc/cups
--ServerRoot /foo/bar/cups
--</PRE>
--
--<H3>Description</H3>
--
--<P>The <CODE>ServerRoot</CODE> directive specifies the absolute
--path to the server configuration and state files. It is also used
--to resolve relative paths in the <VAR>cupsd.conf</VAR> file. The
--default server directory is <VAR>/etc/cups</VAR>.</P>
--
--
- <H2 CLASS="title"><SPAN CLASS="info">CUPS 1.1.21</SPAN><A NAME="ServerTokens">ServerTokens</A></H2>
-
- <H3>Examples</H3>
-@@ -2985,53 +2739,6 @@
- can be specified to listen on multiple ports.</P>
-
-
--<H2 CLASS="title"><A NAME="SystemGroup">SystemGroup</A></H2>
--
--<H3>Examples</H3>
--
--<PRE CLASS="command">
--SystemGroup lpadmin
--SystemGroup sys
--SystemGroup system
--SystemGroup root
--SystemGroup root lpadmin
--</PRE>
--
--<H3>Description</H3>
--
--<P>The <CODE>SystemGroup</CODE> directive specifies the system
--administration group for <CODE>System</CODE> authentication.
--Multiple groups can be listed, separated with spaces. The default
--group list is <CODE>@CUPS_SYSTEM_GROUPS@</CODE>.</P>
--
--
--<H2 CLASS="title"><A NAME="TempDir">TempDir</A></H2>
--
--<H3>Examples</H3>
--
--<PRE CLASS="command">
--TempDir /var/tmp
--TempDir /foo/bar/tmp
--</PRE>
--
--<H3>Description</H3>
--
--<P>The <CODE>TempDir</CODE> directive specifies an absolute path
--for the directory to use for temporary files. The default
--directory is <VAR>@CUPS_REQUESTS@/tmp</VAR>.</P>
--
--<P>Temporary directories must be world-writable and should have
--the "sticky" permission bit enabled so that other users cannot
--delete filter temporary files. The following commands will create
--an appropriate temporary directory called
--<VAR>/foo/bar/tmp</VAR>:</P>
--
--<PRE CLASS="command">
--<KBD>mkdir /foo/bar/tmp</KBD>
--<KBD>chmod a+rwxt /foo/bar/tmp</KBD>
--</PRE>
--
--
- <H2 CLASS="title"><A NAME="Timeout">Timeout</A></H2>
-
- <H3>Examples</H3>
-@@ -3048,52 +2755,5 @@
- default timeout is 300 seconds.</P>
-
-
--<H2 CLASS="title"><SPAN CLASS="info">CUPS 1.2/Mac OS X 10.5</SPAN><A NAME="UseNetworkDefault">UseNetworkDefault</A></H2>
--
--<H3>Examples</H3>
--
--<PRE CLASS="command">
--UseNetworkDefault yes
--UseNetworkDefault no
--</PRE>
--
--<H3>Description</H3>
--
--<P>The <CODE>UseNetworkDefault</CODE> directive controls whether
--the client will use a network/remote printer as a default
--printer. If enabled, the default printer of a server is used as
--the default printer on a client. When multiple servers are
--advertising a default printer, the client's default printer is
--set to the first discovered printer, or to the implicit class for
--the same printer available from multiple servers.</P>
--
--<P>The default is <CODE>@CUPS_USE_NETWORK_DEFAULT@</CODE>.</P>
--
--
--<H2 CLASS="title"><A NAME="User">User</A></H2>
--
--<H3>Examples</H3>
--
--<PRE CLASS="command">
--User lp
--User guest
--</PRE>
--
--<H3>Description</H3>
--
--<P>The <CODE>User</CODE> directive specifies the UNIX user that
--filter and CGI programs run as. The default user is
--<CODE>@CUPS_USER@</CODE>.</P>
--
--<BLOCKQUOTE><B>Note:</B>
--
--<P>You may not use user <CODE>root</CODE>, as that would expose
--the system to unacceptable security risks. The scheduler will
--automatically choose user <CODE>nobody</CODE> if you specify a
--user whose ID is 0.</P>
--
--</BLOCKQUOTE>
--
--
- </BODY>
- </HTML>
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/locale/cups_da.po cups/locale/cups_da.po
---- cups~/locale/cups_da.po 2012-12-07 13:00:48.000000000 +0100
-+++ cups/locale/cups_da.po 2012-12-08 01:01:31.675672771 +0100
-@@ -2881,10 +2881,10 @@
- #, c-format
- msgid ""
- "File device URIs have been disabled! To enable, see the FileDevice directive "
--"in \"%s/cupsd.conf\"."
-+"in \"%s/cups-files.conf\"."
- msgstr ""
- "Arkivets enheds-URI'er er blevet slået fra! Du slår det til ved at se i "
--"FileDevice-direktivet i \"%s/cupsd.conf\"."
-+"FileDevice-direktivet i \"%s/cups-files.conf\"."
-
- msgid "Folio"
- msgstr "8,5 x 13\""
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/locale/cups_de.po cups/locale/cups_de.po
---- cups~/locale/cups_de.po 2012-12-07 13:00:48.000000000 +0100
-+++ cups/locale/cups_de.po 2012-12-08 00:56:57.515682472 +0100
-@@ -2909,10 +2909,10 @@
- #, c-format
- msgid ""
- "File device URIs have been disabled! To enable, see the FileDevice directive "
--"in \"%s/cupsd.conf\"."
-+"in \"%s/cups-files.conf\"."
- msgstr ""
- "Dateigeräte-URIs wurden deaktiviert! Infos zum Aktivieren finden Sie im "
--"FileDevice-Verzeichnis unter „%s/cupsd.conf“."
-+"FileDevice-Verzeichnis unter „%s/cups-files.conf“."
-
- msgid "Folio"
- msgstr "Folio"
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/locale/cups_es.po cups/locale/cups_es.po
---- cups~/locale/cups_es.po 2012-12-07 13:00:48.000000000 +0100
-+++ cups/locale/cups_es.po 2012-12-08 00:57:31.903681255 +0100
-@@ -2941,10 +2941,10 @@
- #, c-format
- msgid ""
- "File device URIs have been disabled! To enable, see the FileDevice directive "
--"in \"%s/cupsd.conf\"."
-+"in \"%s/cups-files.conf\"."
- msgstr ""
- "Los URIs del dispositivo de archivo han sido deshabilitados. Para "
--"habilitarlos, vea la directiva FileDevice en \"%s/cupsd.conf\"."
-+"habilitarlos, vea la directiva FileDevice en \"%s/cups-files.conf\"."
-
- msgid "Folio"
- msgstr "Folio"
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/locale/cups_eu.po cups/locale/cups_eu.po
---- cups~/locale/cups_eu.po 2012-12-07 13:00:48.000000000 +0100
-+++ cups/locale/cups_eu.po 2012-12-08 00:58:35.175679014 +0100
-@@ -3793,10 +3793,10 @@
- #, c-format
- msgid ""
- "File device URIs have been disabled! To enable, see the FileDevice directive "
--"in \"%s/cupsd.conf\"."
-+"in \"%s/cups-files.conf\"."
- msgstr ""
- "Fitxategiaren gailuaren URIak desgaitu egin dira. Gaitzeko, ikus FileDevice "
--"direktiba \"%s/cupsd.conf\" fitxategian."
-+"direktiba \"%s/cups-files.conf\" fitxategian."
-
- #: ppdc/sample.c:92
- msgid "Folio"
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/locale/cups_fi.po cups/locale/cups_fi.po
---- cups~/locale/cups_fi.po 2012-12-07 13:00:48.000000000 +0100
-+++ cups/locale/cups_fi.po 2012-12-08 01:02:01.039671731 +0100
-@@ -2886,10 +2886,10 @@
- #, c-format
- msgid ""
- "File device URIs have been disabled! To enable, see the FileDevice directive "
--"in \"%s/cupsd.conf\"."
-+"in \"%s/cups-files.conf\"."
- msgstr ""
- "Tiedostolaitteiden osoitteet on poistettu käytöstä! Voit ottaa ne käyttöön ”%"
--"s/cupsd.conf”-tiedoston FileDevice-säännöllä."
-+"s/cups-files.conf”-tiedoston FileDevice-säännöllä."
-
- msgid "Folio"
- msgstr "Folio"
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/locale/cups_fr.po cups/locale/cups_fr.po
---- cups~/locale/cups_fr.po 2012-12-07 13:00:48.000000000 +0100
-+++ cups/locale/cups_fr.po 2012-12-08 01:03:03.287669533 +0100
-@@ -2925,10 +2925,10 @@
- #, c-format
- msgid ""
- "File device URIs have been disabled! To enable, see the FileDevice directive "
--"in \"%s/cupsd.conf\"."
-+"in \"%s/cups-files.conf\"."
- msgstr ""
- "Les URI des périphériques de fichier ont été désactivés. Pour l’activer, "
--"reportez-vous à la directive FileDevice dans « %s/cupsd.conf »."
-+"reportez-vous à la directive FileDevice dans « %s/cups-files.conf »."
-
- msgid "Folio"
- msgstr "Folio"
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/locale/cups_id.po cups/locale/cups_id.po
---- cups~/locale/cups_id.po 2012-12-07 13:00:48.000000000 +0100
-+++ cups/locale/cups_id.po 2012-12-08 01:03:26.919668695 +0100
-@@ -3712,10 +3712,10 @@
- #, c-format
- msgid ""
- "File device URIs have been disabled! To enable, see the FileDevice directive "
--"in \"%s/cupsd.conf\"."
-+"in \"%s/cups-files.conf\"."
- msgstr ""
- "Berkas URI perangkat telah dinonaktifkan! Untuk mengaktifkannya, lihatlah "
--"petunjuk FileDevice dalam \"%s/cupsd.conf\"."
-+"petunjuk FileDevice dalam \"%s/cups-files.conf\"."
-
- #: ppdc/sample.c:92
- msgid "Folio"
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/locale/cups_it.po cups/locale/cups_it.po
---- cups~/locale/cups_it.po 2012-12-07 13:00:48.000000000 +0100
-+++ cups/locale/cups_it.po 2012-12-08 01:04:46.011665881 +0100
-@@ -2819,8 +2819,8 @@
- msgstr "Cartella documento: 9/16 x 3 7/16\""
-
- #, c-format
--msgid "File device URIs have been disabled! To enable, see the FileDevice directive in \"%s/cupsd.conf\"."
--msgstr "Gli URI del dispositivo documento sono stati disabilitati! Per abilitarli, consulta l'istruzione del FileDevice in \"%s/cupsd.conf\"."
-+msgid "File device URIs have been disabled! To enable, see the FileDevice directive in \"%s/cups-files.conf\"."
-+msgstr "Gli URI del dispositivo documento sono stati disabilitati! Per abilitarli, consulta l'istruzione del FileDevice in \"%s/cups-files.conf\"."
-
- msgid "Folio"
- msgstr "Foglio"
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/locale/cups_ja.po cups/locale/cups_ja.po
---- cups~/locale/cups_ja.po 2012-12-07 13:00:48.000000000 +0100
-+++ cups/locale/cups_ja.po 2012-12-08 01:05:34.883664166 +0100
-@@ -2867,8 +2867,8 @@
- msgstr "ファイルフォルダー - 9/16 x 3 7/16\""
-
- #, c-format
--msgid "File device URIs have been disabled! To enable, see the FileDevice directive in \"%s/cupsd.conf\"."
--msgstr "ファイルデバイス URI は無効になっています! 有効にするには、\"%s/cupsd.conf\" の FileDevice ディレクティブを参照してください。"
-+msgid "File device URIs have been disabled! To enable, see the FileDevice directive in \"%s/cups-files.conf\"."
-+msgstr "ファイルデバイス URI は無効になっています! 有効にするには、\"%s/cups-files.conf\" の FileDevice ディレクティブを参照してください。"
-
- msgid "Folio"
- msgstr "フォリオ"
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/locale/cups_ko.po cups/locale/cups_ko.po
---- cups~/locale/cups_ko.po 2012-12-07 13:00:48.000000000 +0100
-+++ cups/locale/cups_ko.po 2012-12-08 01:06:35.647662090 +0100
-@@ -2866,9 +2866,9 @@
- #, c-format
- msgid ""
- "File device URIs have been disabled! To enable, see the FileDevice directive "
--"in \"%s/cupsd.conf\"."
-+"in \"%s/cups-files.conf\"."
- msgstr ""
--"파일 장비 URI가 비활성화되었습니다! 활성화하려면, \"%s/cupsd.conf\"에 있는 "
-+"파일 장비 URI가 비활성화되었습니다! 활성화하려면, \"%s/cups-files.conf\"에 있는 "
- "FileDevice 지시문을 보십시오."
-
- msgid "Folio"
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/locale/cups_nl.po cups/locale/cups_nl.po
---- cups~/locale/cups_nl.po 2012-12-07 13:00:48.000000000 +0100
-+++ cups/locale/cups_nl.po 2012-12-08 01:07:07.987660903 +0100
-@@ -2910,10 +2910,10 @@
- #, c-format
- msgid ""
- "File device URIs have been disabled! To enable, see the FileDevice directive "
--"in \"%s/cupsd.conf\"."
-+"in \"%s/cups-files.conf\"."
- msgstr ""
- "File device-URI&aops;s zijn uitgeschakeld! Raadpleeg als u de URI&aops;s "
--"weer wilt inschakelen de richtlijn voor FileDevice in \"%s/cupsd.conf\"."
-+"weer wilt inschakelen de richtlijn voor FileDevice in \"%s/cups-files.conf\"."
-
- msgid "Folio"
- msgstr "Folio"
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/locale/cups_no.po cups/locale/cups_no.po
---- cups~/locale/cups_no.po 2012-12-07 13:00:48.000000000 +0100
-+++ cups/locale/cups_no.po 2012-12-08 01:07:18.003660528 +0100
-@@ -2871,10 +2871,10 @@
- #, c-format
- msgid ""
- "File device URIs have been disabled! To enable, see the FileDevice directive "
--"in \"%s/cupsd.conf\"."
-+"in \"%s/cups-files.conf\"."
- msgstr ""
- "Enhets-URIer for filer er deaktivert! Hvis du vil aktivere funksjonen, leser "
--"du FileDevice-direktivet i «%s/cupsd.conf»."
-+"du FileDevice-direktivet i «%s/cups-files.conf»."
-
- msgid "Folio"
- msgstr "Folio"
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/locale/cups_pl.po cups/locale/cups_pl.po
---- cups~/locale/cups_pl.po 2012-12-07 13:00:48.000000000 +0100
-+++ cups/locale/cups_pl.po 2012-12-08 01:07:24.747660332 +0100
-@@ -2895,10 +2895,10 @@
- #, c-format
- msgid ""
- "File device URIs have been disabled! To enable, see the FileDevice directive "
--"in \"%s/cupsd.conf\"."
-+"in \"%s/cups-files.conf\"."
- msgstr ""
- "URI pliku urządzenia zostało wyłączone! Aby włączyć, zobacz dyrektywę "
--"FileDevice w \"%s/cupsd.conf\"."
-+"FileDevice w \"%s/cups-files.conf\"."
-
- msgid "Folio"
- msgstr "Folio"
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/locale/cups_pt.po cups/locale/cups_pt.po
---- cups~/locale/cups_pt.po 2012-12-07 13:00:48.000000000 +0100
-+++ cups/locale/cups_pt.po 2012-12-08 01:07:37.875659840 +0100
-@@ -2897,10 +2897,10 @@
- #, c-format
- msgid ""
- "File device URIs have been disabled! To enable, see the FileDevice directive "
--"in \"%s/cupsd.conf\"."
-+"in \"%s/cups-files.conf\"."
- msgstr ""
- "URIs do periférico do ficheiro foram desactivados! Para activar, consulte a "
--"directiva FileDevice em \"%s/cupsd.conf\"."
-+"directiva FileDevice em \"%s/cups-files.conf\"."
-
- msgid "Folio"
- msgstr "Fólio"
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/locale/cups_pt_BR.po cups/locale/cups_pt_BR.po
---- cups~/locale/cups_pt_BR.po 2012-12-07 13:00:48.000000000 +0100
-+++ cups/locale/cups_pt_BR.po 2012-12-08 01:07:31.707660026 +0100
-@@ -2904,10 +2904,10 @@
- #, c-format
- msgid ""
- "File device URIs have been disabled! To enable, see the FileDevice directive "
--"in \"%s/cupsd.conf\"."
-+"in \"%s/cups-files.conf\"."
- msgstr ""
- "URIs de dispositivo de arquivo foram desativados! Para ativá-los, consulte a "
--"diretiva FileDevice em \"%s/cupsd.conf\"."
-+"diretiva FileDevice em \"%s/cups-files.conf\"."
-
- msgid "Folio"
- msgstr "Fólio"
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/locale/cups_ru.po cups/locale/cups_ru.po
---- cups~/locale/cups_ru.po 2012-12-07 13:00:48.000000000 +0100
-+++ cups/locale/cups_ru.po 2012-12-08 01:07:51.439659296 +0100
-@@ -2884,10 +2884,10 @@
- #, c-format
- msgid ""
- "File device URIs have been disabled! To enable, see the FileDevice directive "
--"in \"%s/cupsd.conf\"."
-+"in \"%s/cups-files.conf\"."
- msgstr ""
- "URI-адреса файлового устройства отключены! Чтобы включить их, используйте "
--"директиву FileDevice в «%s/cupsd.conf»."
-+"директиву FileDevice в «%s/cups-files.conf»."
-
- msgid "Folio"
- msgstr "Фолио"
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/locale/cups_sv.po cups/locale/cups_sv.po
---- cups~/locale/cups_sv.po 2012-12-07 13:00:48.000000000 +0100
-+++ cups/locale/cups_sv.po 2012-12-08 01:07:58.247659102 +0100
-@@ -2875,10 +2875,10 @@
- #, c-format
- msgid ""
- "File device URIs have been disabled! To enable, see the FileDevice directive "
--"in \"%s/cupsd.conf\"."
-+"in \"%s/cups-files.conf\"."
- msgstr ""
- "Filenhets URI:er har blivit avaktiverade! För att aktivera, se direktivet "
--"FileDevice i \"%s/cupsd.conf\"."
-+"FileDevice i \"%s/cups-files.conf\"."
-
- msgid "Folio"
- msgstr "Folio"
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/locale/cups_zh.po cups/locale/cups_zh.po
---- cups~/locale/cups_zh.po 2012-12-07 13:00:48.000000000 +0100
-+++ cups/locale/cups_zh.po 2012-12-08 01:08:56.791657022 +0100
-@@ -2844,9 +2844,9 @@
- #, c-format
- msgid ""
- "File device URIs have been disabled! To enable, see the FileDevice directive "
--"in \"%s/cupsd.conf\"."
-+"in \"%s/cups-files.conf\"."
- msgstr ""
--"文件设备 URI 已被停用!要启用,请参阅“%s/cupsd.conf”中的 FileDevice 指令。"
-+"文件设备 URI 已被停用!要启用,请参阅“%s/cups-files.conf”中的 FileDevice 指令。"
-
- msgid "Folio"
- msgstr "对开本"
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/locale/cups_zh_TW.po cups/locale/cups_zh_TW.po
---- cups~/locale/cups_zh_TW.po 2012-12-07 13:00:48.000000000 +0100
-+++ cups/locale/cups_zh_TW.po 2012-12-08 01:09:07.407656652 +0100
-@@ -2845,9 +2845,9 @@
- #, c-format
- msgid ""
- "File device URIs have been disabled! To enable, see the FileDevice directive "
--"in \"%s/cupsd.conf\"."
-+"in \"%s/cups-files.conf\"."
- msgstr ""
--"已停用檔案設備 URI!若要啟用,請參閱“%s/cupsd.conf”中的 FileDevice 指示。"
-+"已停用檔案設備 URI!若要啟用,請參閱“%s/cups-files.conf”中的 FileDevice 指示。"
-
- msgid "Folio"
- msgstr "對開紙"
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/man/Makefile cups/man/Makefile
---- cups~/man/Makefile 2012-12-08 00:29:09.000000000 +0100
-+++ cups/man/Makefile 2012-12-08 00:29:10.000000000 +0100
-@@ -39,6 +39,7 @@
- ppdpo.$(MAN1EXT)
- MAN5 = classes.conf.$(MAN5EXT) \
- client.conf.$(MAN5EXT) \
-+ cups-files.conf.$(MAN5EXT) \
- cups-snmp.conf.$(MAN5EXT) \
- cupsd.conf.$(MAN5EXT) \
- mailto.conf.$(MAN5EXT) \
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/man/cups-files.conf.man.in cups/man/cups-files.conf.man.in
---- cups~/man/cups-files.conf.man.in 1970-01-01 01:00:00.000000000 +0100
-+++ cups/man/cups-files.conf.man.in 2012-12-08 00:29:10.000000000 +0100
-@@ -0,0 +1,146 @@
-+.\"
-+.\" "$Id$"
-+.\"
-+.\" cupsd.conf man page for CUPS.
-+.\"
-+.\" Copyright 2007-2012 by Apple Inc.
-+.\" Copyright 1997-2006 by Easy Software Products.
-+.\"
-+.\" These coded instructions, statements, and computer programs are the
-+.\" property of Apple Inc. and are protected by Federal copyright
-+.\" law. Distribution and use rights are outlined in the file "LICENSE.txt"
-+.\" which should have been included with this file. If this file is
-+.\" file is missing or damaged, see the license at "http://www.cups.org/".
-+.\"
-+.TH cups-files.conf 5 "CUPS" "19 November 2012" "Apple Inc."
-+.SH NAME
-+cups-files.conf \- file and directory configuration file for cups
-+.SH DESCRIPTION
-+The \fIcups-file.conf\fR file configures the files and directories used by the
-+CUPS scheduler, \fIcupsd(8)\fR. It is normally located in the
-+\fI@CUPS_SERVERROOT@\fR directory.
-+.LP
-+Each line in the file can be a configuration directive, a blank line,
-+or a comment. Comment lines start with the # character.
-+.SH DIRECTIVES
-+The following directives are understood by \fIcupsd(8)\fR. Consult the
-+on-line help for detailed descriptions:
-+.TP 5
-+AccessLog filename
-+.TP 5
-+AccessLog syslog
-+.br
-+Defines the access log filename.
-+.TP 5
-+ConfigFilePerm mode
-+.br
-+Specifies the permissions for all configuration files that the scheduler
-+writes.
-+.TP 5
-+DataDir path
-+.br
-+Specified the directory where data files can be found.
-+.TP 5
-+DocumentRoot directory
-+.br
-+Specifies the root directory for the internal web server documents.
-+.TP 5
-+ErrorLog filename
-+.TP 5
-+ErrorLog syslog
-+.br
-+Specifies the error log filename.
-+.TP 5
-+FatalErrors none
-+.TP 5
-+FatalErrors all -kind [... -kind]
-+.TP 5
-+FatalErrors kind [... kind]
-+.br
-+Specifies which errors are fatal, causing the scheduler to exit. "Kind" is
-+"browse", "config", "listen", "log", or "permissions".
-+.TP 5
-+FileDevice Yes
-+.TP 5
-+FileDevice No
-+.br
-+Specifies whether the file pseudo-device can be used for new
-+printer queues.
-+.TP 5
-+FontPath directory[:directory:...]
-+.br
-+Specifies the search path for fonts.
-+.TP 5
-+Group group-name-or-number
-+.br
-+Specifies the group name or ID that will be used when executing
-+external programs.
-+.TP 5
-+LogFilePerm mode
-+.br
-+Specifies the permissions for all log files that the scheduler writes.
-+.TP 5
-+PageLog filename
-+.TP 5
-+PageLog syslog
-+.br
-+Specifies the page log filename.
-+.TP 5
-+Printcap
-+.TP 5
-+Printcap filename
-+.br
-+Specifies the filename for a printcap file that is updated
-+automatically with a list of available printers (needed for
-+legacy applications); specifying Printcap with no filename
-+disables printcap generation.
-+.TP 5
-+RemoteRoot user-name
-+.br
-+Specifies the username that is associated with unauthenticated root
-+accesses.
-+.TP 5
-+RequestRoot directory
-+.br
-+Specifies the directory to store print jobs and other HTTP request
-+data.
-+.TP 5
-+ServerBin directory
-+.br
-+Specifies the directory where backends, CGIs, daemons, and filters may
-+be found.
-+.TP 5
-+ServerCertificate filename
-+.br
-+Specifies the encryption certificate to use.
-+.TP 5
-+ServerKey filename
-+.br
-+Specifies the encryption key to use.
-+.TP 5
-+ServerRoot directory
-+.br
-+Specifies the directory where the server configuration files can be found.
-+.TP 5
-+SystemGroup group-name [group-name ...]
-+.br
-+Specifies the group(s) to use for System class authentication.
-+.TP 5
-+TempDir directory
-+.br
-+Specifies the directory where temporary files are stored.
-+.TP 5
-+User user-name
-+.br
-+Specifies the user name or ID that is used when running external programs.
-+.SH SEE ALSO
-+\fIclasses.conf(5)\fR, \fIcupsd(8)\fR, \fIcupsd.conf(5)\fR, \fImime.convs(5)\fR,
-+\fImime.types(5)\fR, \fIprinters.conf(5)\fR,
-+\fIsubscriptions.conf(5)\fR,
-+.br
-+http://localhost:631/help
-+.SH COPYRIGHT
-+Copyright 2007-2012 by Apple Inc.
-+.\"
-+.\" End of "$Id$".
-+.\"
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/man/cupsd.conf.man.in cups/man/cupsd.conf.man.in
---- cups~/man/cupsd.conf.man.in 2012-12-07 13:00:48.000000000 +0100
-+++ cups/man/cupsd.conf.man.in 2012-12-08 00:29:10.000000000 +0100
-@@ -12,13 +12,16 @@
- .\" which should have been included with this file. If this file is
- .\" file is missing or damaged, see the license at "http://www.cups.org/".
- .\"
--.TH cupsd.conf 5 "CUPS" "28 January 2010" "Apple Inc."
-+.TH cupsd.conf 5 "CUPS" "19 November 2012" "Apple Inc."
- .SH NAME
- cupsd.conf \- server configuration file for cups
- .SH DESCRIPTION
- The \fIcupsd.conf\fR file configures the CUPS scheduler, \fIcupsd(8)\fR. It
--is normally located in the \fI@CUPS_SERVERROOT@\fR directory.
--.LP
-+is normally located in the \fI@CUPS_SERVERROOT@\fR directory. \fBNote:\fR
-+File, directory, and user configuration directives that used to be allowed in
-+the \fIcupsd.conf\fR file are now stored in the \fIcups-files.conf(5)\fR instead
-+in order to prevent certain types of privilege escalation attacks.
-+LP
- Each line in the file can be a configuration directive, a blank line,
- or a comment. Comment lines start with the # character. The
- configuration directives are intentionally similar to those used by the
-@@ -27,12 +30,6 @@
- The following directives are understood by \fIcupsd(8)\fR. Consult the
- on-line help for detailed descriptions:
- .TP 5
--AccessLog filename
--.TP 5
--AccessLog syslog
--.br
--Defines the access log filename.
--.TP 5
- AccessLogLevel config
- .TP 5
- AccessLogLevel actions
-@@ -61,20 +58,6 @@
- .br
- Allows access from the named hosts or addresses.
- .TP 5
--AuthClass User
--.TP 5
--AuthClass Group
--.TP 5
--AuthClass System
--.br
--Specifies the authentication class (User, Group, System) -
--\fBthis directive is deprecated\fR.
--.TP 5
--AuthGroupName group-name
--.br
--Specifies the authentication group - \fBthis directive is
--deprecated\fR.
--.TP 5
- AuthType None
- .TP 5
- AuthType Basic
-@@ -220,7 +203,7 @@
- .TP 5
- Browsing No
- .br
--Specifies whether or not remote printer browsing should be enabled.
-+Specifies whether or not shared printers should be advertised.
- .TP 5
- Classification banner
- .br
-@@ -233,15 +216,6 @@
- Specifies whether to allow users to override the classification
- of individual print jobs.
- .TP 5
--ConfigFilePerm mode
--.br
--Specifies the permissions for all configuration files that the scheduler
--writes.
--.TP 5
--DataDir path
--.br
--Specified the directory where data files can be found.
--.TP 5
- DefaultAuthType Basic
- .TP 5
- DefaultAuthType BasicDigest
-@@ -309,10 +283,6 @@
- causes the update to happen as soon as possible, typically within a few
- milliseconds.
- .TP 5
--DocumentRoot directory
--.br
--Specifies the root directory for the internal web server documents.
--.TP 5
- Encryption IfRequested
- .TP 5
- Encryption Never
-@@ -322,28 +292,6 @@
- Specifies the level of encryption that is required for a particular
- location.
- .TP 5
--ErrorLog filename
--.TP 5
--ErrorLog syslog
--.br
--Specifies the error log filename.
--.TP 5
--FatalErrors none
--.TP 5
--FatalErrors all -kind [... -kind]
--.TP 5
--FatalErrors kind [... kind]
--.br
--Specifies which errors are fatal, causing the scheduler to exit. "Kind" is
--"browse", "config", "listen", "log", or "permissions".
--.TP 5
--FileDevice Yes
--.TP 5
--FileDevice No
--.br
--Specifies whether the file pseudo-device can be used for new
--printer queues.
--.TP 5
- FilterLimit limit
- .br
- Specifies the maximum cost of filters that are run concurrently.
-@@ -449,10 +397,6 @@
- Specifies the number of debugging messages that are logged when an error
- occurs in a print job.
- .TP 5
--LogFilePerm mode
--.br
--Specifies the permissions for all log files that the scheduler writes.
--.TP 5
- LogLevel alert
- .TP 5
- LogLevel crit
-@@ -526,12 +470,6 @@
- .br
- Specifies the order of HTTP access control (allow,deny or deny,allow)
- .TP 5
--PageLog filename
--.TP 5
--PageLog syslog
--.br
--Specifies the page log filename.
--.TP 5
- PageLogFormat format string
- .br
- Specifies the format of page log lines.
-@@ -561,15 +499,6 @@
- Specifies whether or not to preserve the job history after they are
- printed.
- .TP 5
--Printcap
--.TP 5
--Printcap filename
--.br
--Specifies the filename for a printcap file that is updated
--automatically with a list of available printers (needed for
--legacy applications); specifying Printcap with no filename
--disables printcap generation.
--.TP 5
- PrintcapFormat bsd
- .TP 5
- PrintcapFormat plist
-@@ -578,29 +507,11 @@
- .br
- Specifies the format of the printcap file.
- .TP 5
--PrintcapGUI
--.TP 5
--PrintcapGUI gui-program-filename
--.br
--Specifies whether to generate option panel definition files on
--some operating systems. When provided with no program filename,
--disables option panel definition files.
--.TP 5
- ReloadTimeout seconds
- .br
- Specifies the amount of time to wait for job completion before
- restarting the scheduler.
- .TP 5
--RemoteRoot user-name
--.br
--Specifies the username that is associated with unauthenticated root
--accesses.
--.TP 5
--RequestRoot directory
--.br
--Specifies the directory to store print jobs and other HTTP request
--data.
--.TP 5
- Require group group-name-list
- .TP 5
- Require user user-name-list
-@@ -630,27 +541,10 @@
- Specifies an alternate name that the server is known by. The special name "*"
- allows any name to be used.
- .TP 5
--ServerBin directory
--.br
--Specifies the directory where backends, CGIs, daemons, and filters may
--be found.
--.TP 5
--ServerCertificate filename
--.br
--Specifies the encryption certificate to use.
--.TP 5
--ServerKey filename
--.br
--Specifies the encryption key to use.
--.TP 5
- ServerName hostname-or-ip-address
- .br
- Specifies the fully-qualified hostname of the server.
- .TP 5
--ServerRoot directory
--.br
--Specifies the directory where the server configuration files can be found.
--.TP 5
- ServerTokens Full
- .TP 5
- ServerTokens Major
-@@ -686,14 +580,6 @@
- .br
- Listens on the specified port for encrypted connections.
- .TP 5
--SystemGroup group-name [group-name ...]
--.br
--Specifies the group(s) to use for System class authentication.
--.TP 5
--TempDir directory
--.br
--Specifies the directory where temporary files are stored.
--.TP 5
- Timeout seconds
- .br
- Specifies the HTTP request timeout in seconds.
-@@ -702,7 +588,7 @@
- .br
- Specifies the user name or ID that is used when running external programs.
- .SH SEE ALSO
--\fIclasses.conf(5)\fR, \fIcupsd(8)\fR, \fImime.convs(5)\fR,
-+\fIclasses.conf(5)\fR, \fIcups-files.conf(8)\fR, \fIcupsd(8)\fR, \fImime.convs(5)\fR,
- \fImime.types(5)\fR, \fIprinters.conf(5)\fR,
- \fIsubscriptions.conf(5)\fR,
- .br
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/scheduler/client.c cups/scheduler/client.c
---- cups~/scheduler/client.c 2012-12-08 00:29:09.000000000 +0100
-+++ cups/scheduler/client.c 2012-12-08 00:29:10.000000000 +0100
-@@ -35,7 +35,7 @@
- * get_cdsa_certificate() - Get a SSL/TLS certificate from the System
- * keychain.
- * get_file() - Get a filename and state info.
-- * install_conf_file() - Install a configuration file.
-+ * install_cupsd_conf() - Install a configuration file.
- * is_cgi() - Is the resource a CGI script/program?
- * is_path_absolute() - Is a path absolute and free of relative elements
- * (i.e. "..").
-@@ -102,7 +102,7 @@
- #endif /* HAVE_CDSASSL */
- static char *get_file(cupsd_client_t *con, struct stat *filestats,
- char *filename, int len);
--static http_status_t install_conf_file(cupsd_client_t *con);
-+static http_status_t install_cupsd_conf(cupsd_client_t *con);
- static int is_cgi(cupsd_client_t *con, const char *filename,
- struct stat *filestats, mime_type_t *type);
- static int is_path_absolute(const char *path);
-@@ -1691,17 +1691,14 @@
- * Validate the resource name...
- */
-
-- if (strncmp(con->uri, "/admin/conf/", 12) ||
-- strchr(con->uri + 12, '/') ||
-- strlen(con->uri) == 12)
-+ if (strcmp(con->uri, "/admin/conf/cupsd.conf"))
- {
- /*
-- * PUT can only be done to configuration files under
-- * /admin/conf...
-+ * PUT can only be done to the cupsd.conf file...
- */
-
- cupsdLogMessage(CUPSD_LOG_ERROR,
-- "Request for subdirectory \"%s\"!", con->uri);
-+ "Disallowed PUT request for \"%s\"!", con->uri);
-
- if (!cupsdSendError(con, HTTP_FORBIDDEN, CUPSD_AUTH_NONE))
- {
-@@ -2019,7 +2016,7 @@
- * Install the configuration file...
- */
-
-- status = install_conf_file(con);
-+ status = install_cupsd_conf(con);
-
- /*
- * Return the status to the client...
-@@ -3685,11 +3682,11 @@
-
-
- /*
-- * 'install_conf_file()' - Install a configuration file.
-+ * 'install_cupsd_conf()' - Install a configuration file.
- */
-
- static http_status_t /* O - Status */
--install_conf_file(cupsd_client_t *con) /* I - Connection */
-+install_cupsd_conf(cupsd_client_t *con) /* I - Connection */
- {
- cups_file_t *in, /* Input file */
- *out; /* Output file */
-@@ -3705,9 +3702,9 @@
- * First construct the filenames...
- */
-
-- snprintf(conffile, sizeof(conffile), "%s%s", ServerRoot, con->uri + 11);
-- snprintf(newfile, sizeof(newfile), "%s%s.N", ServerRoot, con->uri + 11);
-- snprintf(oldfile, sizeof(oldfile), "%s%s.O", ServerRoot, con->uri + 11);
-+ snprintf(conffile, sizeof(conffile), "%s/cupsd.conf", ServerRoot);
-+ snprintf(newfile, sizeof(newfile), "%s/cupsd.conf.N", ServerRoot);
-+ snprintf(oldfile, sizeof(oldfile), "%s/cupsd.conf.O", ServerRoot);
-
- cupsdLogMessage(CUPSD_LOG_INFO, "Installing config file \"%s\"...", conffile);
-
-@@ -3829,14 +3826,10 @@
- }
-
- /*
-- * If the cupsd.conf file was updated, set the NeedReload flag...
-+ * Set the NeedReload flag...
- */
-
-- if (!strcmp(con->uri, "/admin/conf/cupsd.conf"))
-- NeedReload = RELOAD_CUPSD;
-- else
-- NeedReload = RELOAD_ALL;
--
-+ NeedReload = RELOAD_CUPSD;
- ReloadTime = time(NULL);
-
- /*
---- a/scheduler/conf.c
-+++ b/scheduler/conf.c
-@@ -26,7 +26,9 @@
- * parse_fatal_errors() - Parse FatalErrors values in a string.
- * parse_groups() - Parse system group names in a string.
- * parse_protocols() - Parse browse protocols in a string.
-- * read_configuration() - Read a configuration file.
-+ * parse_variable() - Parse a variable line.
-+ * read_cupsd_conf() - Read the cupsd.conf configuration file.
-+ * read_cups_files_conf() - Read the cups-files.conf configuration file.
- * read_location() - Read a <Location path> definition.
- * read_policy() - Read a <Policy name> definition.
- */
-@@ -79,9 +81,8 @@
- * Local globals...
- */
-
--static const cupsd_var_t variables[] =
-+static const cupsd_var_t cupsd_vars[] =
- {
-- { "AccessLog", &AccessLog, CUPSD_VARTYPE_STRING },
- #ifdef __APPLE__
- { "AppleQuotas", &AppleQuotas, CUPSD_VARTYPE_BOOLEAN },
- #endif /* __APPLE__ */
-@@ -103,24 +104,17 @@
- { "BrowseTimeout", &BrowseTimeout, CUPSD_VARTYPE_INTEGER },
- { "BrowseWebIF", &BrowseWebIF, CUPSD_VARTYPE_BOOLEAN },
- { "Browsing", &Browsing, CUPSD_VARTYPE_BOOLEAN },
-- { "CacheDir", &CacheDir, CUPSD_VARTYPE_STRING },
- { "Classification", &Classification, CUPSD_VARTYPE_STRING },
- { "ClassifyOverride", &ClassifyOverride, CUPSD_VARTYPE_BOOLEAN },
-- { "ConfigFilePerm", &ConfigFilePerm, CUPSD_VARTYPE_INTEGER },
-- { "DataDir", &DataDir, CUPSD_VARTYPE_STRING },
- { "DefaultLanguage", &DefaultLanguage, CUPSD_VARTYPE_STRING },
- { "DefaultLeaseDuration", &DefaultLeaseDuration, CUPSD_VARTYPE_INTEGER },
- { "DefaultPaperSize", &DefaultPaperSize, CUPSD_VARTYPE_STRING },
- { "DefaultPolicy", &DefaultPolicy, CUPSD_VARTYPE_STRING },
- { "DefaultShared", &DefaultShared, CUPSD_VARTYPE_BOOLEAN },
- { "DirtyCleanInterval", &DirtyCleanInterval, CUPSD_VARTYPE_INTEGER },
-- { "DocumentRoot", &DocumentRoot, CUPSD_VARTYPE_STRING },
-- { "ErrorLog", &ErrorLog, CUPSD_VARTYPE_STRING },
- { "ErrorPolicy", &ErrorPolicy, CUPSD_VARTYPE_STRING },
-- { "FileDevice", &FileDevice, CUPSD_VARTYPE_BOOLEAN },
- { "FilterLimit", &FilterLimit, CUPSD_VARTYPE_INTEGER },
- { "FilterNice", &FilterNice, CUPSD_VARTYPE_INTEGER },
-- { "FontPath", &FontPath, CUPSD_VARTYPE_STRING },
- { "HideImplicitMembers", &HideImplicitMembers, CUPSD_VARTYPE_BOOLEAN },
- { "ImplicitClasses", &ImplicitClasses, CUPSD_VARTYPE_BOOLEAN },
- { "ImplicitAnyClasses", &ImplicitAnyClasses, CUPSD_VARTYPE_BOOLEAN },
-@@ -135,8 +129,6 @@
- { "LimitRequestBody", &MaxRequestSize, CUPSD_VARTYPE_INTEGER },
- { "ListenBackLog", &ListenBackLog, CUPSD_VARTYPE_INTEGER },
- { "LogDebugHistory", &LogDebugHistory, CUPSD_VARTYPE_INTEGER },
-- { "LogFilePerm", &LogFilePerm, CUPSD_VARTYPE_INTEGER },
-- { "LPDConfigFile", &LPDConfigFile, CUPSD_VARTYPE_STRING },
- { "MaxActiveJobs", &MaxActiveJobs, CUPSD_VARTYPE_INTEGER },
- { "MaxClients", &MaxClients, CUPSD_VARTYPE_INTEGER },
- { "MaxClientsPerHost", &MaxClientsPerHost, CUPSD_VARTYPE_INTEGER },
-@@ -154,18 +146,34 @@
- { "MaxSubscriptionsPerPrinter",&MaxSubscriptionsPerPrinter, CUPSD_VARTYPE_INTEGER },
- { "MaxSubscriptionsPerUser", &MaxSubscriptionsPerUser, CUPSD_VARTYPE_INTEGER },
- { "MultipleOperationTimeout", &MultipleOperationTimeout, CUPSD_VARTYPE_INTEGER },
-- { "PageLog", &PageLog, CUPSD_VARTYPE_STRING },
- { "PageLogFormat", &PageLogFormat, CUPSD_VARTYPE_STRING },
- { "PreserveJobFiles", &JobFiles, CUPSD_VARTYPE_BOOLEAN },
- { "PreserveJobHistory", &JobHistory, CUPSD_VARTYPE_BOOLEAN },
-- { "Printcap", &Printcap, CUPSD_VARTYPE_STRING },
-- { "PrintcapGUI", &PrintcapGUI, CUPSD_VARTYPE_STRING },
- { "ReloadTimeout", &ReloadTimeout, CUPSD_VARTYPE_INTEGER },
-- { "RemoteRoot", &RemoteRoot, CUPSD_VARTYPE_STRING },
-- { "RequestRoot", &RequestRoot, CUPSD_VARTYPE_STRING },
- { "RIPCache", &RIPCache, CUPSD_VARTYPE_STRING },
- { "RootCertDuration", &RootCertDuration, CUPSD_VARTYPE_INTEGER },
- { "ServerAdmin", &ServerAdmin, CUPSD_VARTYPE_STRING },
-+ { "ServerName", &ServerName, CUPSD_VARTYPE_STRING },
-+ { "Timeout", &Timeout, CUPSD_VARTYPE_INTEGER },
-+ { "UseNetworkDefault", &UseNetworkDefault, CUPSD_VARTYPE_BOOLEAN }
-+};
-+static const cupsd_var_t cupsfiles_vars[] =
-+{
-+ { "AccessLog", &AccessLog, CUPSD_VARTYPE_STRING },
-+ { "CacheDir", &CacheDir, CUPSD_VARTYPE_STRING },
-+ { "ConfigFilePerm", &ConfigFilePerm, CUPSD_VARTYPE_INTEGER },
-+ { "DataDir", &DataDir, CUPSD_VARTYPE_STRING },
-+ { "DocumentRoot", &DocumentRoot, CUPSD_VARTYPE_STRING },
-+ { "ErrorLog", &ErrorLog, CUPSD_VARTYPE_STRING },
-+ { "FileDevice", &FileDevice, CUPSD_VARTYPE_BOOLEAN },
-+ { "FontPath", &FontPath, CUPSD_VARTYPE_STRING },
-+ { "LogFilePerm", &LogFilePerm, CUPSD_VARTYPE_INTEGER },
-+ { "LPDConfigFile", &LPDConfigFile, CUPSD_VARTYPE_STRING },
-+ { "PageLog", &PageLog, CUPSD_VARTYPE_STRING },
-+ { "Printcap", &Printcap, CUPSD_VARTYPE_STRING },
-+ { "PrintcapGUI", &PrintcapGUI, CUPSD_VARTYPE_STRING },
-+ { "RemoteRoot", &RemoteRoot, CUPSD_VARTYPE_STRING },
-+ { "RequestRoot", &RequestRoot, CUPSD_VARTYPE_STRING },
- { "ServerBin", &ServerBin, CUPSD_VARTYPE_PATHNAME },
- #ifdef HAVE_SSL
- { "ServerCertificate", &ServerCertificate, CUPSD_VARTYPE_PATHNAME },
-@@ -173,7 +181,6 @@
- { "ServerKey", &ServerKey, CUPSD_VARTYPE_PATHNAME },
- # endif /* HAVE_LIBSSL || HAVE_GNUTLS */
- #endif /* HAVE_SSL */
-- { "ServerName", &ServerName, CUPSD_VARTYPE_STRING },
- { "ServerRoot", &ServerRoot, CUPSD_VARTYPE_PATHNAME },
- { "SMBConfigFile", &SMBConfigFile, CUPSD_VARTYPE_STRING },
- { "StateDir", &StateDir, CUPSD_VARTYPE_STRING },
-@@ -181,11 +188,7 @@
- { "SystemGroupAuthKey", &SystemGroupAuthKey, CUPSD_VARTYPE_STRING },
- #endif /* HAVE_AUTHORIZATION_H */
- { "TempDir", &TempDir, CUPSD_VARTYPE_PATHNAME },
-- { "Timeout", &Timeout, CUPSD_VARTYPE_INTEGER },
-- { "UseNetworkDefault", &UseNetworkDefault, CUPSD_VARTYPE_BOOLEAN }
- };
--#define NUM_VARS (sizeof(variables) / sizeof(variables[0]))
--
-
- static const unsigned ones[4] =
- {
-@@ -209,7 +212,12 @@
- static int parse_fatal_errors(const char *s);
- static int parse_groups(const char *s);
- static int parse_protocols(const char *s);
--static int read_configuration(cups_file_t *fp);
-+static int parse_variable(const char *filename, int linenum,
-+ const char *line, const char *value,
-+ size_t num_vars,
-+ const cupsd_var_t *vars);
-+static int read_cupsd_conf(cups_file_t *fp);
-+static int read_cups_files_conf(cups_file_t *fp);
- static int read_location(cups_file_t *fp, char *name, int linenum);
- static int read_policy(cups_file_t *fp, char *name, int linenum);
-
-@@ -695,18 +703,59 @@
- #endif /* __APPLE__ */
-
- /*
-- * Read the configuration file...
-+ * Read the cups-files.conf file...
-+ */
-+
-+ if ((fp = cupsFileOpen(CupsFilesFile, "r")) != NULL)
-+ {
-+ status = read_cups_files_conf(fp);
-+
-+ cupsFileClose(fp);
-+
-+ if (!status)
-+ {
-+ if (TestConfigFile)
-+ printf("%s contains errors\n", CupsFilesFile);
-+ else
-+ cupsdLogMessage(CUPSD_LOG_CRIT, "Unable to read %s", CupsFilesFile);
-+ return (0);
-+ }
-+ }
-+ else if (errno == ENOENT)
-+ cupsdLogMessage(CUPSD_LOG_INFO, "No %s, using defaults.", CupsFilesFile);
-+ else
-+ {
-+ cupsdLogMessage(CUPSD_LOG_CRIT, "Unable to open %s: %s", CupsFilesFile,
-+ strerror(errno));
-+ return (0);
-+ }
-+
-+ if (!ErrorLog)
-+ cupsdSetString(&ErrorLog, CUPS_LOGDIR "/error_log");
-+
-+ /*
-+ * Read the cupsd.conf file...
- */
-
- if ((fp = cupsFileOpen(ConfigurationFile, "r")) == NULL)
-+ {
-+ cupsdLogMessage(CUPSD_LOG_CRIT, "Unable to open %s: %s", ConfigurationFile,
-+ strerror(errno));
- return (0);
-+ }
-
-- status = read_configuration(fp);
-+ status = read_cupsd_conf(fp);
-
- cupsFileClose(fp);
-
- if (!status)
-+ {
-+ if (TestConfigFile)
-+ printf("%s contains errors\n", ConfigurationFile);
-+ else
-+ cupsdLogMessage(CUPSD_LOG_CRIT, "Unable to read %s", ConfigurationFile);
- return (0);
-+ }
-
- RunUser = getuid();
-
-@@ -826,6 +875,13 @@
- BrowseACL = cupsdFindLocation("CUPS_INTERNAL_BROWSE_ACL");
-
- /*
-+ * Make sure ConfigFilePerm and LogFilePerm have sane values...
-+ */
-+
-+ ConfigFilePerm &= 0664;
-+ LogFilePerm &= 0664;
-+
-+ /*
- * Open the system log for cupsd if necessary...
- */
-
-@@ -2398,13 +2454,174 @@
-
-
- /*
-- * 'read_configuration()' - Read a configuration file.
-+ * 'parse_variable()' - Parse a variable line.
- */
-
- static int /* O - 1 on success, 0 on failure */
--read_configuration(cups_file_t *fp) /* I - File to read from */
-+parse_variable(
-+ const char *filename, /* I - Name of configuration file */
-+ int linenum, /* I - Line in configuration file */
-+ const char *line, /* I - Line from configuration file */
-+ const char *value, /* I - Value from configuration file */
-+ size_t num_vars, /* I - Number of variables */
-+ const cupsd_var_t *vars) /* I - Variables */
-+{
-+ size_t i; /* Looping var */
-+ const cupsd_var_t *var; /* Variables */
-+ char temp[1024]; /* Temporary string */
-+
-+
-+ for (i = num_vars, var = vars; i > 0; i --, var ++)
-+ if (!strcasecmp(line, var->name))
-+ break;
-+
-+ if (i == 0)
-+ {
-+ /*
-+ * Unknown directive! Output an error message and continue...
-+ */
-+
-+ if (!value)
-+ cupsdLogMessage(CUPSD_LOG_ERROR, "Missing value for %s on line %d of %s.",
-+ line, linenum, filename);
-+ else
-+ cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown directive %s on line %d of %s.",
-+ line, linenum, filename);
-+
-+ return (0);
-+ }
-+
-+ switch (var->type)
-+ {
-+ case CUPSD_VARTYPE_INTEGER :
-+ if (!value)
-+ {
-+ cupsdLogMessage(CUPSD_LOG_ERROR,
-+ "Missing integer value for %s on line %d of %s.",
-+ line, linenum, filename);
-+ return (0);
-+ }
-+ else if (!isdigit(*value & 255))
-+ {
-+ cupsdLogMessage(CUPSD_LOG_ERROR,
-+ "Bad integer value for %s on line %d of %s.",
-+ line, linenum, filename);
-+ return (0);
-+ }
-+ else
-+ {
-+ int n; /* Number */
-+ char *units; /* Units */
-+
-+ n = strtol(value, &units, 0);
-+
-+ if (units && *units)
-+ {
-+ if (tolower(units[0] & 255) == 'g')
-+ n *= 1024 * 1024 * 1024;
-+ else if (tolower(units[0] & 255) == 'm')
-+ n *= 1024 * 1024;
-+ else if (tolower(units[0] & 255) == 'k')
-+ n *= 1024;
-+ else if (tolower(units[0] & 255) == 't')
-+ n *= 262144;
-+ else
-+ {
-+ cupsdLogMessage(CUPSD_LOG_ERROR,
-+ "Unknown integer value for %s on line %d of %s.",
-+ line, linenum, filename);
-+ return (0);
-+ }
-+ }
-+
-+ if (n < 0)
-+ {
-+ cupsdLogMessage(CUPSD_LOG_ERROR,
-+ "Bad negative integer value for %s on line %d of "
-+ "%s.", line, linenum, filename);
-+ return (0);
-+ }
-+ else
-+ {
-+ *((int *)var->ptr) = n;
-+ }
-+ }
-+ break;
-+
-+ case CUPSD_VARTYPE_BOOLEAN :
-+ if (!value)
-+ {
-+ cupsdLogMessage(CUPSD_LOG_ERROR,
-+ "Missing boolean value for %s on line %d of %s.",
-+ line, linenum, filename);
-+ return (0);
-+ }
-+ else if (!strcasecmp(value, "true") ||
-+ !strcasecmp(value, "on") ||
-+ !strcasecmp(value, "enabled") ||
-+ !strcasecmp(value, "yes") ||
-+ atoi(value) != 0)
-+ {
-+ *((int *)var->ptr) = TRUE;
-+ }
-+ else if (!strcasecmp(value, "false") ||
-+ !strcasecmp(value, "off") ||
-+ !strcasecmp(value, "disabled") ||
-+ !strcasecmp(value, "no") ||
-+ !strcasecmp(value, "0"))
-+ {
-+ *((int *)var->ptr) = FALSE;
-+ }
-+ else
-+ {
-+ cupsdLogMessage(CUPSD_LOG_ERROR,
-+ "Unknown boolean value %s on line %d of %s.",
-+ value, linenum, filename);
-+ return (0);
-+ }
-+ break;
-+
-+ case CUPSD_VARTYPE_PATHNAME :
-+ if (!value)
-+ {
-+ cupsdLogMessage(CUPSD_LOG_ERROR,
-+ "Missing pathname value for %s on line %d of %s.",
-+ line, linenum, filename);
-+ return (0);
-+ }
-+
-+ if (value[0] == '/')
-+ strlcpy(temp, value, sizeof(temp));
-+ else
-+ snprintf(temp, sizeof(temp), "%s/%s", ServerRoot, value);
-+
-+ if (access(temp, 0))
-+ {
-+ cupsdLogMessage(CUPSD_LOG_ERROR,
-+ "File or directory for \"%s %s\" on line %d of %s "
-+ "does not exist.", line, value, linenum, filename);
-+ return (0);
-+ }
-+
-+ cupsdSetString((char **)var->ptr, temp);
-+ break;
-+
-+ case CUPSD_VARTYPE_STRING :
-+ cupsdSetString((char **)var->ptr, value);
-+ break;
-+ }
-+
-+ return (1);
-+}
-+
-+
-+/*
-+ * 'read_cupsd_conf()' - Read the cupsd.conf configuration file.
-+ */
-+
-+static int /* O - 1 on success, 0 on failure */
-+read_cupsd_conf(cups_file_t *fp) /* I - File to read from */
- {
-- int i; /* Looping var */
- int linenum; /* Current line number */
- char line[HTTP_MAX_BUFFER],
- /* Line from file */
-@@ -2416,7 +2633,6 @@
- *value, /* Pointer to value */
- *valueptr; /* Pointer into value */
- int valuelen; /* Length of value */
-- cupsd_var_t const *var; /* Current variable */
- http_addrlist_t *addrlist, /* Address list */
- *addr; /* Current address */
- unsigned ip[4], /* Address value */
-@@ -2426,7 +2642,6 @@
- cupsd_location_t *location; /* Browse location */
- cups_file_t *incfile; /* Include file */
- char incname[1024]; /* Include filename */
-- struct group *group; /* Group */
-
-
- /*
-@@ -2458,7 +2673,7 @@
- incname, strerror(errno));
- else
- {
-- read_configuration(incfile);
-+ read_cupsd_conf(incfile);
- cupsFileClose(incfile);
- }
- }
-@@ -2482,8 +2697,6 @@
- if (linenum == 0)
- return (0);
- }
-- else if (!strcasecmp(line, "FatalErrors"))
-- FatalErrors = parse_fatal_errors(value);
- else if (!strcasecmp(line, "FaxRetryInterval") && value)
- {
- JobRetryInterval = atoi(value);
-@@ -3160,81 +3373,6 @@
- }
- }
- #endif /* HAVE_SSL */
-- else if (!strcasecmp(line, "User") && value)
-- {
-- /*
-- * User ID to run as...
-- */
--
-- if (isdigit(value[0] & 255))
-- {
-- int uid = atoi(value);
--
-- if (!uid)
-- cupsdLogMessage(CUPSD_LOG_ERROR,
-- "Will not use User 0 as specified on line %d "
-- "for security reasons. You must use a non-"
-- "privileged account instead.",
-- linenum);
-- else
-- User = atoi(value);
-- }
-- else
-- {
-- struct passwd *p; /* Password information */
--
-- endpwent();
-- p = getpwnam(value);
--
-- if (p)
-- {
-- if (!p->pw_uid)
-- cupsdLogMessage(CUPSD_LOG_ERROR,
-- "Will not use User %s (UID=0) as specified on line "
-- "%d for security reasons. You must use a non-"
-- "privileged account instead.",
-- value, linenum);
-- else
-- User = p->pw_uid;
-- }
-- else
-- cupsdLogMessage(CUPSD_LOG_ERROR,
-- "Unknown User \"%s\" on line %d, ignoring!",
-- value, linenum);
-- }
-- }
-- else if (!strcasecmp(line, "Group") && value)
-- {
-- /*
-- * Group ID to run as...
-- */
--
-- if (isdigit(value[0]))
-- Group = atoi(value);
-- else
-- {
-- endgrent();
-- group = getgrnam(value);
--
-- if (group != NULL)
-- Group = group->gr_gid;
-- else
-- cupsdLogMessage(CUPSD_LOG_ERROR,
-- "Unknown Group \"%s\" on line %d, ignoring!",
-- value, linenum);
-- }
-- }
-- else if (!strcasecmp(line, "SystemGroup") && value)
-- {
-- /*
-- * SystemGroup (admin) group(s)...
-- */
--
-- if (!parse_groups(value))
-- cupsdLogMessage(CUPSD_LOG_ERROR,
-- "Unknown SystemGroup \"%s\" on line %d, ignoring!",
-- value, linenum);
-- }
- else if (!strcasecmp(line, "HostNameLookups") && value)
- {
- /*
-@@ -3313,22 +3451,6 @@
- cupsdLogMessage(CUPSD_LOG_WARN, "Unknown LogTimeFormat %s on line %d.",
- value, linenum);
- }
-- else if (!strcasecmp(line, "PrintcapFormat") && value)
-- {
-- /*
-- * Format of printcap file?
-- */
--
-- if (!strcasecmp(value, "bsd"))
-- PrintcapFormat = PRINTCAP_BSD;
-- else if (!strcasecmp(value, "plist"))
-- PrintcapFormat = PRINTCAP_PLIST;
-- else if (!strcasecmp(value, "solaris"))
-- PrintcapFormat = PRINTCAP_SOLARIS;
-- else
-- cupsdLogMessage(CUPSD_LOG_WARN, "Unknown PrintcapFormat %s on line %d.",
-- value, linenum);
-- }
- else if (!strcasecmp(line, "ServerTokens") && value)
- {
- /*
-@@ -3432,123 +3554,197 @@
- "line %d.", value, linenum);
- }
- #endif /* HAVE_SSL */
-+ else if (!strcasecmp(line, "AccessLog") ||
-+ !strcasecmp(line, "CacheDir") ||
-+ !strcasecmp(line, "ConfigFilePerm") ||
-+ !strcasecmp(line, "DataDir") ||
-+ !strcasecmp(line, "DocumentRoot") ||
-+ !strcasecmp(line, "ErrorLog") ||
-+ !strcasecmp(line, "FatalErrors") ||
-+ !strcasecmp(line, "FileDevice") ||
-+ !strcasecmp(line, "FontPath") ||
-+ !strcasecmp(line, "Group") ||
-+ !strcasecmp(line, "LogFilePerm") ||
-+ !strcasecmp(line, "LPDConfigFile") ||
-+ !strcasecmp(line, "PageLog") ||
-+ !strcasecmp(line, "Printcap") ||
-+ !strcasecmp(line, "PrintcapFormat") ||
-+ !strcasecmp(line, "RemoteRoot") ||
-+ !strcasecmp(line, "RequestRoot") ||
-+ !strcasecmp(line, "ServerBin") ||
-+ !strcasecmp(line, "ServerCertificate") ||
-+ !strcasecmp(line, "ServerKey") ||
-+ !strcasecmp(line, "ServerRoot") ||
-+ !strcasecmp(line, "SMBConfigFile") ||
-+ !strcasecmp(line, "StateDir") ||
-+ !strcasecmp(line, "SystemGroup") ||
-+ !strcasecmp(line, "SystemGroupAuthKey") ||
-+ !strcasecmp(line, "TempDir") ||
-+ !strcasecmp(line, "User"))
-+ {
-+ cupsdLogMessage(CUPSD_LOG_WARN,
-+ "Please move \"%s%s%s\" on line %d of %s to the %s file; "
-+ "this will become an error in a future release.",
-+ line, value ? " " : "", value ? value : "", linenum,
-+ ConfigurationFile, CupsFilesFile);
-+ }
- else
-+ parse_variable(ConfigurationFile, linenum, line, value,
-+ sizeof(cupsd_vars) / sizeof(cupsd_vars[0]), cupsd_vars);
-+ }
-+
-+ return (1);
-+}
-+
-+/*
-+ * 'read_cups_files_conf()' - Read the cups-files.conf configuration file.
-+ */
-+
-+static int /* O - 1 on success, 0 on failure */
-+read_cups_files_conf(cups_file_t *fp) /* I - File to read from */
-+{
-+ int linenum; /* Current line number */
-+ char line[HTTP_MAX_BUFFER], /* Line from file */
-+ *value; /* Value from line */
-+ struct group *group; /* Group */
-+
-+
-+ /*
-+ * Loop through each line in the file...
-+ */
-+
-+ linenum = 0;
-+
-+ while (cupsFileGetConf(fp, line, sizeof(line), &value, &linenum))
-+ {
-+ if (!strcasecmp(line, "FatalErrors"))
-+ FatalErrors = parse_fatal_errors(value);
-+ else if (!strcasecmp(line, "Group") && value)
- {
- /*
-- * Find a simple variable in the list...
-+ * Group ID to run as...
- */
-
-- for (i = NUM_VARS, var = variables; i > 0; i --, var ++)
-- if (!strcasecmp(line, var->name))
-- break;
--
-- if (i == 0)
-+ if (isdigit(value[0]))
-+ Group = atoi(value);
-+ else
- {
-- /*
-- * Unknown directive! Output an error message and continue...
-- */
-+ endgrent();
-+ group = getgrnam(value);
-
-- if (!value)
-- cupsdLogMessage(CUPSD_LOG_ERROR, "Missing value for %s on line %d.",
-- line, linenum);
-+ if (group != NULL)
-+ Group = group->gr_gid;
- else
-- cupsdLogMessage(CUPSD_LOG_ERROR, "Unknown directive %s on line %d.",
-- line, linenum);
-- continue;
-+ {
-+ cupsdLogMessage(CUPSD_LOG_ERROR,
-+ "Unknown Group \"%s\" on line %d of %s.", value,
-+ linenum, CupsFilesFile);
-+ if (FatalErrors & CUPSD_FATAL_CONFIG)
-+ return (0);
-+ }
- }
-+ }
-+ else if (!strcasecmp(line, "PrintcapFormat") && value)
-+ {
-+ /*
-+ * Format of printcap file?
-+ */
-
-- switch (var->type)
-+ if (!strcasecmp(value, "bsd"))
-+ PrintcapFormat = PRINTCAP_BSD;
-+ else if (!strcasecmp(value, "plist"))
-+ PrintcapFormat = PRINTCAP_PLIST;
-+ else if (!strcasecmp(value, "solaris"))
-+ PrintcapFormat = PRINTCAP_SOLARIS;
-+ else
- {
-- case CUPSD_VARTYPE_INTEGER :
-- if (!value)
-- cupsdLogMessage(CUPSD_LOG_ERROR,
-- "Missing integer value for %s on line %d!",
-- line, linenum);
-- else
-- {
-- int n; /* Number */
-- char *units; /* Units */
--
--
-- n = strtol(value, &units, 0);
--
-- if (units && *units)
-- {
-- if (tolower(units[0] & 255) == 'g')
-- n *= 1024 * 1024 * 1024;
-- else if (tolower(units[0] & 255) == 'm')
-- n *= 1024 * 1024;
-- else if (tolower(units[0] & 255) == 'k')
-- n *= 1024;
-- else if (tolower(units[0] & 255) == 't')
-- n *= 262144;
-- }
--
-- if (n < 0)
-- cupsdLogMessage(CUPSD_LOG_ERROR,
-- "Bad negative integer value for %s on line %d!",
-- line, linenum);
-- else
-- *((int *)var->ptr) = n;
-- }
-- break;
-+ cupsdLogMessage(CUPSD_LOG_ERROR,
-+ "Unknown PrintcapFormat \"%s\" on line %d of %s.",
-+ value, linenum, CupsFilesFile);
-+ if (FatalErrors & CUPSD_FATAL_CONFIG)
-+ return (0);
-+ }
-+ }
-+ else if (!strcasecmp(line, "SystemGroup") && value)
-+ {
-+ /*
-+ * SystemGroup (admin) group(s)...
-+ */
-
-- case CUPSD_VARTYPE_BOOLEAN :
-- if (!value)
-- cupsdLogMessage(CUPSD_LOG_ERROR,
-- "Missing boolean value for %s on line %d!",
-- line, linenum);
-- else if (!strcasecmp(value, "true") ||
-- !strcasecmp(value, "on") ||
-- !strcasecmp(value, "enabled") ||
-- !strcasecmp(value, "yes") ||
-- atoi(value) != 0)
-- *((int *)var->ptr) = TRUE;
-- else if (!strcasecmp(value, "false") ||
-- !strcasecmp(value, "off") ||
-- !strcasecmp(value, "disabled") ||
-- !strcasecmp(value, "no") ||
-- !strcasecmp(value, "0"))
-- *((int *)var->ptr) = FALSE;
-- else
-- cupsdLogMessage(CUPSD_LOG_ERROR,
-- "Unknown boolean value %s on line %d.",
-- value, linenum);
-- break;
-+ if (!parse_groups(value))
-+ {
-+ cupsdLogMessage(CUPSD_LOG_ERROR,
-+ "Unknown SystemGroup \"%s\" on line %d of %s.", value,
-+ linenum, CupsFilesFile);
-+ if (FatalErrors & CUPSD_FATAL_CONFIG)
-+ return (0);
-+ }
-+ }
-+ else if (!strcasecmp(line, "User") && value)
-+ {
-+ /*
-+ * User ID to run as...
-+ */
-
-- case CUPSD_VARTYPE_PATHNAME :
-- if (!value)
-- {
-- cupsdLogMessage(CUPSD_LOG_ERROR,
-- "Missing pathname value for %s on line %d!",
-- line, linenum);
-- break;
-- }
-+ if (isdigit(value[0] & 255))
-+ {
-+ int uid = atoi(value);
-
-- if (value[0] == '/')
-- strlcpy(temp, value, sizeof(temp));
-- else
-- snprintf(temp, sizeof(temp), "%s/%s", ServerRoot, value);
-+ if (!uid)
-+ {
-+ cupsdLogMessage(CUPSD_LOG_ERROR,
-+ "Will not use User 0 as specified on line %d of %s "
-+ "for security reasons. You must use a non-"
-+ "privileged account instead.",
-+ linenum, CupsFilesFile);
-+ if (FatalErrors & CUPSD_FATAL_CONFIG)
-+ return (0);
-+ }
-+ else
-+ User = atoi(value);
-+ }
-+ else
-+ {
-+ struct passwd *p; /* Password information */
-
-- if (access(temp, 0))
-- {
-- cupsdLogMessage(CUPSD_LOG_ERROR,
-- "File or directory for \"%s %s\" on line %d "
-- "does not exist!", line, value, linenum);
-- break;
-- }
-+ endpwent();
-+ p = getpwnam(value);
-
-- case CUPSD_VARTYPE_STRING :
-- cupsdSetString((char **)var->ptr, value);
-- break;
-+ if (p)
-+ {
-+ if (!p->pw_uid)
-+ {
-+ cupsdLogMessage(CUPSD_LOG_ERROR,
-+ "Will not use User %s (UID=0) as specified on line "
-+ "%d of %s for security reasons. You must use a "
-+ "non-privileged account instead.",
-+ value, linenum, CupsFilesFile);
-+ if (FatalErrors & CUPSD_FATAL_CONFIG)
-+ return (0);
-+ }
-+ else
-+ User = p->pw_uid;
-+ }
-+ else
-+ {
-+ cupsdLogMessage(CUPSD_LOG_ERROR,
-+ "Unknown User \"%s\" on line %d of %s.",
-+ value, linenum, CupsFilesFile);
-+ if (FatalErrors & CUPSD_FATAL_CONFIG)
-+ return (0);
-+ }
- }
- }
-+ else if (!parse_variable(CupsFilesFile, linenum, line, value,
-+ sizeof(cupsfiles_vars) / sizeof(cupsfiles_vars[0]),
-+ cupsfiles_vars) &&
-+ (FatalErrors & CUPSD_FATAL_CONFIG))
-+ return (0);
- }
-
- return (1);
- }
-
--
- /*
- * 'read_location()' - Read a <Location path> definition.
- */
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/scheduler/conf.h cups/scheduler/conf.h
---- cups~/scheduler/conf.h 2012-12-08 00:29:09.000000000 +0100
-+++ cups/scheduler/conf.h 2012-12-08 00:29:10.000000000 +0100
-@@ -96,7 +96,9 @@
- */
-
- VAR char *ConfigurationFile VALUE(NULL),
-- /* Configuration file to use */
-+ /* cupsd.conf file to use */
-+ *CupsFilesFile VALUE(NULL),
-+ /* cups-files.conf file to use */
- *ServerName VALUE(NULL),
- /* FQDN for server */
- *ServerAdmin VALUE(NULL),
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/scheduler/ipp.c cups/scheduler/ipp.c
---- cups~/scheduler/ipp.c 2012-12-08 00:29:09.000000000 +0100
-+++ cups/scheduler/ipp.c 2012-12-08 00:54:10.627688371 +0100
-@@ -2597,7 +2597,7 @@
- send_ipp_status(con, IPP_NOT_POSSIBLE,
- _("File device URIs have been disabled! "
- "To enable, see the FileDevice directive in "
-- "\"%s/cupsd.conf\"."),
-+ "\"%s/cups-files.conf\"."),
- ServerRoot);
- return;
- }
-diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cups~/scheduler/main.c cups/scheduler/main.c
---- cups~/scheduler/main.c 2012-12-08 00:29:09.000000000 +0100
-+++ cups/scheduler/main.c 2012-12-08 00:29:10.000000000 +0100
-@@ -251,6 +251,35 @@
- cupsdSetStringf(&ConfigurationFile, "%s/%s", current, argv[i]);
- free(current);
- }
-+
-+ if (!CupsFilesFile)
-+ {
-+ char *filename, /* Copy of cupsd.conf filename */
-+ *slash; /* Final slash in cupsd.conf filename */
-+ size_t len; /* Size of buffer */
-+
-+ len = strlen(ConfigurationFile) + 15;
-+ if ((filename = malloc(len)) == NULL)
-+ {
-+ _cupsLangPrintf(stderr,
-+ _("cupsd: Unable to get path to "
-+ "cups-files.conf file."));
-+ return (1);
-+ }
-+
-+ strlcpy(filename, ConfigurationFile, len);
-+ if ((slash = strrchr(filename, '/')) == NULL)
-+ {
-+ _cupsLangPrintf(stderr,
-+ _("cupsd: Unable to get path to "
-+ "cups-files.conf file."));
-+ return (1);
-+ }
-+
-+ strlcpy(slash, "/cups-files.conf", len - (slash - filename));
-+ cupsdSetString(&CupsFilesFile, filename);
-+ free(filename);
-+ }
- break;
-
- case 'f' : /* Run in foreground... */
-@@ -289,6 +318,29 @@
- UseProfiles = 0;
- break;
-
-+ case 's' : /* Set cups-files.conf location */
-+ i ++;
-+ if (i >= argc)
-+ {
-+ _cupsLangPuts(stderr, _("cupsd: Expected cups-files.conf "
-+ "filename after \"-s\" option."));
-+ usage(1);
-+ }
-+
-+ if (argv[i][0] != '/')
-+ {
-+ /*
-+ * Relative filename not allowed...
-+ */
-+
-+ _cupsLangPuts(stderr, _("cupsd: Relative cups-files.conf "
-+ "filename not allowed."));
-+ usage(1);
-+ }
-+
-+ cupsdSetString(&CupsFilesFile, argv[i]);
-+ break;
-+
- #ifdef __APPLE__
- case 'S' : /* Disable system management functions */
- fputs("cupsd: -S (disable system management) for internal "
-@@ -315,8 +367,40 @@
- usage(1);
- }
-
-- if (!ConfigurationFile)
-- cupsdSetString(&ConfigurationFile, CUPS_SERVERROOT "/cupsd.conf");
-+ if (!ConfigurationFile)
-+ {
-+ cupsdSetString(&ConfigurationFile, CUPS_SERVERROOT "/cupsd.conf");
-+ cupsdSetString(&CupsFilesFile, CUPS_SERVERROOT "/cups-files.conf");
-+ }
-+
-+ if (!CupsFilesFile)
-+ {
-+ char *filename, /* Copy of cupsd.conf filename */
-+ *slash; /* Final slash in cupsd.conf filename */
-+ size_t len; /* Size of buffer */
-+
-+ len = strlen(ConfigurationFile) + 15;
-+ if ((filename = malloc(len)) == NULL)
-+ {
-+ _cupsLangPrintf(stderr,
-+ _("cupsd: Unable to get path to "
-+ "cups-files.conf file."));
-+ return (1);
-+ }
-+
-+ strlcpy(filename, ConfigurationFile, len);
-+ if ((slash = strrchr(filename, '/')) == NULL)
-+ {
-+ _cupsLangPrintf(stderr,
-+ _("cupsd: Unable to get path to "
-+ "cups-files.conf file."));
-+ return (1);
-+ }
-+
-+ strlcpy(slash, "/cups-files.conf", len - (slash - filename));
-+ cupsdSetString(&CupsFilesFile, filename);
-+ free(filename);
-+ }
-
- /*
- * If the user hasn't specified "-f", run in the background...
---- a/test/run-stp-tests.sh
-+++ b/test/run-stp-tests.sh
-@@ -326,25 +326,10 @@
-
- cat >/tmp/cups-$user/cupsd.conf <<EOF
- Browsing Off
--FileDevice yes
--Printcap
- Listen 127.0.0.1:$port
--User $user
--ServerRoot /tmp/cups-$user
--StateDir /tmp/cups-$user
--ServerBin /tmp/cups-$user/bin
--CacheDir /tmp/cups-$user/share
--DataDir /tmp/cups-$user/share
--FontPath /tmp/cups-$user/share/fonts
- PassEnv LOCALEDIR
--DocumentRoot $root/doc
--RequestRoot /tmp/cups-$user/spool
--TempDir /tmp/cups-$user/spool/temp
- MaxSubscriptions 3
- MaxLogSize 0
--AccessLog /tmp/cups-$user/log/access_log
--ErrorLog /tmp/cups-$user/log/error_log
--PageLog /tmp/cups-$user/log/page_log
- AccessLogLevel actions
- LogLevel debug2
- LogTimeFormat usecs
-@@ -359,6 +344,25 @@
- </Policy>
- EOF
-
-+cat >/tmp/cups-$user/cups-files.conf <<EOF
-+FileDevice yes
-+Printcap
-+User $user
-+ServerRoot /tmp/cups-$user
-+StateDir /tmp/cups-$user
-+ServerBin /tmp/cups-$user/bin
-+CacheDir /tmp/cups-$user/share
-+DataDir /tmp/cups-$user/share
-+FontPath /tmp/cups-$user/share/fonts
-+DocumentRoot $root/doc
-+RequestRoot /tmp/cups-$user/spool
-+TempDir /tmp/cups-$user/spool/temp
-+PidFile /tmp/cups-$user/cupsd.pid
-+AccessLog /tmp/cups-$user/log/access_log
-+ErrorLog /tmp/cups-$user/log/error_log
-+PageLog /tmp/cups-$user/log/page_log
-+EOF
-+
- #
- # Setup lots of test queues - half with PPD files, half without...
- #