]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
The scheduler now sets the CUPS_MAX_MESSAGE environment variable for filters
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 18 May 2012 20:17:41 +0000 (20:17 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 18 May 2012 20:17:41 +0000 (20:17 +0000)
(STR #4074)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10485 7a7537e8-13f0-0310-91df-b6672ffda945

CHANGES-1.5.txt
man/filter.man
scheduler/env.c

index d5cfb14ca192fc8e10aa3f9bdcc07d0df097efa5..e94eb20cae28afe928cb692c117a3075b7343b55 100644 (file)
@@ -3,6 +3,8 @@ CHANGES-1.5.txt
 
 CHANGES IN CUPS V1.5.4
 
+       - The scheduler now sets the CUPS_MAX_MESSAGE environment variable for
+         filters (STR #4074)
        - Fixed a build issue when using older versions of autoconf (STR #4084)
        - The IPP backend now treats the client-error-not-possible status code
          as a job history issue, allowing IPP printing to Windows to work
index 59fcd297193db35e61de006fbac24ab8632ee257..a9805180a3ecd4fe7cee99208f1672afaa0e5e9c 100644 (file)
@@ -12,7 +12,7 @@
 .\"   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 filter 7 "CUPS" "13 April 2012" "Apple Inc."
+.TH filter 7 "CUPS" "18 May 2012" "Apple Inc."
 .SH NAME
 filter \- cups file conversion filter interface
 .SH SYNOPSIS
@@ -169,6 +169,11 @@ CUPS_FILETYPE
 The type of file being printed: "job-sheet" for a banner page and "document"
 for a regular print file.
 .TP 5
+CUPS_MAX_MESSAGE
+.br
+The maximum size of a message sent to stderr, including any leading prefix and
+the trailing newline.
+.TP 5
 CUPS_SERVERROOT
 .br
 The root directory of the server.
index 19a942a07092a6da1bb54359c68379c669edd6e2..b41fea1185294c5318e969acc75af3a25965d4b9 100644 (file)
@@ -62,7 +62,7 @@ cupsdInitEnv(void)
 
 #if defined(__APPLE__)
  /*
-  * Add special voodoo magic for MacOS X - this allows MacOS X 
+  * Add special voodoo magic for MacOS X - this allows MacOS X
   * programs to access their bundle resources properly...
   *
   * This string is replaced in cupsdStartProcess()...
@@ -227,6 +227,8 @@ cupsdUpdateEnv(void)
   set_if_undefined("TZ", NULL);
   set_if_undefined("USER", "root");
   set_if_undefined("VG_ARGS", NULL);
+
+  cupsdSetEnvf("CUPS_MAX_MESSAGE", "%d", CUPSD_SB_BUFFER_SIZE - 1);
 }