Skip to content

Releases: apple/cups

v1.1b4

17 Mar 20:51
Compare
Choose a tag to compare

Changes in CUPS v1.1b4:

  • Documentation updates.
  • Many makefile and configuration script fixes (should now compile better under *BSD.)
  • The MediaPosition attribute was being mishandled by GhostScript, causing the RIP to fail whenever a paper tray was selected.
  • The scheduler now logs the final line of log information from a filter, even if it doesn't end with a newline; this primarily affects GhostScript error output.
  • The scheduler was saving implicit classes, so after a few restarts you'll end up with AnyPrinter, AnyAnyPrinter, etc.
  • The JPEG autodetection didn't work with some JPEG files that came from digital cameras (JPEG but not JFIF); the new magic types should work with all images that the JPEG library can handle.
  • Fixed a bug in the new contains() MIME type rule that could cause cupsd to crash.
  • Switched to using strtol() in the MIME type code so that you can use hex, octal, or decimal constants as desired in the mime.types file.
  • Banner files are now treated as templates, allowing any type of file to be used as a banner.
  • Added a 30-second timeout to backend device reports so that a hung backend will not prevent the scheduler from starting.
  • Backends are once again terminated when jobs are stopped; the CUPS-supplied backends will stay alive until the downstream filters have had a chance to clear out old page data.
  • The charset lookup in the CUPS localization support was wrong (iso8859-x instead of iso-8859-x)
  • Changed the "cpNNNN" code page files to "windows-NNNN" to match the IANA registrations.
  • New PostScript banner pages.
  • Added Windows BMP and Alias PIX image file support to the image filter.
  • The PNG reading coded didn't free all of its buffers.
  • Added Digest authentication support to the client and server code.
  • Added Solaris options to System V commands.
  • Now support the output-bin job template attribute.
  • Now log the job-billing attribute in the page_log file, and keep track of the total number of pages in the job-media-sheets-completed attribute.
  • The penwidth option is now in micrometers to support more accurate width specification.
  • The image filters now support interlaced and transparent PNG files.
  • Didn't handle Keep-Alive for HTTP/1.0 clients.
  • The BrowsePoll support didn't handle when BrowseInterval was set to 0 (now uses 30 seconds if BrowseInterval is 0)
  • The DeskJet driver now supports 600 DPI color for printers that support it.
  • New lpinfo and lpmove commands.
  • The lpq command now supports the Digital UNIX output format.
  • The LPD mini-daemon now supports all required LPD operations.
  • Implemented timeouts for multi-file documents.
  • New cupsPrintFiles() function in the CUPS API library to print multiple files using create-job and send-document requests (1 job ID for multiple files)
  • The lp command now sends multiple files as a single job, matching the behavior of the System V command.
  • The "cancel -a" command now purges job history files.

v1.1b3

17 Mar 20:51
Compare
Choose a tag to compare

Changes in CUPS v1.1b3:

  • Documentation updates.
  • The startup script redirected stderr before stdout, which caused problems with some versions of Bourne shell and Bash.
  • Fixed a bug in the scheduler's PPD language reading code.
  • Fixed a bug in the scheduler's check for the manufacturer in the PPD.
  • The pstoraster filter didn't allow some input and output attributes to be set.
  • Added banner page support.
  • Added missing PAM configuration file.
  • Configuration script fixes for Linux and *BSD.
  • The log file code was using the wrong sign for the timezone offset.
  • The default printcap file is now empty (no printcap file is generated).
  • The scheduler did not start jobs destined for remote printers when they became available.
  • The scheduler now sends jobs to remote printers immediately. (when sending jobs to a class, the remote printer is only used when it becomes available)
  • The scheduler now supports printing of banner pages via the job-sheets attribute (banner files go in /usr/share/cups/banners)
  • The cupsd process now forks itself into the background (override with -f)
  • Added several *BSD enhancements.
  • Added UNSUPPORTED libtool option to configuration script to allow the use of libtool. Note that this is UNSUPPORTED by us, but added by request of the *BSD folks.
  • The parallel, serial, and usb backends now retry the opening of their ports. This allows multiple print queues to be associated with a single physical port, and will allow CUPS to support several types of parallel port auto-switches in the near future.
  • Set-Job-Attributes now supports adding, changing, and deleting job template attributes, and no longer allows job-printer-uri to be set (see CUPS-Move-Job)
  • Added CUPS-Move-Job operation to support moving of jobs.
  • The CGI template functionality now supports multiple languages (still only have templates for English)
  • The CUPS-Get-Printers and CUPS-Get-Classes operations now support filtering as defined in the IDD.
  • The Get-Jobs, CUPS-Get-Printers, and CUPS-Get-Classes operations no longer limit themselves to 1000 jobs, printers, or classes (believe it or not, this is needed for some sites)
  • The web interfaces now support language-specific templates.
  • The web admin interface now supports class management.
  • The web admin interface now shows a list of manufacturers before selecting the PPD/driver for a specific printer.
  • The web admin interface now supports configuration of the default printer options in the PPD file.
  • The web interface now uses printer/class authentication for the test page instead of admin authentication.
  • Updated the RPM spec file for the current release.
  • Updated language support for Windows code pages.
  • 8-bit character set files can now use multiple fonts (needed for Arabic, Greek, Hebrew, etc.)
  • Added basic right-to-left text support in the text filter.
  • The POSIX locale now uses ISO-8859-1 instead of US-ASCII.
  • Fixed PDF printing problems.
  • Fixed PostScript RIP page device dictionary elements that weren't getting passed in cups_get_params().
  • Added a new "contains" rule for the magic file typing.
  • The "printable" rule now accepts characters from 128 to 255 (needed for Microsoft character sets)
  • Added support for ~/.cupsrc as well as /etc/cups/client.conf so that the default server can be configured on a per-user basis without environment variables.
  • Added LPD mini-daemon to support incoming LPD jobs.

v1.1b2

17 Mar 20:51
Compare
Choose a tag to compare

Changes in CUPS v1.1b2:

  • Documentation updates.
  • The lp command didn't always load the user-defined destinations, preventing it from seeing the default printer.
  • Many configure script and makefile fixes.
  • The Microsoft code page files were missing from the distribution.
  • Added a workaround for the HP IPP client (which is sending an invalid printer-uri in requests)
  • Fixed the encoding of text-with-language and name-with-language to match the IPP spec.
  • Added support for unknown value tags in the IPP routines (previously they would be ignored)
  • Integrated GNU GhostScript 5.50 into the pstoraster filter.
  • Client hostname resolution was broken on little-endian machines.
  • Now look at client.conf file for client's default server and printer.
  • The cupsServer() function did not close the client.conf file if it contained a ServerName directive.
  • Added BrowseAllow, BrowseDeny, BrowseOrder, BrowsePoll, and BrowseRelay directives.
  • BrowseInterval 0 disables advertising of local printers, but still receives information on remote printers.
  • New browse polling daemon (for polling servers on different networks)
  • New PPD cache file for faster startup times with large numbers of PPD files.
  • The Host: field was incorrectly required for HTTP/1.0 clients.
  • New set-job-attributes operation now supported.
  • The mime_load_types() and mime_load_convs() functions did not close their input files.

v1.1b1

17 Mar 20:51
Compare
Choose a tag to compare

Changes in CUPS v1.1b1:

  • NEW web-based administration interface.
  • NEW EPSON printer drivers.
  • NEW user-defined printers and options.
  • NEW persistent jobs and job history
  • NEW IPP/1.1 support
  • NEW template-based web interfaces.
  • NEW CUPS-get-devices and CUPS-get-ppds operations.
  • NEW support for create-job and send-file operations.
  • NEW certificate-based authentication for local administration.
  • NEW USB backend.
  • The lpr command now produces human-readable error messages.
  • The lpq command now produces BSD standard format output instead of OSF/1 output. This should resolve the SAMBA print queue problems that have been reported.
  • The IPP backend did not always detect when the "raw" option was being used.
  • The "lpstat -p" command would stop after the first active printer.
  • The "lpstat -v" command would stop before the first remote printer.

v1.1.9

17 Mar 20:51
Compare
Choose a tag to compare

Changes in CUPS v1.1.9:

  • Revamped the configure script to use a modular approach for the various tests.
  • Added --with-openssl-* options to properly reference the OpenSSL libraries in DSOs.
  • Added --with-cups-user and --with-cups-group options to specify the default user and group for CUPS.
  • Added AIX shared library support.
  • Added AIX device discovery for the serial and parallel ports.
  • Now use install program or script to install directories, files, and symlinks.
  • Updated pstops filter to use strict handling of EPS files embedded in a PostScript document. The %%EOF handling in 1.1.8 caused some dvips files not to print.
  • Fixed yet another memory allocation bug in pstoraster that would cause it to crash. This fix also ensures that all memory allocations are done on (at least) a 64-bit boundary.
  • Fixed Digest authentication - httpGetSubField() didn't skip the Digest keyword.
  • The scheduler did not properly handle Digest authentication with the new multiple-group support.
  • The scheduler did not allow usernames that were not in the UNIX password file to be used for Digest authentication from passwd.md5.
  • The scheduler could not scan PPD files that only used a carriage return (i.e. MacOS PPD files); the new code is also about 40% faster, so servers with thousands of PPD files should start much faster now.
  • The scheduler now stores the PPD file size and modification times in the ppds.dat file, so it can now incrementally update the PPD database from the model directory, resulting in significantly faster startup times.
  • The lpinfo command did not return a non-zero status code if an error occurred.
  • Fixed a bug in the scheduler's UpdateJob() function. Basically, all jobs shared the same status buffer, and the "buffer start" pointer could point to 1 byte before the beginning of the buffer. The new implementation uses a separate buffer for each job and eliminates the buffer start bug.
  • The IPP backend would send N copies of a document if the receiving device didn't support the copies attribute, even if the upstream driver already added the necessary commands to generate the copies. This was most noticeable with HP printers where N * N copies would come out instead of N.
  • The PostScript filter (pstops) did not properly handle duplex printing on inkjet printers that provide this option. Copies would be put on the front and back sides of the duplexed page, and the filter did not output an even number of pages.
  • The backends always caught SIGTERM after they connected to the printer. This prevented raw jobs from being cancelled early.
  • The cupsSetDests() function now removes any printers, instances, and options that are not defined by the user or server. This should prevent old system-wide options from being used in individual user accounts.
  • Updated the EPSON printer driver and added PPDs for the newer EPSON Stylus printers that only support the "ESC i" graphics command.
  • The lpadmin command didn't allow you to add remote printers to a local class.
  • The lpadmin command didn't allow you to set the options (quotas, etc.) for a class.
  • The scheduler did not load or save the job-sheets-default attribute for classes.
  • The scheduler did not automatically recreate remote printers that were part of a class.
  • It was possible for a printer class to list the same printer more than once.
  • The scheduler now makes a backup copy of classes.conf and printers.conf before writing the new file.
  • The lppasswd program incorrectly asked for a new password when deleting an existing MD5 password account.
  • The scheduler did not match "/printers/name.ppd" against a location of "/printers/name".
  • The client code did not always handle HTTP encryption upgrades properly.
  • The client code now caches the last Digest password so it can retry using a new resource path or nonce value, which are included in the MD5 sum sent to the server. This should eliminate unnecessary password prompts when using Digest authentication.
  • The lppasswd command didn't have a man page.
  • Updated the PJL detection rules to allow the universal escape to occur anywhere in the first 128 bytes of the file.
  • The cups-polld program would poll servers continuously with no delay if there was an error contacting the server.
  • The IPP backend would send an empty job-name or requesting-user-name attribute if the corresponding job attribute was an empty string. While this is allowed by the IPP specification, some HP JetDirect implementations return a client-error-bad-request error if an empty name attribute value is received. The new code only sends these attributes if they are not the empty string.
  • At least some versions of the HP JetDirect firmware do not correctly implement IPP. Added additional checks to the IPP backend to eliminate extra, unsupported attributes which should normally be ignored by a compliant IPP device.
  • The scheduler did not copy the complete list of supported file types into the document-format-supported attribute. This caused clients to not send the local file type (such as application/vnd.cups-raw for raw print files) and the corresponding bad output in some cases.
  • The scheduler did not fully copy attributes from a set-job-attributes request - string attributes were only referenced, which could cause cupsd to crash or behave irratically.
  • The lp command didn't send the right value for the job-hold-until attribute when "-H resume" was specified.
  • The IPP backend now returns as soon as a job is completed or reported as "pending-held".
  • Added new ImplicitAnyClasses and HideImplicitMembers directives to the cupsd.conf file to make implicit classes more usable/transparent to the user.
  • Clients can now (with the appropriate authentication) retrieve and update the server configuration files using HTTP GET and PUT requests.
  • The web interface didn't allow you to modify the location or description of the printer.
  • The pdftops filter now uses its own temporary file function to work with PDF files using LZW compression (which use the uncompress program or gunzip)
  • The SystemGroup directive now supports specification of multiple groups.
  • Added new Include directive to cupsd.conf, a la Apache.
  • Added new pseudo-driver/PPD called "raw" that can be used to create/convert a raw queue. This also allows raw queues to be created in the web interface.
  • The pdftops filter didn't handle image objects that used JPEG and Flate compression together.
  • The pstops filter counted pages wrong when using the N-up and even/odd printing options. This prevented the page-ranges option from working properly.
  • Added another fix to pstoraster for a bus error condition caused by a lack of parenthesis in the Ghostscript code.
  • Added new "natural-scaling" option which scales the natural size of the image (percent of natural image size instead of percent of page size.)
  • The lppasswd program is now setuid to the CUPS user instead of root.
  • The PPD functions did not allow for PPD files that defined the page sizes and margins before the page size options.
  • The mime.types file now checks for the PJL "LANGUAGE = Postscript" command for PostScript files.
  • The scheduler did not truncate file: output files.
  • The PPD file reading code did not handle options with raw quotes (") in the human-readable names.
  • The pdftops filter now remaps the space character when (bad) PDF files contain a .notdef glyph for the space character.

v1.1.8

17 Mar 20:51
Compare
Choose a tag to compare

Changes in CUPS v1.1.8:

  • Updated spec file to generate separate cups-pstoraster package for pstoraster.
  • The spec file wasn't setting LOGDIR in the install.
  • The scheduler might restart a stopped printer after stopping a print job. Thanks to Florent Guiliani for finding this bug!
  • The init script showed run level 0 for the Red Hat chkconfig program. This is incorrect because Red Hat doesn't use run level 0 for shutdown scripts.
  • The IPP backend did not handle the client-error-not-found error when checking the status of the job that was sent. This caused remote queues to stop on client machines when the server had job history disabled.
  • Added httpConnectEncrypt() function to avoid performance penalty for setting up encrypted connections initially.
  • Use httpConnectEncrypt() in all client apps and in the CUPS API to ensure consistent usage of encryption throughout.
  • Jobs weren't queued to remote classes (fix from Richard Begg.)
  • AIX changes from Richard Begg.
  • Fixed the pstops fix for GNOME output - no longer use the page numbers in the %%Page: comment since GNOME puts a filename instead (!?@!#?!). There is still an issue with N-up printing since GNOME defines its fonts in the first page instead of the document setup section (pages must be independent according to the DSC spec) People with GNOME printing problems should consult bug #54489...
  • The imagetops filter produced PAGE: messages when generating PostScript for a non-PostScript printer (only affects page-label and Classification options.)
  • The updated pdftops filter was looking for an options file called xpdf.conf instead of pdftops.conf.

v1.1.7

17 Mar 20:51
Compare
Choose a tag to compare

Changes in CUPS v1.1.7:

  • Configuration script changes, including new "--with-docdir=/dir" option to relocate CUPS documentation and web content according to your favorite version of the FHS.
  • Documentation updates for encryption, SLP, etc.
  • New Software Test Plan and automated test script to test CUPS prior to installation.
  • All scheduler configuration files are now case insensitive to match Apache.
  • Added support for Apache ListenBackLog, Require, Satisfy, , , and LimitRequestSize directives.
  • Added support for all Apache log levels...
  • Added support for "double" HostNameLookups.
  • Added new "RunAsUser" directive to support non-root configurations on the standard (priviledged) ports.
  • Added support for non-root invocation of the lpd backend (does no reserve a priviledged port, which might not work with some LPD servers...)
  • Added new PrintcapFormat directive to control the output format of the printcap file (BSD or Solaris formats are supported at present.)
  • The CUPS directory service routines now handle ECONNREFUSED errors gracefully rather than shutting all browsing off.
  • ippErrorString() now returns the recommended error messages from the IPP/1.1 Model and Semantics document.
  • Fixed a minor IPP compliance issue with responses to requests without the attributes-charset or attributes-natural-language attributes.
  • Sun fix: need httpFlush() call for chunked IPP requests in cupsDoFileRequest().
  • httpConnect() now looks up "localhost" by name and by address (127.0.0.1) for users the go to the trouble of removing the required localhost entry in /etc/hosts or on their DNS server...
  • Added support for Linux 2.4.x devfs parallel port filenames (/dev/parallel/N).
  • cupsDo[File]Request() and cupsGetPPD() no longer block trying to reconnect to a crashed or inaccessable server.
  • Added new ppdEmitJCL() function to better handle PJL commands from PPD files.
  • A bug in UpdateJob() would cause the scheduler to consume 100% CPU until another request was submitted.
  • The cancel command did not support the "-" option to cancel all jobs on all printers.
  • The cancel and lprm commands did not support cancelling the next/current job in the queue.
  • The pdftops and pstoraster filters were using unsafe temporary file functions; while this is not a problem in normal configurations (the CUPS temporary directory is restricted), they now use the cupsTempFd() function.
  • The mime.types file was missing the recognition rule for Sun Raster images.
  • The admin CGI was passing a printer make string to ippSetCGIVars() that was being replaced in that function.
  • "lpoptions -l" would resave the options...
  • The EPSON drivers now send the "end packet mode" command when printing to USB devices.
  • The scheduler initialized certificates before loading the cupsd.conf file.
  • The scheduler used /dev/random to collect random data, which could block if insufficient entropy information had been collected by the kernel. Now use /dev/urandom.
  • Fixed a bug in the whitespace skipping code in httpGetSubField().
  • The LPD backend now supports a new "order" option: "lpd://server/queue?order=control,data" (default) and "lpd://server/queue?order=data,control".
  • The scheduler enforced a 30 second timeout on all clients regardless of the Timeout directive and if a CGI was currently running.
  • cupsParseOptions() now sets boolean options to option=true or option=false.
  • The "percent complete" calculations in the LPD backend could overflow on large files, causing the percentage to wrap to 0 every 40MB or so.
  • Fixed a memory reallocation bug in pstoraster that could cause it to crash.
  • The LPD backend now sanitizes the job title to avoid potential problems on remote LPD servers.
  • The lp command did not send the requesting-user-name attribute when altering a job.
  • The pstops filter did not handle PostScript files with lines longer than 8191 bytes.
  • The scheduler no longer uses inet_addr() to convert IP addresses in dot format (mmm.nnn.ooo.ppp) to the 32-bit format, since it will not work for IPv6 addresses.
  • New "Classification" directive to force labeling of the current classification on each page.
  • New "page-label" attribute to add per-page labels ("For Official Use Only", "Draft", etc.)
  • The scheduler now sets the HTTPS environment variable for CGI programs when a client connects using encryption.
  • Fixed a recursion bug in the scheduler that could cause cupsd to crash when a printer was removed.
  • The LPDEST and PRINTER environment variables didn't support instances.
  • Dropped the "file" backend from the device list that is reported, since it is only available for testing and should never be used in a production environment. The file: device can still be used, but it won't show up in the list of devices from lpinfo or the web interface.
  • Added support for /dev/lpa# parallel ports under *BSD.
  • Added META variables to the CGI header template to prevent caching of the results.
  • Fixed an unaligned memory buffer for the pstoraster clist states; this caused bus errors for some combinations of printers, drivers, and options.
  • Re-added black reduction for colorful colors; this helps to prevent dark colors from getting desaturated. (only used when converting RGB to CMYK)
  • Added two new directives - MaxJobsPerPrinter and MaxJobsPerUser - to allow an administrator to set the maximum number of pending jobs in a queue or submitted by a user.
  • The scheduler no longer stops a printer if it can't create the status pipe or run the filters or backend. This will allow heavily loaded servers to service clients or start print jobs as the load allows.
  • Fixed a bug in the Set-Job-Attributes code that could crash the scheduler (patch from Martin Zielinski)
  • cupsSetDests() did not quote option values with embedded spaces.
  • Added support for the Enable-Printer and Disable-Printer extension operations (same as CUPS-Accept-Jobs and CUPS-Reject-Jobs.)
  • The AppSocket and IPP backends now wait for the print job to be finished before exiting; this should prevent the loss of print jobs with older JetDirect firmware and make consecutive print jobs print faster.
  • The BMP loading code did not handle resolution values of 0. This is a problem with BMP image files produced by the GIMP.
  • The HTTP Upgrade code (upgrade to TLS encryption) bypassed the authentication checks.
  • The HTTP Upgrade code did not send a 426 status code to the client and end the current request. This caused a race condition between the client and server for the upgrade to TLS.
  • Fixed a bug in the EOF and Trailer detection code in the pstops filter.
  • The imagetoraster filter did not add the margins to the custom page size in the raster header.
  • The imagetops filter did not adjust the custom page size to the size of the printed image.
  • The imagetops filter did not include DSC comments which are required by some printers.
  • The imagetops filter did not insert newlines in Base85 encoded output, causing files to contain lines longer than 255 characters (violation of the DSC).
  • Added support for the DeskJet 900 series duplexer and CRET color modes in the HP driver.
  • Added support for PPD-defined margins in the HP driver.
  • Fixed the debugging output from pstoraster - the font list was not terminated by a newline.
  • Some versions of the HP-UX pam_unix authentication module apparently do not pass the appdata_ptr argument to the conversation function, preventing the scheduler from authenticating users using PAM under HP-UX. A workaround using a static variable has been added to address this problem.
  • Fixed a bug in the scheduler SortPrinters() function that could cause printers to disappear or the scheduler to crash when adding a printer.
  • Changed the pstops filter to not do per-page filtering if the file does not conform to at least version 3.0 of the document structuring conventions. This seems to "fix" printing with broken apps.
  • The image filters did not handle older TIFF files that lacked the samples-per-pixel and bits-per-pixel tags.
  • Added new cupsGetJobs() and cupsFreeJobs() functions to manage print jobs.
  • cupsEncodeOptions() would encode names of 0 length and cupsAddOption() and cupsParseOptions() would add names of 0 length.
  • The scheduler might block waiting for status messages after starting a new print job. Thanks to Florent Guiliani for finding this bug!

v1.1.5

17 Mar 20:51
Compare
Choose a tag to compare

Changes in CUPS v1.1.5:

  • Security updates - new default configuration does not broadcast printer information and only allows access from the local system.
  • EXPERIMENTAL encryption support - CUPS now optionally supports TLS/SSL encryption via the OpenSSL library.
  • Documentation updates.
  • Makefile/configure script updates.
  • The RPM spec file didn't work out-of-the-box under RedHat or Mandrake.
  • Minor code cleanup to remove extraneous compiler warnings.
  • cupsTempFile() was using %p for the temporary filename; this should have been %08x (just 8 digit hex)
  • Deleting a printer with active print jobs would still crash the server.
  • ippWrite() and ipp_write_file() didn't send the correct value length for name-with-language and text-with-language attributes.
  • Updated IPP code to support copied strings (that should not be freed); this provides slightly more efficient IPP server performance.
  • Updated PDF filter to Xpdf 0.91.
  • httpGets() could go into an infinite loop if a line longer than the input buffer size was sent by a client. This could be used in a Denial-of-Service attack.
  • The lpstat and CUPS API functions now request only the data required when getting the list of printer or class information. This should improve performance with large numbers of printers on slower machines.
  • The scheduler was always enforcing the FilterLimit, even if FilterLimit was set to 0.
  • Updated the Linux USB backend to support Mandrake's /dev/usb/usblp# filenames.
  • The PRINTER and LPDEST environment variables did not override the lpoptions default printer.
  • The PPD read functions incorrectly included trailing characters (usually whitespace) after quoted string attributes.
  • The multiple-document-handling attribute handling code did not check for the correct value for collated copies (separate-documents-uncollated-copies).
  • The EPSON driver did not work with OKIDATA printers in EPSON emulation mode (needed change-emulation command)
  • The HP-GL/2 filter did not scale the plot properly in scale mode 2.
  • Added PPD files for 9-pin and 24-pin OKIDATA printers.
  • The httpSeparate() function didn't handle passwords that started with a number.
  • ippDelete() could free the character set string multiple times in name-with-language and text-with-language attributes.
  • The scheduler would access freed memory right after freeing it (for debug messages); these parts of the code have been reordered to avoid this situation which was causing sporatic errors and crashes.
  • The ppdClose() function didn't free all of the strings in the ppd_file_t structure.
  • The LoadAllJobs() function in the scheduler did not close the spool directory.
  • Changed all sprintf's that use string formats to snprintf's, even if the destination buffer is larger than the source string(s); this protects against buffer overflows caused outside of CUPS...
  • Changed all strcpy's to strncpy's between local and global variables, even if the destination buffer is larger than the source string; this protects against buffer overflows caused outside of CUPS...
  • The CUPS certificate functions didn't use the CUPS_SERVERROOT environment variable when set.
  • The directory services code was copying instead of comparing the remote printer info, resulting in unnecessary updates of the printer attributes for remote printers.
  • Added new mime.types rules to allow automatic raw printing of PCL and ESC/P files; PJL headers are parsed to differentiate between PostScript and PCL job files. This should eliminate a lot of the reports of SAMBA printing problems due to the missing "-oraw" or "-l" options.
  • The mimeLoadType() function didn't handle the 3-argument contains() function.
  • The LoadPPDs() function in the scheduler didn't properly set the alloc_ppds variable or handle a PPD database containing 0 printers.
  • The scheduler FindAvailablePrinter() function didn't use the same queuing logic as the CheckJobs() function. This caused classes to stall if a remote printer was always busy.
  • Jobs are now assigned to printers in a class round-robin style. This should prevent the first server in the class from bearing the brunt of the jobs.
  • The scheduler's LoadAllJobs() function didn't always restore remote printers for queued jobs on startup.
  • The serial backend didn't support the higher baud rates with the old termios interface. It now supports 57600 and 115200 baud.
  • The serial backend now supports different types of flow control; previously it ignored the flow=XYZ option in the device URI.
  • The serial backend now supports DTR/DSR flow control, which is popular on dot-matrix printers (access with "flow=dtrdsr" in the device URI)
  • Added new job-originating-host-name attribute for jobs. The new attribute provides the hostname or IP address of the machine that submitted the job.
  • The set-job-attributes code no longer allows read-only job attributes to be changed.
  • Expanded the click area for the navigation bar in the web interface.
  • Updated the lp and cancel commands to support all of the Solaris print options (some are simply ignored since they do not map)
  • Updated the scheduler to limit the number of file descriptors to the maximum select() set size. This was causing problems on Solaris systems where the max FD count was increased beyond 1024.
  • The scheduler's LoadDevices() function was getting interrupted by the SIGCHLD signal handler; now ignore child signals while loading devices.
  • Added quota and allow/deny user support for printers and classes.
  • Removed black/CMY adjustment code from the PS and image file RIPs; it was interfering with some CUPS driver dithering code.
  • The lpc program stopped listing the queue statuses after the first active printer.
  • The cups-lpd program used an output format that the Solaris printing system did not understand.
  • Updated the lpq program to use the Solaris format except under Tru64 UNIX.
  • Some DEC PPD files incorrectly use "Off" for the null value in UI constraints. Added "Off" to the list of accepted null values.
  • Changed the _BSD define constants to _BSD in all of the backends.
  • Added support for "lpstat printername", which is an undocumented feature in Solaris.
  • The HP-GL/2 filter now only sets the plot size if it is set in the plot file.
  • The lpmove command wasn't sending the requesting user name, causing it to always fail.
  • Updated the cupsTempFile() code to use GetTempPath() under Windows.
  • The cups-lpd mini-daemon didn't limit the number of data files accepted, didn't use cupsTempFile(), didn't handle control file job information in any order, and didn't free job options after printing a file.
  • The scheduler copy_banner() function did not explicitly set the owner and permissions of the banner files, which could prevent the banner pages from printing on some systems.
  • The lpstat program wasn't listing remote classes.
  • The scheduler did not verify that the printer-uri attribute was specified in all requests that required it.

v1.1.4

17 Mar 20:51
Compare
Choose a tag to compare

Changes in CUPS v1.1.4:

  • Makefile and configure script fixes.
  • **** Changed the default Printcap setting **** to /etc/printcap. There are just too many people asking why application XYZ doesn't see their printers!
  • The web admin interface now displays an error if it can't get the list of printer drivers from cupsd.
  • The IPP backend was putting the copies option before the other job options were set. This caused the IPP request to contain attribute groups in the wrong order, which prevented remote printing.
  • Added checks in scheduler to free memory used for IPP requests and language information when closing a client connection.
  • Fixed the duplex option in the HP LaserJet driver. It should now work with all LaserJet printers (and compatibles)
  • The add-printer web interface didn't initialize the "old info" data pointer, which caused random crashes on many OS's.
  • Fixed many page sizes defined in the Level 1 compatibility file "gs_statd.ps" to match reality.
  • Fixed another bug in the setpagedevice "code" in Ghostscript. It should now accept all standard Adobe attributes on all platforms.
  • Fixed pstoraster so that it reallocates memory for color depth changes as well as size/resolution changes. This removes an ordering constraint on the color, page size, and resolution options in PPD files.
  • The IPP backend didn't use the job's character set when the destination printer supported it. This caused problems when printing text files to other CUPS servers.
  • Updated the logic used to determine when to rebuild the PPD file database. The scheduler now checks the dates and the number of PPD files (was just checking the dates.)
  • Updated the ippSetCGIVars() function (used by the web interfaces) to only filter valid string values.
  • The PostScript filter was scaling 2-up pages incorrectly. This caused the edges of some pages to be clipped.

v1.1.3

17 Mar 20:51
Compare
Choose a tag to compare

Changes in CUPS v1.1.3:

  • Makefile fixes.
  • RPM spec file changes.
  • Documentation updates.
  • Enabled pstoraster debug messages for everything (only logged when LogLevel set to "debug"...)
  • Changed the Input/OutputAttributes fix in pstoraster so that it works on all platforms.
  • The HP-GL/2 filter didn't set the right green color value in encoded polylines or text.
  • Updated the "fitplot" code to handle plot sizes specified as "PSwidth,length" and "PSlength,width".
  • Updated the Linux parallel and USB backends to open the device files prior to looking in /proc for autoprobe info. This makes sure that loadable device driver modules are in fact loaded...
  • Added new FilterLimit directive to limit the number of processing jobs/filters on a system.
  • set-job-attributes didn't change the job-state to held/pending when the job-hold-until attribute was specified.
  • set-job-attributes didn't save the new job attributes.
  • Now change the "requesting-user-name" attribute in requests from remote systems to "remroot" when an unauthenticated "root" user is sent. This can be changed using the new RemoteRoot directive in cupsd.conf.
  • The cancel-job, hold-job, release-job, and restart-job operations didn't log the authenticated username.
  • The cups-lpd mini-daemon now checks for a document-format option before forcing raw mode with filter mode 'l'.
  • The cups-lpd mini-daemon now supports "-o" options on the command-line (passed by inetd) to set global defaults for all print queues.
  • The pstops filter assumed that a file with a Trailer comment would also have an EOF comment.
  • Added new cupsSetPasswordCB(), cupsSetServer(), cupsSetUser(), and ippSetPort() functions to better support client applications (especially GUIs...)
  • The CUPS-add-class and CUPS-add-printer operations didn't reset the printer-name attribute on remote print queues that had to be renamed when a local printer was defined with the same name.
  • The lpoptions command now supports a "-r" option to remove options for a printer or instance.
  • The lpadmin and admin.cgi programs no longer allow class and printer names to begin with a number; this caused the command-line utilities to become confused.
  • The Linux USB backend now looks for both the parallel and usblp driver names in the device list.
  • Added a new FontPath directive to cupsd.conf, and also a "--with-fontpath" option for the configure script to specify alternate font paths for pstoraster.
  • The CUPS-move-job operation didn't update the job-printer-uri attribute.
  • The scheduler only looked up printers and classes by name in IPP requests, instead of using the full URI. This caused problems with KUPS and friends with remote printers.
  • The scheduler now handles better localization of hostnames (e.g. server is host.foo.com, remote is host.subfoo.foo.com, localized is not host.subfoo...)
  • The scheduler logging functions now use a common log file checking/rotation function (courtesy of Crutcher Dunnavant at Red Hat)
  • The scheduler could accept more client connections than it allocated for if more than one Port or Listen line was present in cupsd.conf.
  • Other minor scheduler performance tweeks.
  • The lpq and lprm commands didn't support the default printer set using lpoptions.
  • The lpoptions command now supports a "-l" option to list the printer-specific options and their current settings.
  • The web printer and class lists now show a link to the default printer or class at the top of the page.
  • The text filter now supports pretty printing of shell and perl scripts as well as C/C++ source files.
  • The top and bottom margins were reversed for landscape text printing.
  • The lpq and lprm commands didn't understand printer instances.
  • The scheduler only selected on the first 100 file descriptors instead of the maximum file descriptor limit.
  • The scheduler client, listener, and mainline functions now share code to disable and enable monitoring for new client connections.
  • The imagetoraster filter didn't support all of the required pagedevice parameters.
  • The serial backend now checks for 100 serial ports under Linux.
  • The scheduler used sscanf() to pull out the remote printer location, description, and make/model strings, but if any of these options was empty then sscanf() would stop processing.
  • Added "debug2" log level to provide a little less verbose debugging information at the "debug" level.
  • The scheduler would crash if you stopped a printer that was currently printing a job.
  • The scheduler incorrectly allowed jobs in the cancelled, aborted, or completed state to be cancelled.
  • The image filters did not load TIFF images properly for bottom-to-top and right-to-left orientations.
  • Added new cupsEncodeOptions() function to encode CUPS options as IPP job attributes.
  • The IPP backend, LPD mini-daemon, client commands, and CUPS API did not properly encode multiple option values separated by commas.
  • Added new scheduler malloc logging in debug mode (provides summary of total arena size, allocated, and free bytes once a minute)
  • The EPM-based distributions didn't install the correct symlinks for a few man pages.
  • Fixed a memory leak in the scheduler - wasn't freeing old filters when deleting or renaming printers.
  • The scheduler now queries the primary IP address for the name of the server and maps any incoming requests from that address to the server name. This fixes web admin mapping problems from server.domain.com to localhost.
  • The web printer modify interface now remembers the previous device and driver settings (except for serial ports.)
  • The job-k-octets attribute is now stored as part of the job attributes; this preserves the information after a job is completed when job file history is turned off.
  • Dropped option sub-group parsing code for the moment, since many Xerox PPD files abuse this feature in PPD files and don't follow the hierarchy rules.
  • Added new wrapper code around options so that duplex options for some HP printers don't prevent prints.
  • Added support for Digital UNIX/Tru64 UNIX/OSF/1 format for "lpstat -v" output.
  • Now show the URI for remote printers instead of /dev/null in "lpstat -v" output.
  • Creating classes and adding printers to a class with the lpadmin command didn't work.
  • The banner pages and test page should now format correctly in both portrait and landscape orientations.
  • Updated banner page substitution so that { can appear by itself without quoting.