]> git.ipfire.org Git - thirdparty/cups.git/log
thirdparty/cups.git
18 years agoAdd BCP and TBCP port monitors.
mike [Tue, 7 Feb 2006 03:43:29 +0000 (03:43 +0000)] 
Add BCP and TBCP port monitors.

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

18 years agoFix compiler warnings about y0 and y1 (they are also math functions)
mike [Tue, 7 Feb 2006 02:45:26 +0000 (02:45 +0000)] 
Fix compiler warnings about y0 and y1 (they are also math functions)

Update PostScript filter to preserve the page labels, correctly handle
collation and slow duplex output, add an emit-jcl option, and handle
files larger than 2Gb.

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

18 years agoAdd MacRoman encoding support.
mike [Mon, 6 Feb 2006 13:27:53 +0000 (13:27 +0000)] 
Add MacRoman encoding support.

Add transcoding of PPD NickName as needed.

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

18 years agoUse chgrp instead of -g option to install...
mike [Mon, 6 Feb 2006 12:10:16 +0000 (12:10 +0000)] 
Use chgrp instead of -g option to install...

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

18 years agoUpdate debug2 log messages to use function name prefix and debug
mike [Mon, 6 Feb 2006 02:57:43 +0000 (02:57 +0000)] 
Update debug2 log messages to use function name prefix and debug
and higher to not use function names.

Add printer-specific document-format-supported attributes.

scheduler/printers.c:
    - cupsdAddPrinterFilter(): Renamed to static add_printer_filter().
    - cupsdCreateCommonData(): Remove document-format-supported.
    - cupsdSetPrinterAttrs(): Call add_printer_formats() for printer-
      specific formats.
    - add_printer_formats(): Added.

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

18 years agoStick with mbr_uid_to_uuid() and mbr_gid_to_uuid() instead of name versions
mike [Sun, 5 Feb 2006 21:58:58 +0000 (21:58 +0000)] 
Stick with mbr_uid_to_uuid() and mbr_gid_to_uuid() instead of name versions
which are not always available.

Fix OSX compile problems with launchd code.

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

18 years agoscheduler/auth.c:
mike [Sun, 5 Feb 2006 19:24:01 +0000 (19:24 +0000)] 
scheduler/auth.c:
    - cupsdCheckGroup(): Use membership APIs to check group membership
      on MacOS X.

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

18 years agoscheduler/cert.c:
mike [Sun, 5 Feb 2006 18:28:27 +0000 (18:28 +0000)] 
scheduler/cert.c:
    - cupsdAddCert():
    - cupsdInitCerts():

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

18 years agoDo chgrp separate from install to avoid user-mode make install failures.
mike [Sun, 5 Feb 2006 15:03:02 +0000 (15:03 +0000)] 
Do chgrp separate from install to avoid user-mode make install failures.

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

18 years agoACL support for Linux (and possibly Solaris/*BSD)
mike [Sun, 5 Feb 2006 03:36:35 +0000 (03:36 +0000)] 
ACL support for Linux (and possibly Solaris/*BSD)

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

18 years agoUpdate headers to include link to favicon.ico.
mike [Sun, 5 Feb 2006 01:33:41 +0000 (01:33 +0000)] 
Update headers to include link to favicon.ico.

Add "CUPS" in front of version number in header.tmpl.

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

18 years agoFix keyword substitution in spec file.
mike [Sun, 5 Feb 2006 01:02:52 +0000 (01:02 +0000)] 
Fix keyword substitution in spec file.

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

18 years agoUpdate configure script to generate system groups.
mike [Sun, 5 Feb 2006 01:00:29 +0000 (01:00 +0000)] 
Update configure script to generate system groups.

Update scheduler conf loading code to use default browse
protocols and system groups from configure script.

Fix some more bugs in the RPM spec file.

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

18 years ago"Satisfy any" now interacts with "Encryption" as expected: if connecting
mike [Sat, 4 Feb 2006 17:47:21 +0000 (17:47 +0000)] 
"Satisfy any" now interacts with "Encryption" as expected: if connecting
from an allowed address, the encryption requirement will not be enforced.

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

18 years agoMessages from filters without a prefix are no displayed as errors, not
mike [Sat, 4 Feb 2006 17:39:51 +0000 (17:39 +0000)] 
Messages from filters without a prefix are no displayed as errors, not
debug.

Don't put debug/debug2 messages in the printer-state-message.

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

18 years agoOne more time, fix RPM upgrades...
mike [Sat, 4 Feb 2006 15:57:39 +0000 (15:57 +0000)] 
One more time, fix RPM upgrades...

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

18 years agoStill more fixing of RPM upgrades...
mike [Sat, 4 Feb 2006 15:37:33 +0000 (15:37 +0000)] 
Still more fixing of RPM upgrades...

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

18 years agoTweak RPM spec file template to better handle upgrades and to mark
mike [Sat, 4 Feb 2006 15:06:40 +0000 (15:06 +0000)] 
Tweak RPM spec file template to better handle upgrades and to mark
/usr/share/doc/cups as a documentation directory.

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

18 years agoUse cupsArray for Clients and Listeners...
mike [Sat, 4 Feb 2006 05:24:35 +0000 (05:24 +0000)] 
Use cupsArray for Clients and Listeners...

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

18 years agoUse cupsArray for Locations, and allocate location string instead of
mike [Sat, 4 Feb 2006 03:15:38 +0000 (03:15 +0000)] 
Use cupsArray for Locations, and allocate location string instead of
using array.

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

18 years agoAdd FINAL_CONTENT_TYPE environment variable to filter/backend interface
mike [Fri, 3 Feb 2006 17:20:45 +0000 (17:20 +0000)] 
Add FINAL_CONTENT_TYPE environment variable to filter/backend interface
so the filter and backend can know the destination file type as needed.

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

18 years agoOutput CTRL-D at the end of a job if there is no JCL stuff in the PPD.
mike [Fri, 3 Feb 2006 17:03:11 +0000 (17:03 +0000)] 
Output CTRL-D at the end of a job if there is no JCL stuff in the PPD.

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

18 years agoAlways set directory permissions when creating.
mike [Fri, 3 Feb 2006 16:55:30 +0000 (16:55 +0000)] 
Always set directory permissions when creating.

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

18 years agoPass original filename in document-name attribute, and use it as a further
mike [Fri, 3 Feb 2006 16:51:05 +0000 (16:51 +0000)] 
Pass original filename in document-name attribute, and use it as a further
hint when auto-typing.

cups/util.c:
    - cupsPrintFiles2(): Add document-name attribute to Print-Job
      or Send-Document request.

scheduler/ipp.c:
    - print_job(): Pass document-name value as filename to
      mimeFileType().
    - send_document(): Pass document-name value as filename to
      mimeFileType().

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

18 years agoClear printer-state-reasons after job completes successfully.
mike [Fri, 3 Feb 2006 16:44:00 +0000 (16:44 +0000)] 
Clear printer-state-reasons after job completes successfully.

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

18 years agoAllocate banner filename instead of using fixed size buffer.
mike [Fri, 3 Feb 2006 16:36:24 +0000 (16:36 +0000)] 
Allocate banner filename instead of using fixed size buffer.

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

18 years agoDrop "max_depth" argument to mimeFilter(), and implement via separate
mike [Fri, 3 Feb 2006 16:32:18 +0000 (16:32 +0000)] 
Drop "max_depth" argument to mimeFilter(), and implement via separate
helper function which maintains a linked list of source types instead.

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

18 years agoFix mime_type_t structure definition...
mike [Fri, 3 Feb 2006 03:54:39 +0000 (03:54 +0000)] 
Fix mime_type_t structure definition...

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

18 years agoSet printer URI when loading remote printer cache.
mike [Thu, 2 Feb 2006 23:17:16 +0000 (23:17 +0000)] 
Set printer URI when loading remote printer cache.

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

18 years agoReduce MIME_MAX_BUFFER to 4k.
mike [Thu, 2 Feb 2006 21:58:45 +0000 (21:58 +0000)] 
Reduce MIME_MAX_BUFFER to 4k.

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

18 years agoAdd "executable" argument to cupsFileFind(), to only look for executable
mike [Thu, 2 Feb 2006 20:38:29 +0000 (20:38 +0000)] 
Add "executable" argument to cupsFileFind(), to only look for executable
files.

Add filter cache to mimeLoad/Merge().

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

18 years agoOnly include ServiceIPC key as needed...
mike [Thu, 2 Feb 2006 19:46:32 +0000 (19:46 +0000)] 
Only include ServiceIPC key as needed...

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

18 years agoAdd missing SAMBA web interface templates.
mike [Thu, 2 Feb 2006 18:25:38 +0000 (18:25 +0000)] 
Add missing SAMBA web interface templates.

Fix reference to the "exported" template.

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

18 years agoAdd export-samba.gif button.
mike [Thu, 2 Feb 2006 18:16:27 +0000 (18:16 +0000)] 
Add export-samba.gif button.

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

18 years agoFix permission fixup of domain sockets and don't remove domain sockets
mike [Thu, 2 Feb 2006 18:14:38 +0000 (18:14 +0000)] 
Fix permission fixup of domain sockets and don't remove domain sockets
when using launchd.

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

18 years agoCleanup wrapping, comments.
mike [Thu, 2 Feb 2006 16:21:13 +0000 (16:21 +0000)] 
Cleanup wrapping, comments.

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

18 years agoAdd filename argument to mimeFileType() so that we can pass in the
mike [Thu, 2 Feb 2006 16:13:16 +0000 (16:13 +0000)] 
Add filename argument to mimeFileType() so that we can pass in the
"original" filename as well as the on-disk pathname - future MIME type
matching on document-name attribute.

Also use shared file buffer structure for mimeFileType() - that yields
a 3-fold performance improvement in testmime.

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

18 years agoAdd performance testing to MIME test program - basically type all of the
mike [Thu, 2 Feb 2006 15:55:08 +0000 (15:55 +0000)] 
Add performance testing to MIME test program - basically type all of the
source files in the CUPS tree and figure out how to convert to
application/vnd.cups-postscript.

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

18 years agoMacOS X 10.2.x compile fixes.
mike [Thu, 2 Feb 2006 14:50:57 +0000 (14:50 +0000)] 
MacOS X 10.2.x compile fixes.

cups/http-private.h:
    - socklen_t is not defined on 10.2.x.

scheduler/client.c:
    - errSSLBadConfiguration not defined on 10.2.x, use errSSLBadCert
      instead.

scheduler/cups-lpd.c:
    - Include <cups/http-private.h> to get socklen_t definition.

scheduler/process.c:
    - Include <libgen.h> on 10.2 and 10.3, and fix call to readlink().

scheduler/sysman.c:
    - Power-on message not defined on 10.2.x.

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

18 years agoAdd socket backend (missed it in the last change)
mike [Thu, 2 Feb 2006 12:52:28 +0000 (12:52 +0000)] 
Add socket backend (missed it in the last change)

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

18 years agoAdd string pool code to optimize memory used for IPP attributes - seems
mike [Thu, 2 Feb 2006 05:14:15 +0000 (05:14 +0000)] 
Add string pool code to optimize memory used for IPP attributes - seems
to reduce memory usage about 75%...

cups/globals.c:
    - Add call to _cups_sp_flush().

cups/globals.h:
    - Add stringpool array to _cups_globals_t.

cups/ipp.c:
    - Use _cups_sp_alloc() and _cups_sp_free() for name and text
      strings.

cups/string.c:
    - _cups_sp_alloc(), _cups_sp_flush(), _cups_sp_free(),
      _cups_sp_statistics(): Added.

cups/string.h:
    - _cups_sp_alloc(), _cups_sp_flush(), _cups_sp_free(),
      _cups_sp_statistics(): Added.

scheduler/ipp.c:
    - Use _cups_sp_alloc() and _cups_sp_free() for name and text
      strings.

scheduler/main.c:
    - Add debug logging of string pool usage (+ malloc usage, if
      we have a mallinfo() function...)

scheduler/printers.c:
    - Use _cups_sp_alloc() and _cups_sp_free() for name and text
      strings.

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

18 years agoAdd CFProcessPath symlink handling for pre-10.4 MacOS X systems.
mike [Wed, 1 Feb 2006 22:11:58 +0000 (22:11 +0000)] 
Add CFProcessPath symlink handling for pre-10.4 MacOS X systems.

scheduler/client.c:
    - pipe_command(): Use MAX_ENV for envp array size.

scheduler/cupsd.h
    - Add MAX_ENV constant.

scheduler/env.c
    - Use MAX_ENV for common_env array size.
    - cupsdInitEnv(): Only add <CFProcessPath> string on MacOS X
      10.4 and higher.

scheduler/ipp.c
    - copy_model(): Use MAX_ENV for envp array size.

scheduler/job.c
    - cupsdStartJob(): Use MAX_ENV for envp array size.

scheduler/process.c
    - cupsdStartProcess(): Add CFProcessPath environment variable
      on MacOS X 10.3 and earlier.

scheduler/subscriptions.c
    - cupsd_start_notifier(): Use MAX_ENV for envp array size.

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

18 years agoSimplify the MacOS X install/package stuff by not autodetecting the
mike [Wed, 1 Feb 2006 21:48:01 +0000 (21:48 +0000)] 
Simplify the MacOS X install/package stuff by not autodetecting the
launchd stuff at install time.  Instead, rely on the build system info
since we'll need separate packages for 10.2/10.3 and 10.4 anyways.

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

18 years agoUpdate backend interface so that backends with mode 700 are executed as
mike [Wed, 1 Feb 2006 21:35:30 +0000 (21:35 +0000)] 
Update backend interface so that backends with mode 700 are executed as
root, all other backends are executed as the unprivileged User account.

Makedefs.in:
    - Don't strip executables with INSTALL_BIN command.

backend/Makefile
    - Install lpd backend mode 700, all others mode 755.

cups/dir.c
    - cupsDirRead(): Use lstat() instead of stat(), since we care
      about the permissions of the destination file, not the link
      itself.

packaging/cups.spec.in
    - Install the lpd backend mode 700.

scheduler/cups-deviced.c
    - main(): Add command-line argument for user ID and check the
      permissions of the backends before executing them (mode 700
      = root, anything else is the unprivileged user ID from the
      command-line)
    - main(): Return IPP "bad request" error if we get
      command-line errors.

scheduler/ipp.c
    - copy_model(): Free the select() buffer (memory leak)
    - get_devices(): Add the User value to the command-line
      passed to SendCommand().

scheduler/job.c
    - cupsdStartJob(): Only run backends that are not readable by
      ordinary users as root.

scheduler/process.c
    - cupsdStartProcess(): Call setgid() for non-root processes
      in addition to setgroups().

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

18 years agoUse cupsArray API to store network interface list, and allocate the hostname
mike [Wed, 1 Feb 2006 18:55:16 +0000 (18:55 +0000)] 
Use cupsArray API to store network interface list, and allocate the hostname
to save some memory.

scheduler/auth.c:
    - cupsdCheckAuth(): Use cupsArrayFirst/Next() to loop through
      interfaces.

scheduler/dirsvc.c:
    - cupsdSendCUPSBrowse(): Use cupsArrayFirst/Next() to loop
      through interfaces.
    - cupsdUpdateCUPSBrowse(): Use cupsArrayFirst/Next() to loop
      through interfaces.

scheduler/network.c:
    - Make local functions static.
    - compare_netif(): Added.
    - cupsdNetIFFree(): Use cupsArray functions for interfaces.
    - cupsdNetIFUpdate(): Use cupsArray functions for interfaces, allocate
      the cupsd_netif_t structure dynamically for the length of the hostname.

scheduler/network.h:
    - Remove cupsdNetIFFree() from global functions.
    - Move hostname to end of cupsd_netif_t structure so it can
      be allocated.

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

18 years agoUse constants from launch.h whenever possible.
mike [Wed, 1 Feb 2006 18:17:34 +0000 (18:17 +0000)] 
Use constants from launch.h whenever possible.

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

18 years agoOnly use domain socket if we can access it, and clean up conditional code.
mike [Wed, 1 Feb 2006 16:54:50 +0000 (16:54 +0000)] 
Only use domain socket if we can access it, and clean up conditional code.

cups/usersys.c:
    - cupsServer(): Only use domain socket if it is rwx for others.

scheduler/listen.c:
    - cupsdStartListening(): Fix indentation of preprocessor
      directives (# must appear in column 0/1)

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

18 years agoFix compile error on OSX.
mike [Wed, 1 Feb 2006 16:41:17 +0000 (16:41 +0000)] 
Fix compile error on OSX.

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

18 years agoAdd support for Apple recoverable:/recovered: messages and
mike [Wed, 1 Feb 2006 16:29:57 +0000 (16:29 +0000)] 
Add support for Apple recoverable:/recovered: messages and
com.apple.print.recoverable-message attribute.

scheduler/ipp.c:
    - copy_printer_attrs(): Copy com.apple.print.recoverable-message
      attribute as needed.

scheduler/job.c
    - cupsdUpdateJob(): Handle recoverable: and recovered: messages.

scheduler/printers.c
    - cupsdAddPrinterHistory(): Add com.apple.print.recoverable-message
      to history.
    - cupsdDeletePrinter(): Clear recoverable string as needed.

scheduler/printers.h
    - Add recoverable string to cupsd_printer_t structure.

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

18 years agoprinter-state-message and other job handling updates.
mike [Wed, 1 Feb 2006 16:03:02 +0000 (16:03 +0000)] 
printer-state-message and other job handling updates.

doc/cups.css:
    - Add SPAN.message style for printer-state-message.

scheduler/job.c:
    - cupsdFinishJob(): Stop jobs when there are filter errors
      instead of cancelling them, clear the printer-state-message
      when a job completes successfully.
    - cupsdUpdateJob(): Copy normal messages to
      printer-state-message, and update the printer state history
      for state messages.

scheduler/statbuf.c:
    - cupsdStatBufUpdate(): Log ATTR:, PAGE:, and STATE: messages
      at log level debug2.

templates/classes.tmpl:
templates/printers.tmpl:
    - Move printer-state-message to the title area of the
      printer/class template so it is more prominent.

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

18 years agoAdd "-v" option and support for multiple URI + test file combos, so that
mike [Wed, 1 Feb 2006 15:19:59 +0000 (15:19 +0000)] 
Add "-v" option and support for multiple URI + test file combos, so that
quick testing is even easier.

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

18 years agoAdd revision number to snapshots.
mike [Wed, 1 Feb 2006 15:00:48 +0000 (15:00 +0000)] 
Add revision number to snapshots.

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

18 years agoFix segfault in http_copy_decode() - wasn't checking for a NULL term
mike [Wed, 1 Feb 2006 14:58:46 +0000 (14:58 +0000)] 
Fix segfault in http_copy_decode() - wasn't checking for a NULL term
character.

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

18 years agoUpdate OSX packages to include both the launchd and non-launchd startup
mike [Wed, 1 Feb 2006 04:44:42 +0000 (04:44 +0000)] 
Update OSX packages to include both the launchd and non-launchd startup
scripts, with auto-detect at startup.

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

18 years agoUpdate dependencies.
mike [Tue, 31 Jan 2006 04:41:01 +0000 (04:41 +0000)] 
Update dependencies.

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

18 years agoAdd process name lookup array for better debugging, and log errors in
mike [Tue, 31 Jan 2006 04:05:44 +0000 (04:05 +0000)] 
Add process name lookup array for better debugging, and log errors in
the printer-state-message attribute.

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

18 years agoStrip double quotes from printer-info, printer-location, and
mike [Tue, 31 Jan 2006 03:05:32 +0000 (03:05 +0000)] 
Strip double quotes from printer-info, printer-location, and
printer-make-and-model attributes in CUPS browse packets.

Make process functions static to reduce the number of global symbols.

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

18 years agoOnly restart a job if the device-uri, port-monitor, printer-state, ppd-name,
mike [Tue, 31 Jan 2006 02:11:47 +0000 (02:11 +0000)] 
Only restart a job if the device-uri, port-monitor, printer-state, ppd-name,
member-uris, or PPD file is changed.

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

18 years agoAlways log the most authenticated username.
mike [Tue, 31 Jan 2006 01:49:40 +0000 (01:49 +0000)] 
Always log the most authenticated username.

Move most of the username checks into a new function called "get_username()".

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

18 years agoAdd UseNetworkDefault option and corresponding support code.
mike [Tue, 31 Jan 2006 01:16:43 +0000 (01:16 +0000)] 
Add UseNetworkDefault option and corresponding support code.

Fix printer-type values to dynamically generate the rejecting, not shared,
and default bits.

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

18 years agoAdd mkdir when installing launchd workaround script.
mike [Mon, 30 Jan 2006 22:12:09 +0000 (22:12 +0000)] 
Add mkdir when installing launchd workaround script.

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

18 years agoFix unsigned char comparison to use "& 255" since the (unsigned char)
mike [Mon, 30 Jan 2006 21:59:02 +0000 (21:59 +0000)] 
Fix unsigned char comparison to use "& 255" since the (unsigned char)
cast still generates a warning with some compilers.

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

18 years agoAdd DBUS support to the scheduler.
mike [Mon, 30 Jan 2006 03:49:12 +0000 (03:49 +0000)] 
Add DBUS support to the scheduler.

Update event list to separate state changes from created, completed, and
stopped, to conform to RFC 3995.  Also add job started event in
cupsdStartJob().

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

18 years agoAdd missing file...
mike [Sun, 29 Jan 2006 14:58:15 +0000 (14:58 +0000)] 
Add missing file...

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

18 years agoUpdate default cachedir to be /var/tmp/cups on Darwin.
mike [Sun, 29 Jan 2006 14:39:44 +0000 (14:39 +0000)] 
Update default cachedir to be /var/tmp/cups on Darwin.

Add coding enumeration and argument to the new httpAssembleURI,
httpAssembleURIf, and httpSeparateURI functions.

Add new cupsBackendDeviceURI() function to get the proper device
URI from a backend (DEVICE_URI env var or argv[0], whichever is
available first)

Add large file compatible httpRead2() and httpWrite2() functions.

Update the previously undocumented ippReadIO and ipp_iocb_t interfaces
to use large file compatible types.

Update the CUPS PPD spec.

Update the OSX test package script some more: don't update/make all, and
add the chmod stuff to the postflight script.

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

18 years agoMerge launchd branch into trunk.
mike [Sat, 28 Jan 2006 13:36:15 +0000 (13:36 +0000)] 
Merge launchd branch into trunk.

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

18 years agoFix misplaced #endif for Apple-specific code...
mike [Sat, 28 Jan 2006 06:06:55 +0000 (06:06 +0000)] 
Fix misplaced #endif for Apple-specific code...

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

18 years agoFix default permissions substitutions - the defines need a leading 0 but
mike [Fri, 27 Jan 2006 22:31:29 +0000 (22:31 +0000)] 
Fix default permissions substitutions - the defines need a leading 0 but
not the substitutions in Makedefs.in and friends.

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

18 years agoUpdate man pages to describe all options.
mike [Fri, 27 Jan 2006 19:53:55 +0000 (19:53 +0000)] 
Update man pages to describe all options.

Remove notes that "-m" option is not supported (it is now)

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

18 years agoAdd configure options to set the default values of various cupsd.conf settings.
mike [Fri, 27 Jan 2006 19:30:34 +0000 (19:30 +0000)] 
Add configure options to set the default values of various cupsd.conf settings.

Fix the OSX test package script to update the web interface files before
doing the install into the package directory - that way the revision
number appears.

Generate template/header.tmpl so that the version number is shown correctly
on all pages.

In cupsdStartBrowsing(), decouple the socket creation from the socket
"broadcast" and "close on exec" options, since launchd will be providing
the BrowseSocket for us on MacOS X.

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

18 years agoAdd system management (power management/sleep, network changes, hostname
mike [Fri, 27 Jan 2006 18:25:42 +0000 (18:25 +0000)] 
Add system management (power management/sleep, network changes, hostname
changes, etc.) interface in cupsd.

Fix dylib generation flags for OSX.

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

18 years agoOnly create BrowseSocket if it hasn't been created before.
mike [Fri, 27 Jan 2006 17:50:38 +0000 (17:50 +0000)] 
Only create BrowseSocket if it hasn't been created before.

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

18 years agoFix RPM spec file.
mike [Fri, 27 Jan 2006 14:47:00 +0000 (14:47 +0000)] 
Fix RPM spec file.

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

18 years agoAdd locale to regular make directories.
mike [Fri, 27 Jan 2006 02:33:36 +0000 (02:33 +0000)] 
Add locale to regular make directories.

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

18 years agoStateDir is not writable by group...
mike [Thu, 26 Jan 2006 23:39:23 +0000 (23:39 +0000)] 
StateDir is not writable by group...

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

18 years agoFix makefile typos.
mike [Thu, 26 Jan 2006 23:38:43 +0000 (23:38 +0000)] 
Fix makefile typos.

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

18 years agoAdd --enable-static configure option (default = no) to control whether
mike [Thu, 26 Jan 2006 23:36:22 +0000 (23:36 +0000)] 
Add --enable-static configure option (default = no) to control whether
static libraries are installed (they are always built for the test
programs)

Fix default permissions of scheduler directories.

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

18 years agoRename cupsPageScaling to cupsBorderlessScalingFactor, per Apple usage.
mike [Thu, 26 Jan 2006 21:59:54 +0000 (21:59 +0000)] 
Rename cupsPageScaling to cupsBorderlessScalingFactor, per Apple usage.

Add num_options and options to cupsRasterInterpretPPD, support and
option override for cupsBorderlessScalingFactor, and scale the
integer versions of the page size and imaging bounding box with the
scaling factor.

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

18 years agoLog CGIPipes, clear CGI input when client isn't ready to receive.
mike [Thu, 26 Jan 2006 21:43:54 +0000 (21:43 +0000)] 
Log CGIPipes, clear CGI input when client isn't ready to receive.

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

18 years agoDon't wake up to regenerate the root certificate.
mike [Thu, 26 Jan 2006 21:38:20 +0000 (21:38 +0000)] 
Don't wake up to regenerate the root certificate.

If we don't need to timeout for a day or more, don't use the timeout.

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

18 years agoBack out IPP_TAG_COPY_NAME change - too disruptive.
mike [Thu, 26 Jan 2006 20:14:42 +0000 (20:14 +0000)] 
Back out IPP_TAG_COPY_NAME change - too disruptive.

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

18 years agoFix test failures caused by copied name issue.
mike [Thu, 26 Jan 2006 19:35:07 +0000 (19:35 +0000)] 
Fix test failures caused by copied name issue.

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

18 years agoAdd notify_post() support on MacOS X.
mike [Thu, 26 Jan 2006 19:27:40 +0000 (19:27 +0000)] 
Add notify_post() support on MacOS X.

Fix check_permissions implementation.

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

18 years agoUse ippReadIO and ippWriteIO with CUPS files when reading/writing
mike [Thu, 26 Jan 2006 17:50:58 +0000 (17:50 +0000)] 
Use ippReadIO and ippWriteIO with CUPS files when reading/writing
job control files (faster)

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

18 years ago#ifdef Apple-specific "recoverable" error stuff.
mike [Thu, 26 Jan 2006 15:01:46 +0000 (15:01 +0000)] 
#ifdef Apple-specific "recoverable" error stuff.

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

18 years agoAdd whitespace and line ending checks to cupstestppd.
mike [Thu, 26 Jan 2006 02:21:45 +0000 (02:21 +0000)] 
Add whitespace and line ending checks to cupstestppd.

Remove blank line checks in ppd_get_line().

Add requesting-user-name in accept.c requests.

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

18 years agoSave printers.conf with mode 0600.
mike [Thu, 26 Jan 2006 00:59:45 +0000 (00:59 +0000)] 
Save printers.conf with mode 0600.

Set printer-is-shared to the DefaultShared in AddPrinter.

Add printer-is-shared to printer-state-history.

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

18 years agoThe classes.conf file should be mode 0600.
mike [Thu, 26 Jan 2006 00:53:00 +0000 (00:53 +0000)] 
The classes.conf file should be mode 0600.

Add "DefaultShared" configure option.

Add new check_permissions() function to check the permissions of files
and directories, and to create directories as needed.

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

18 years agoFix cupsGetPPD2() for classes containing only classes.
mike [Thu, 26 Jan 2006 00:25:21 +0000 (00:25 +0000)] 
Fix cupsGetPPD2() for classes containing only classes.

Remove debug fprintf from ippSetPort().

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

18 years agoCheck all httpReconnect()'s.
mike [Wed, 25 Jan 2006 23:46:20 +0000 (23:46 +0000)] 
Check all httpReconnect()'s.

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

18 years agoCheck that we have the CoreFoundation header before including it.
mike [Wed, 25 Jan 2006 21:57:18 +0000 (21:57 +0000)] 
Check that we have the CoreFoundation header before including it.

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

18 years agoCheck to see if httpReconnect() failed and abort if so.
mike [Wed, 25 Jan 2006 21:55:36 +0000 (21:55 +0000)] 
Check to see if httpReconnect() failed and abort if so.

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

18 years agoIncrease the read/write buffer for CUPS files and optimize the compressed/
mike [Wed, 25 Jan 2006 21:53:43 +0000 (21:53 +0000)] 
Increase the read/write buffer for CUPS files and optimize the compressed/
decompressed data check for uncompressed data.

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

18 years agoAdd support for new attributes in page device header.
mike [Wed, 25 Jan 2006 21:44:44 +0000 (21:44 +0000)] 
Add support for new attributes in page device header.

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

18 years agoAdd floating point PageSize and ImagingBBox values along with page
mike [Wed, 25 Jan 2006 21:34:00 +0000 (21:34 +0000)] 
Add floating point PageSize and ImagingBBox values along with page
scaling (used for full-bleed with some CUPS drivers) and the name of
the page size that was selected.

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

18 years agoClean up some PostScript output issues and add new order-dependent APIs.
mike [Wed, 25 Jan 2006 19:57:45 +0000 (19:57 +0000)] 
Clean up some PostScript output issues and add new order-dependent APIs.

cups/emit.c:
- ppdCollect2(): Added
- ppdEmitAfterOrder(): Added, support floating point page sizes.
- ppd_handle_media(): Fix manual feed/input slot detection code
  so that PageRegion is used as needed.

cups/ppd.h:
- Add ppdCollect2() and ppdEmitAfterOrder() functions.

cups/mark.c:
- ppdMarkOption(): Add support for AP_D_InputSlot pseudo-option
  and fix InputSlot/ManualFeed option issues.

cups/options.c:
- cupsMarkOptions(): Don't allow an empty PageSize option to
  override media.

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

18 years agoUse notify_post to tell MacOS X apps that the printers have changed.
mike [Wed, 25 Jan 2006 17:47:43 +0000 (17:47 +0000)] 
Use notify_post to tell MacOS X apps that the printers have changed.

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

18 years agoAdd printer description and state attributes as options in destination
mike [Wed, 25 Jan 2006 16:17:31 +0000 (16:17 +0000)] 
Add printer description and state attributes as options in destination
list so that apps can lookup common info without doing an IPP request.

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

18 years agoAdd printer description attributes to list (they can then be encoded for
mike [Wed, 25 Jan 2006 15:52:30 +0000 (15:52 +0000)] 
Add printer description attributes to list (they can then be encoded for
lpadmin) and use bsearch to lookup the attributes.

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

18 years agoFix some networking issues, add support for Darwin's SO_NOSIGPIPE
mike [Wed, 25 Jan 2006 15:07:40 +0000 (15:07 +0000)] 
Fix some networking issues, add support for Darwin's SO_NOSIGPIPE
socket option, and update the CDSA support.

- Use socket option instead of setting SIGPIPE handler (if possible.)
  <rdar://problem/3307769> CUPS shouldn't use SIGPIPE
    - SO_NOSIGPIPE is Darwin-specific, so #ifdef SO_NOSIGPIPE
      to determine whether we fiddle with the signal stuff.
    - This change appears in http-addrlist.c in the httpAddrConnect
      function, which is used to create all sockets...
- httpFlush(): disable blocking temporarily while flushing?
    - Yes, but check the state - if we haven't completed the
      current request/response, close the socket and reset the
      state.
- http_send(): check return value of httpReconnect, abort early if failed
- http_wait(): Add fd<0 guard.
- http_real_ssl(), http_write_ssl(), CDSAReadFunc(), CDSAWrieFunc():
    - Update error handling to match...

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