]> git.ipfire.org Git - thirdparty/cups.git/log
thirdparty/cups.git
18 years agoAdd cupsd.conf.default file to RPM.
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

18 years agoMerge features and bug fixes.
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

18 years agoCleanup and some minor performance optimizations.
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

18 years agoDon't distribute empty classes.conf and printers.conf files, and only
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

18 years agoMove init scripts and support files to new "init" subdirectory.
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

18 years agoAdd new cupsArrayInsert() function to insert elements at the beginning of
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

18 years agoUse cupsArray API and rename compare() to compare_quotas() for quota support.
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

18 years agoUse cupsArray API and rename compare() to compare_banners() for banner page
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

18 years agoFix global destructor in threaded mode (STR #1395)
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

18 years agoSet POSIX ACLs on the root certificate when there is more than 1 system
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

18 years agoAdd Japanese message catalog (STR #537)
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

18 years agoAdd mailto: notifier and fix some notification bugs.
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

18 years agoAdd more Darwin/MacOS X config checks, and update the OS version sed
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

18 years agoMake -fpie a configure option (apparently doesn't work for AMD64 systems)
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

18 years agoUpdate when job control buttons are shown.
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

18 years agoAdd a missing check in the stream predictor code.
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

18 years agoMerge in some clean-up changes from Apple.
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

18 years agoUpdate message catalogs...
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

18 years agoUpdate all command-line programs to support -h and -U (STR #1028,
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

18 years agoUpdate message catalog template, etc.
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

18 years agoSort attributes alphabetically to improve attribute lookup speeds.
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

18 years agoAdd support for moving all jobs on a queue to another printer (STR #56)
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

18 years agoApply missing range checks to Xpdf code (STR #1381)
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

18 years agoFix device URIs for printers added via the "Add This Printer" button in
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

18 years agoFix truncated PPD file problem (STR #1378)
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

18 years agoDefault ICC profile uses "..", not "..." (thanks Johannes!)
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

18 years agoFix crash bug.
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

18 years agoStart new PPD API test harness to test API functions.
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

18 years agoAdd missing file.
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

18 years agoAdd basic custom option support (just single value, non-JCL custom options)
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

18 years agoAdd new ops to CUPS IPP spec and clean up HTML.
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

18 years agoAdd IPP implementation help file.
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

18 years agoReimplement requested-attributes processing for jobs and printers.
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

18 years agoAdd cupsFileFind() function to find a file using a path.
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

18 years agoAdd links to Easy Software Products web site and products.
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

18 years agoLocalize the rest of the web interface.
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

18 years agoThe web interface now supports moving of a job or jobs to another
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

18 years agoFix user validation problem reported by Martin Pitt - basically, make sure
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

18 years agoAdd paging and searching for printers and classes.
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

18 years agoAdd support for moving all jobs via CUPS_MOVE_JOB.
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

18 years agoUse new ippNewRequest() function.
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

18 years agoUse new ippNewRequest() and cupsLastErrorString() functions.
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

18 years agoSimplify the _cupsLangPuts/Printf functions - we just need the FILE *, as
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

18 years agoAdd standard label sizes for Zebra EPL and ZPL printers.
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

18 years agoAdd new ippNewRequest() function, and use it in lpstat.
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

18 years agoAdd paging, searching, sort order, etc. to the jobs page, with the
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

18 years agoFix typos in Zebra EPL and ZPL PPDs.
mike [Thu, 12 Jan 2006 15:12:12 +0000 (15:12 +0000)] 
Fix typos in Zebra EPL and ZPL PPDs.

Add Zebra CPCL PPD.

Fix bugs in CPCL code.

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

18 years agoFix password stuff.
mike [Thu, 12 Jan 2006 14:13:01 +0000 (14:13 +0000)] 
Fix password stuff.

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

18 years agoUpdate API documentation.
mike [Thu, 12 Jan 2006 05:14:40 +0000 (05:14 +0000)] 
Update API documentation.

Add cupsLastErrorString() function which returns the status-message
attribute value, if any, from the last request.

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

18 years agoFix example code.
mike [Thu, 12 Jan 2006 03:32:52 +0000 (03:32 +0000)] 
Fix example code.

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

18 years agocupsaddsmb now accepts a password on the command-line and
mike [Wed, 11 Jan 2006 21:42:55 +0000 (21:42 +0000)] 
cupsaddsmb now accepts a password on the command-line and
supports passwords with special characters (STR #822, STR #1236)

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

18 years agoFix arch check on MacOS PPC (which has spaces in the arch name...)
mike [Wed, 11 Jan 2006 15:57:53 +0000 (15:57 +0000)] 
Fix arch check on MacOS PPC (which has spaces in the arch name...)

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

18 years agoMake sure User-Agent field is set for all requests (STR #1366)
mike [Wed, 11 Jan 2006 02:04:22 +0000 (02:04 +0000)] 
Make sure User-Agent field is set for all requests (STR #1366)

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

18 years agoCheck for <security/pam_appl.h> header first, then <pam/pam_appl.h>, so
mike [Wed, 11 Jan 2006 01:42:04 +0000 (01:42 +0000)] 
Check for <security/pam_appl.h> header first, then <pam/pam_appl.h>, so
that users are not confused by the results of the PAM checks (STR #1371)

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

18 years agoOops, fix httpSeparateURI() check to allow "file" scheme name...
mike [Tue, 10 Jan 2006 21:43:56 +0000 (21:43 +0000)] 
Oops, fix httpSeparateURI() check to allow "file" scheme name...

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

18 years agoAdd DLink DP-301P+ and Linksys PSUS4 references.
mike [Tue, 10 Jan 2006 21:33:36 +0000 (21:33 +0000)] 
Add DLink DP-301P+ and Linksys PSUS4 references.

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

18 years agoppdLoad*() no longer tries to "fix" bad characters in UI text
mike [Tue, 10 Jan 2006 21:30:48 +0000 (21:30 +0000)] 
ppdLoad*() no longer tries to "fix" bad characters in UI text
(STR #1101)

cups/ppd.c:
    - ppdOpen2(): Remove calls to ppd_fix().
    - ppd_fix(): Removed.

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

18 years agoFix Universal binary stuff - need it in DSOFLAGS, and the machine name is
mike [Tue, 10 Jan 2006 21:22:30 +0000 (21:22 +0000)] 
Fix Universal binary stuff - need it in DSOFLAGS, and the machine name is
"i386", not "x86"...

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

18 years agoPrinter names can now (reliably) contain Unicode characters (STR
mike [Tue, 10 Jan 2006 21:08:08 +0000 (21:08 +0000)] 
Printer names can now (reliably) contain Unicode characters (STR
#896)

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

18 years agoAdd Universal binary support on OSX...
mike [Tue, 10 Jan 2006 21:06:57 +0000 (21:06 +0000)] 
Add Universal binary support on OSX...

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

18 years agoMark old APIs as "deprecated", and remove use of those APIs from the CUPS
mike [Tue, 10 Jan 2006 20:53:28 +0000 (20:53 +0000)] 
Mark old APIs as "deprecated", and remove use of those APIs from the CUPS
code.

Also update the copyrights on the Berkeley and System V commands.

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

18 years agoUpdate copyrights, install new Zebra PPDs.
mike [Tue, 10 Jan 2006 20:07:15 +0000 (20:07 +0000)] 
Update copyrights, install new Zebra PPDs.

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

18 years agoWeb interface files...
mike [Tue, 10 Jan 2006 20:04:50 +0000 (20:04 +0000)] 
Web interface files...

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

18 years agoUpdate copyrights on changed files.
mike [Tue, 10 Jan 2006 20:02:46 +0000 (20:02 +0000)] 
Update copyrights on changed files.

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

18 years agoValidate 1284 description value to work around common HP USB bug
mike [Tue, 10 Jan 2006 19:33:38 +0000 (19:33 +0000)] 
Validate 1284 description value to work around common HP USB bug
(STR #1372)

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

18 years agoZebra label printer driver updates: fixed EPL1 and EPL2 mode problems, and
mike [Tue, 10 Jan 2006 15:34:32 +0000 (15:34 +0000)] 
Zebra label printer driver updates: fixed EPL1 and EPL2 mode problems, and
added EPL1 and EPL2 specific PPD files.

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

18 years agoAdd/update PPD extensions spec to help documents.
mike [Mon, 9 Jan 2006 04:22:13 +0000 (04:22 +0000)] 
Add/update PPD extensions spec to help documents.

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

18 years agoFix compiler warnings.
mike [Mon, 9 Jan 2006 02:26:39 +0000 (02:26 +0000)] 
Fix compiler warnings.

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

18 years agoFix some problems with the cupsLangPrintf/Puts and the transcode code
mike [Sun, 8 Jan 2006 23:13:20 +0000 (23:13 +0000)] 
Fix some problems with the cupsLangPrintf/Puts and the transcode code
(buffer size limit way too small)

Localize the System V commands.

In the scheduler: "doesn't" to "does not"...

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

18 years agoAdd preliminary localization of Berkeley commands.
mike [Sun, 8 Jan 2006 05:33:36 +0000 (05:33 +0000)] 
Add preliminary localization of Berkeley commands.

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

18 years agoUpdate translate program for new message catalog format, and to use Google
mike [Sun, 8 Jan 2006 03:57:45 +0000 (03:57 +0000)] 
Update translate program for new message catalog format, and to use Google
instead.

Move _cups_message_s structure to i18n.h.

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

18 years agoDocumentation updates (mark CUPS 1.2 functions, structures, and constants...)
mike [Sun, 8 Jan 2006 01:43:44 +0000 (01:43 +0000)] 
Documentation updates (mark CUPS 1.2 functions, structures, and constants...)

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

18 years agoAutomate adding the standard header/footer on the CUPS po template.
mike [Sat, 7 Jan 2006 15:42:49 +0000 (15:42 +0000)] 
Automate adding the standard header/footer on the CUPS po template.

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

18 years agoSave first cut of message catalog, and makefile target to update it.
mike [Sat, 7 Jan 2006 05:46:49 +0000 (05:46 +0000)] 
Save first cut of message catalog, and makefile target to update it.

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

18 years agoFix includes.
mike [Sat, 7 Jan 2006 04:57:59 +0000 (04:57 +0000)] 
Fix includes.

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

18 years agoCommit new message catalog stuff and make sure the private APIs start with
mike [Sat, 7 Jan 2006 04:50:14 +0000 (04:50 +0000)] 
Commit new message catalog stuff and make sure the private APIs start with
an underscore.

Add status-message attribute in responses for better error reporting.

Put directory paths in _cups_globals_t structure, to make checking for
CUPS_DATADIR, etc. simpler.

Remove old message catalogs.

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

18 years agoAdd "PCL 4/5" to LaserJet driver PPD, as we now have a PCL 6 LaserJet
mike [Thu, 5 Jan 2006 21:01:13 +0000 (21:01 +0000)] 
Add "PCL 4/5" to LaserJet driver PPD, as we now have a PCL 6 LaserJet
driver from ESP Ghostscript as well.

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

18 years agoAdd 1284 device ID test program, and fix some bugs in the implementation
mike [Thu, 5 Jan 2006 16:50:50 +0000 (16:50 +0000)] 
Add 1284 device ID test program, and fix some bugs in the implementation
of the generic get_device_id code.

backend/test1284.c:
    - Added.

backend/ieee1284.c:
    - get_device_id(): Fix use device_id_size instead of
      sizeof(device_id).

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

18 years agoFix nagging "duplicate printers" error that cropped up after a SIGHUP-style
mike [Thu, 5 Jan 2006 15:45:45 +0000 (15:45 +0000)] 
Fix nagging "duplicate printers" error that cropped up after a SIGHUP-style
restart.

cups/array.c:
    - cupsArrayRemove(): If the removed element is <= (not just
      <) the current and saved elements, then decrement the
      corresponding index.  This allows cupsArrayNext()-based
      iteration to work properly.

scheduler/printers.c:
    - cupsdDeletePrinter(): Add debug2 message.
    - write_irix_config(): Remove unused variable.

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

18 years agoSave/restore in cupsdDeletePrinter().
mike [Thu, 5 Jan 2006 13:40:11 +0000 (13:40 +0000)] 
Save/restore in cupsdDeletePrinter().

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

18 years agoAdd save/restore stack.
mike [Wed, 4 Jan 2006 22:20:39 +0000 (22:20 +0000)] 
Add save/restore stack.

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

18 years agoRemove old .cvsignore files.
mike [Fri, 16 Dec 2005 12:27:56 +0000 (12:27 +0000)] 
Remove old .cvsignore files.

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

18 years agoUpdate backend man page to describe discovery and backchannel stuff.
mike [Fri, 16 Dec 2005 01:02:42 +0000 (01:02 +0000)] 
Update backend man page to describe discovery and backchannel stuff.

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

18 years agoAdd second submit button with "add/modify printer" on it under the
mike [Thu, 15 Dec 2005 22:17:54 +0000 (22:17 +0000)] 
Add second submit button with "add/modify printer" on it under the
PPD file field.

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

18 years agoMirror delete button change from delete printer confirmation template.
mike [Thu, 15 Dec 2005 22:05:13 +0000 (22:05 +0000)] 
Mirror delete button change from delete printer confirmation template.

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

18 years agoAdd IEEE 1284 device ID support to more places, and clean up
mike [Thu, 15 Dec 2005 22:03:40 +0000 (22:03 +0000)] 
Add IEEE 1284 device ID support to more places, and clean up
cups-deviced to use CUPS array API.

Fix make/model passing in add/modify printer web UI.

Use a better automatic naming convention for the "add this printer" web UI.

Rename/redo some templates to match the function names and be more
consistent with the new web UI.

backend/ieee1284.c:
    - Added - provides a generic interface to get the IEEE-1284
      device ID from a given file descriptor.

backend/parallel.c:
    - main(): Check printer status prior to ignoring signals and
      printing.
    - list_devices(): Use new 1284 device ID API to show the make
      and model of a connected printer.

backend/usb-unix.c:
    - print_file(): Check printer status prior to ignoring
      signals and printing.
    - list_devices(): Use new 1284 device ID API to show the make
      and model of a connected printer.

cgi-bin/admin.c:
    - main(): rename config-printer operation to set-printer-options.
    - do_am_printer(): set both CURRENT_DEVICE_URI and
      CURRENT_DEVICE_SCHEME, use "|" as the separator between
      device URI and make/model, and refresh to
      set-printer-options action after a successful add.
    - do_config_printer(): use new template files.
    - do_menu(): Use device-info, device-uri, and then
      device-make-and-model to come up with a suitable printer
      name; also set the location to "local printer".

doc/images/continue.gif:
    - Replaced with standard background button.

doc/images/set-printer-options.gif:
    - Renamed from config-printer.gif.

scheduler/cups-deviced.c:
    - Use CUPS array API for device list, and add 1284 device ID to
      dev_info_t structure.
    - main(): Support a 5th value in the backend output
      containing the 1284 device ID, and changes for array API.
    - add_dev(): Add device_id argument, and use array API.

templates/choose-device.tmpl:
    - Use "|" for the separator between URI and make/model.

templates/choose-model.tmpl:
    - Final button is "add/modify printer".

templates/option-trailer.tmpl:
    -

templates/printer-confirm.tmpl:
    - Confirm button is "delete printer".

templates/printers.tmpl:
    - Add make-and-model, and use new set-printer-options image and
      operation.

templates/set-printer-options-header.tmpl:
    - Renamed from config-printer.tmpl.

templates/set-printer-options-trailer.tmpl
    - Renamed from config-printer2.tmpl.

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

18 years agoUpdate PPD files for CUPS 1.2 and use the proper manufacturer and
mike [Thu, 15 Dec 2005 16:19:46 +0000 (16:19 +0000)] 
Update PPD files for CUPS 1.2 and use the proper manufacturer and
product strings.

Check for and log PPD get errors in the add/modify printer web
interface.

Make sure files are sent using a content length.

cgi-bin/admin.c:
    - do_am_printer(): Check for GET errors and log them.

ppd/*.ppd:
    - Use correct Manufacturer and Product strings.
    - Update FileVersion, cupsVersion, and NickName fields to
      reflect new minor version number.

scheduler/client.c:
    - cupsdSendFile(): Force content-length based encoding.

templates/printers.tmpl:
    - Show printer-make-and-model attribute, too.

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

18 years agoFix problem with CUPS-Add-Class and CUPS-Add-Printer operations - you
mike [Tue, 13 Dec 2005 20:39:53 +0000 (20:39 +0000)] 
Fix problem with CUPS-Add-Class and CUPS-Add-Printer operations - you
couldn't just set the printer-state to stopped.

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

18 years agoFix LPD backend problems reported by Damien Wiles.
mike [Mon, 12 Dec 2005 17:20:37 +0000 (17:20 +0000)] 
Fix LPD backend problems reported by Damien Wiles.

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

18 years agoAdd missing help files to RPM spec file.
mike [Sat, 10 Dec 2005 21:20:14 +0000 (21:20 +0000)] 
Add missing help files to RPM spec file.

Add "summary" attribute to tables.

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

18 years agoAdd initial overview and "what's new" help documents.
mike [Thu, 8 Dec 2005 02:56:48 +0000 (02:56 +0000)] 
Add initial overview and "what's new" help documents.

Do not expand all document titles when no topic/section is selected.

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

18 years agoSupport PPD file uploads when adding a printer.
mike [Wed, 7 Dec 2005 19:44:06 +0000 (19:44 +0000)] 
Support PPD file uploads when adding a printer.

Fix standard configuration template - use @CUPS_GROUP@ instead of
@CUPS_DEFAULT_GROUP@.

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

18 years agoAdd "using network printers" help document, with link from URI selection
mike [Wed, 7 Dec 2005 04:30:43 +0000 (04:30 +0000)] 
Add "using network printers" help document, with link from URI selection
page.

Use CSS for indentation and formatting of sidebar on help page.

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

18 years agoAdd standard configuration help file in "Getting Started" section.
mike [Wed, 7 Dec 2005 01:46:54 +0000 (01:46 +0000)] 
Add standard configuration help file in "Getting Started" section.

Change section name of file format references to "References".

Make sure bindir and sbindir map to actual directories without
substitutions.

Substitute CUPS_DEFAULT_DOMAINSOCKET.

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

18 years agoMinor stylesheet change to highlight tabs on hover.
mike [Wed, 7 Dec 2005 00:43:40 +0000 (00:43 +0000)] 
Minor stylesheet change to highlight tabs on hover.

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

18 years agoFix cupsdCheckPolicy() to return http_status_t so that we can use address
mike [Wed, 7 Dec 2005 00:41:11 +0000 (00:41 +0000)] 
Fix cupsdCheckPolicy() to return http_status_t so that we can use address
and encryption limits, in addition to authentication.

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

18 years agoFix missing man files.
mike [Tue, 6 Dec 2005 20:05:36 +0000 (20:05 +0000)] 
Fix missing man files.

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

18 years agoAdd support for HTML forms using multipart/form-data (for file upload).
mike [Tue, 6 Dec 2005 02:43:40 +0000 (02:43 +0000)] 
Add support for HTML forms using multipart/form-data (for file upload).

Add start of test framework.

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

18 years agoRun ./mantohtml so we get the right version...
mike [Mon, 5 Dec 2005 16:59:11 +0000 (16:59 +0000)] 
Run ./mantohtml so we get the right version...

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

18 years agoAdd man page conversion program and update cups-lpd man page.
mike [Sat, 3 Dec 2005 15:45:53 +0000 (15:45 +0000)] 
Add man page conversion program and update cups-lpd man page.

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