]>
git.ipfire.org Git - thirdparty/cups.git/log
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
mike [Wed, 25 Jan 2006 14:32:33 +0000 (14:32 +0000)]
Add cupsd.conf.default file to RPM.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4975
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Wed, 25 Jan 2006 07:04:33 +0000 (07:04 +0000)]
Merge features and bug fixes.
backend/lpd.c:
- Add contimeout option and also look in OSX system preferences for
the maximum time we wait to finally connect to the printer.
- Add OSX proxy error handling support.
- Fix to properly support + and & as separators.
backend/socket.c:
- Add waiteof option - when set to false/no/off, the backend will
no longer shutdown the transmit side of the socket and wait for
the printer to close its side.
berkeley/lpr.c:
- Use ssize_t and off_t variables for read/write and lseek so
that things work properly with large file support.
systemv/lp.c:
- Use ssize_t and off_t variables for read/write and lseek so
that things work properly with large file support.
- "-m" makes lp silent, per OpenGroup specs.
- "--" stops option processing, per OpenGroup specs.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4974
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Wed, 25 Jan 2006 02:36:02 +0000 (02:36 +0000)]
Cleanup and some minor performance optimizations.
cups/backend.h:
- Remap exit codes to match Apple standard for fax retry.
cups/cups.h:
- Typos...
cups/encode.c:
cups/http-private.h:
- Include new private IPP header.
cups/http.h:
- Sync up changes and reset buffer size to 2048 again.
cups/ipp-private.h:
- Added.
cups/ipp.c:
- ippReadIO(): Mark name as copied.
- _ipp_add_attr(): Move num_values assignment inside test.
- _ipp_free_attr(): Don't free copied names.
cups/ipp.h:
- Add IPP_TAG_COPY_NAME flag to ipp_tag_t.
- Fix formatting.
cups/ppd.c:
- ppd_read(): Fix problem with PPD files ending with CR.
test/ipptest.c:
- Use httpSeparateURI().
scheduler/main.c:
- main(): Fix local/remote browsing bug.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4973
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Tue, 24 Jan 2006 14:48:12 +0000 (14:48 +0000)]
Don't distribute empty classes.conf and printers.conf files, and only
show the open errors if the file exists but can't be opened.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4972
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Tue, 24 Jan 2006 14:33:18 +0000 (14:33 +0000)]
Move init scripts and support files to new "init" subdirectory.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4971
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Tue, 24 Jan 2006 14:05:45 +0000 (14:05 +0000)]
Add new cupsArrayInsert() function to insert elements at the beginning of
an unsorted array.
Make MIME library use cupsArray API, and use it from the scheduler and
test program.
Make sure we delete the printer-specific MIME type when we delete the
printer.
Reorganize the mime_type_t structure so that we can do a single allocation
for the record and type name.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4970
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Tue, 24 Jan 2006 04:05:47 +0000 (04:05 +0000)]
Use cupsArray API and rename compare() to compare_quotas() for quota support.
(STR #1394)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4969
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Tue, 24 Jan 2006 03:56:31 +0000 (03:56 +0000)]
Use cupsArray API and rename compare() to compare_banners() for banner page
support.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4968
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Tue, 24 Jan 2006 03:42:15 +0000 (03:42 +0000)]
Fix global destructor in threaded mode (STR #1395)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4967
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Mon, 23 Jan 2006 00:41:22 +0000 (00:41 +0000)]
Set POSIX ACLs on the root certificate when there is more than 1 system
group.
Update the IPP-related standard/specs.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4966
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Sat, 21 Jan 2006 06:12:17 +0000 (06:12 +0000)]
Add Japanese message catalog (STR #537)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4965
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Fri, 20 Jan 2006 22:19:13 +0000 (22:19 +0000)]
Add mailto: notifier and fix some notification bugs.
berkeley/lpr.c:
systemv/lp.c:
- main(): Fix email address for notifications (mailto:user@hostname)
cups/cups.h:
- Add cupsNotifySubject() and cupsNotifyText() APIs.
cups/http-support.c:
- httpDecode64_2(): Initialize "out" buffer when "in" is empty.
cups/notify.c:
- Added.
notifier/mailto.c:
- Added - previous file was just the skeleton.
scheduler/env.c:
- Add SERVER_ADMIN environment variable for setting the default
administrator's email address.
scheduler/subscriptions.c:
- cupsdAddEvent(): Add job-name, if set, and use proper attribute
names for notify-printer-uri and notify-job-id.
- cupsdExpireSubscriptions(): Don't expire job subcriptions based
on time, just on the life of the job.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4961
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Fri, 20 Jan 2006 16:41:20 +0000 (16:41 +0000)]
Add more Darwin/MacOS X config checks, and update the OS version sed
magic.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4960
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Thu, 19 Jan 2006 20:30:48 +0000 (20:30 +0000)]
Make -fpie a configure option (apparently doesn't work for AMD64 systems)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4953
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Thu, 19 Jan 2006 20:15:57 +0000 (20:15 +0000)]
Update when job control buttons are shown.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4952
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Thu, 19 Jan 2006 19:02:38 +0000 (19:02 +0000)]
Add a missing check in the stream predictor code.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4951
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Thu, 19 Jan 2006 16:07:57 +0000 (16:07 +0000)]
Merge in some clean-up changes from Apple.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4950
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Thu, 19 Jan 2006 03:27:09 +0000 (03:27 +0000)]
Update message catalogs...
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4949
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Thu, 19 Jan 2006 03:23:41 +0000 (03:23 +0000)]
Update all command-line programs to support -h and -U (STR #1028,
STR #1029, STR #1087)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4948
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Thu, 19 Jan 2006 01:49:29 +0000 (01:49 +0000)]
Update message catalog template, etc.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4947
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Thu, 19 Jan 2006 01:45:50 +0000 (01:45 +0000)]
Sort attributes alphabetically to improve attribute lookup speeds.
Add job-preserved attribute for all jobs that still have data
files (STR #1376)
scheduler/ipp.c:
- copy_job_attrs(): Sort attributes and add job-preserved
attributes.
- copy_printer_attrs(): Sort attributes.
- copy_subscription_attrs(): Sort attributes.
templates/jobs.tmpl:
- Use job_preserved to control whether the "reprint job"
button is shown.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4946
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Wed, 18 Jan 2006 21:41:17 +0000 (21:41 +0000)]
Add support for moving all jobs on a queue to another printer (STR #56)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4945
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Wed, 18 Jan 2006 21:21:35 +0000 (21:21 +0000)]
Apply missing range checks to Xpdf code (STR #1381)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4944
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Wed, 18 Jan 2006 20:30:42 +0000 (20:30 +0000)]
Fix device URIs for printers added via the "Add This Printer" button in
the web interface.
cgi-bin/admin.c:
- do_am_printer(): Add debug fprintf for device URI.
cups/http-support.c:
- httpAssembleURIf(): Only encode characters up to the first
question mark (?) in the resource string, as this indicates
the beginning of query data which is separately encoded and
decoded.
- httpSeparateURI(): Only decode characters up to the first
question mark (?) in the resource string, as this indicates
the beginning of query data which is separately encoded and
decoded.
cups/testhttp.c:
- Add a query string test URI.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4943
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Wed, 18 Jan 2006 19:49:15 +0000 (19:49 +0000)]
Fix truncated PPD file problem (STR #1378)
cups/file.c:
- cups_fill(): Change end-of-compressed-data detection code to
still use the remaining uncompressed data.
cups/testfile.c:
- If run with arguments, "cat" the first filename to stdout.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4942
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Wed, 18 Jan 2006 13:16:40 +0000 (13:16 +0000)]
Default ICC profile uses "..", not "..." (thanks Johannes!)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4941
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Tue, 17 Jan 2006 20:46:49 +0000 (20:46 +0000)]
Fix crash bug.
cups/ipp.c:
- ippWriteIO(): Ignore multiple separators.
cgi-bin/admin.c:
- main(): Always close HTTP connection.
scheduler/ipp.c:
- get_jobs(): Fix check for when to add separator.
scheduler/printers.c:
- cupsdSetPrinterAttrs(): Always set device-uri attribute to
something logical.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4940
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Tue, 17 Jan 2006 18:54:33 +0000 (18:54 +0000)]
Start new PPD API test harness to test API functions.
Fix some memory management issues with the new custom option support.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4939
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Tue, 17 Jan 2006 15:11:15 +0000 (15:11 +0000)]
Add missing file.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4938
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Tue, 17 Jan 2006 04:03:22 +0000 (04:03 +0000)]
Add basic custom option support (just single value, non-JCL custom options)
Add ppdLocalize() API and use it in the web interface.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4937
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Mon, 16 Jan 2006 18:34:35 +0000 (18:34 +0000)]
Add new ops to CUPS IPP spec and clean up HTML.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4936
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Mon, 16 Jan 2006 06:09:37 +0000 (06:09 +0000)]
Add IPP implementation help file.
Update CUPS_ADD_PRINTER and CUPS_ADD_CLASS to be CUPS_ADD_MODIFY_* with
back-compatibility defines.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4935
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Mon, 16 Jan 2006 03:21:08 +0000 (03:21 +0000)]
Reimplement requested-attributes processing for jobs and printers.
Add "all" as an accepted argument for lpstat "-W" option.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4934
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Mon, 16 Jan 2006 00:26:57 +0000 (00:26 +0000)]
Add cupsFileFind() function to find a file using a path.
Add default (configured) bindir and sbindir to default PATH
environment variable provided by the scheduler.
Add "export printers to samba" function to web interface.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4933
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Sat, 14 Jan 2006 20:44:08 +0000 (20:44 +0000)]
Add links to Easy Software Products web site and products.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4932
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Sat, 14 Jan 2006 20:37:40 +0000 (20:37 +0000)]
Localize the rest of the web interface.
Update the sort button images.
Clean up paging support for printers, classes, and jobs.
Fix admin functions to redirect to the correct page for classes.
Make sure we aren't using "continue" button for final pages.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4931
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Sat, 14 Jan 2006 16:54:03 +0000 (16:54 +0000)]
The web interface now supports moving of a job or jobs to another
queue.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4930
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Fri, 13 Jan 2006 16:38:43 +0000 (16:38 +0000)]
Fix user validation problem reported by Martin Pitt - basically, make sure
we check user and group stuff for unauthenticated access via the IPP
requesting-user-name attribute.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4929
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Fri, 13 Jan 2006 16:05:50 +0000 (16:05 +0000)]
Add paging and searching for printers and classes.
Update printer/class job listings to support searching, too.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4928
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Fri, 13 Jan 2006 13:52:24 +0000 (13:52 +0000)]
Add support for moving all jobs via CUPS_MOVE_JOB.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4927
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Fri, 13 Jan 2006 03:12:13 +0000 (03:12 +0000)]
Use new ippNewRequest() function.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4926
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Fri, 13 Jan 2006 02:52:47 +0000 (02:52 +0000)]
Use new ippNewRequest() and cupsLastErrorString() functions.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4925
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Fri, 13 Jan 2006 01:55:20 +0000 (01:55 +0000)]
Simplify the _cupsLangPuts/Printf functions - we just need the FILE *, as
we'll always be using a single language for console apps.
Also cache the current (default) locale the first time we call one of those
functions.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4924
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Fri, 13 Jan 2006 01:28:40 +0000 (01:28 +0000)]
Add standard label sizes for Zebra EPL and ZPL printers.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4923
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Thu, 12 Jan 2006 22:05:06 +0000 (22:05 +0000)]
Add new ippNewRequest() function, and use it in lpstat.
Look for LOCALEDIR, not LOCALDIR, environment variable, for locale directory.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4922
7a7537e8 -13f0-0310-91df-
b6672ffda945
mike [Thu, 12 Jan 2006 21:26:26 +0000 (21:26 +0000)]
Add paging, searching, sort order, etc. to the jobs page, with the
infrastructure for the printers and classes pages, too.
Simplify cupsGetAttributes() and cupsCopyTemplateLang() since we are
always calling them with the same arguments.
Add cgiGetIPPObjects() and cgiSetIPPObjectVars() to support the paged
and sorted output modes.
Add cupsArrayIndex() function to return the Nth element.
Add/update job templates for paged output.
Add "pages" column in job output.
Add "show all jobs" mode.
Add new button images.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4921
7a7537e8 -13f0-0310-91df-
b6672ffda945