]> git.ipfire.org Git - thirdparty/cups.git/log
thirdparty/cups.git
19 years agoFix address/count netmask problem in 1.2 (STR #1257)
mike [Thu, 15 Sep 2005 18:09:46 +0000 (18:09 +0000)] 
Fix address/count netmask problem in 1.2 (STR #1257)

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

19 years agoThe IPP backend did not always report on the total number of
mike [Thu, 15 Sep 2005 17:27:19 +0000 (17:27 +0000)] 
The IPP backend did not always report on the total number of
pages that were printed (STR #1251)

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

19 years agoThe lpstat program could display garbage date and time values for
mike [Thu, 15 Sep 2005 17:23:36 +0000 (17:23 +0000)] 
The lpstat program could display garbage date and time values for
locales whose date format exceeded 31 characters (STR #1263)

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

19 years agoThe cupstestppd program would segfault when testing certain
mike [Thu, 15 Sep 2005 17:20:24 +0000 (17:20 +0000)] 
The cupstestppd program would segfault when testing certain
broken PPD files (STR #1268)

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

19 years agoFix inefficient class management issues.
mike [Thu, 15 Sep 2005 16:01:32 +0000 (16:01 +0000)] 
Fix inefficient class management issues.

scheduler/classes.c:
    - AddPrinterToClass(): Don't call SetPrinterAttrs(), as it is called
      elsewhere as needed.

scheduler/dirsvc.c:
    - ProcessBrowseData(): Log printer/class renames, send the
      appropriate events (delete old, add new), and track implicit
      class updates so that we don't call SetPrinterAttrs() more
      than once for the class.

scheduler/printers.c:
    - SetPrinterAttrs(): Only add raw filter for real printers - classes
      and remote printers just need the "raw" flag set on the queue.

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

19 years agoChange CUPS_PRINTER_SHARED to CUPS_PRINTER_NOT_SHARED so that we are still
mike [Thu, 15 Sep 2005 14:13:19 +0000 (14:13 +0000)] 
Change CUPS_PRINTER_SHARED to CUPS_PRINTER_NOT_SHARED so that we are still
compatible with older CUPS servers.  Also fix some logic problems with the
browse checks.

cups/cups.h:
    - CUPS_PRINTER_SHARED -> CUPS_PRINTER_NOT_SHARED.

scheduler/cups-polld.c:
    - poll_server(): Check for CUPS_PRINTER_NOT_SHARED set to 0.

scheduler/dirsvc.c:
    - UpdateCUPSBrowse(): Use the BrowseOrder setting to determine the
      default allowed/denied setting, and check both the hostname and
      port when determining whether to ignore the browse packet (this
      needs further updating to just use the Listen hosts and ports)

scheduler/printers.c:
    - SetPrinterAttrs(): Invert handling for CUPS_PRINTER_NOT_SHARED
      (set when printer-is-shared is false)

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

19 years agoAdd httpGetDateString2() API to replace httpGetDateString(). The new
mike [Wed, 14 Sep 2005 19:26:44 +0000 (19:26 +0000)] 
Add httpGetDateString2() API to replace httpGetDateString().  The new
API accepts a string buffer pointer and length instead of returning
a value from static storage.

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

19 years agoRewrite httpGetDateTime() to not use mktime(), since that function uses
mike [Wed, 14 Sep 2005 19:21:51 +0000 (19:21 +0000)] 
Rewrite httpGetDateTime() to not use mktime(), since that function uses
the current timezone setting instead of UTC.

cups/http.c:
    - Rename days[] and months[] to http_days[] and http_months[] to
      avoid namespace issues.
    - httpGetDateString(): Use new http_days[] and http_months[].
    - httpGetDateTime(): Convert string to UTC using some
      relatively simple math instead of mktime().

cups/testhttp.c:
    - main(): Add tests for httpGetDateString() and
      httpGetDateTime() to verify that the new implementation
      works.

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

19 years agoDrop CUPS-Add-Device and CUPS-Delete-Device, and clean up bad operation
mike [Wed, 14 Sep 2005 14:50:49 +0000 (14:50 +0000)] 
Drop CUPS-Add-Device and CUPS-Delete-Device, and clean up bad operation
name code.

cups/ipp.h:
    - Remove CUPS_ADD_DEVICE and CUPS_DELETE_DEVICE enumerations.

cups/ipp-support.c:
    - Remove CUPS-Add-Device and CUPS-Delete-Device operation strings.
    - ippOpString(): Last CUPS operation is CUPS_MOVE_JOB now.

scheduler/auth.c:
    - AddName(), AllowHost(), AllowIP(), DenyHost(), DenyIP():
      New debug2 log message.
    - AllowIP(), DenyIP(): Copy all of address and netmask, not just
      the sizeof(pointer)...
    - cupsdIsAuthorized(): Cleanup and add debug2 log messages with
      constant names to simplify debugging.
    - cupsdIsAuthorized(): Don't special-case "no allow/deny lines"
      configuration - just use Order directive to allow/deny by
      default.
    - cupsdIsAuthorized(): Use DefaultAuthType when no AuthType is
      specified for a location.

scheduler/auth.h:
    - Add DefaultAuthType (again)

scheduler/client.c:
    - SendHeader(): Use DefaultAuthType when best authentication
      type is not available or undefined.

scheduler/conf.c:
    - ReadConfiguration(): Set DefaultAuthType, remove
      CUPS_ADD_DEVICE and CUPS_DELETE_DEVICE from default policy.
    - read_configuration(): Add DefaultAuthType parsing code.

scheduler/policy.c:
    - cupsdFindPolicyOp(): Add debug2 log messages.

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

19 years agoCheck for "All" operation in policy Limit separately.
mike [Wed, 14 Sep 2005 12:30:12 +0000 (12:30 +0000)] 
Check for "All" operation in policy Limit separately.

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

19 years agoFix config files with leading spaces, and do testing for new
mike [Wed, 14 Sep 2005 02:04:15 +0000 (02:04 +0000)] 
Fix config files with leading spaces, and do testing for new
auth/policy stuff.

cups/file.c:
    - cupsFileGetConf(): Support leading whitespace on a line.

scheduler/policy.c:
    - cupsdAddPolicyOp(): Fix AuthType inheritance.

scheduler/auth.c:
    - cupsdIsAuthorized(): Add more debug stuff, and handle optional
      authentication for IPP operations.

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

19 years agoFix test suite to work with new policy stuff.
mike [Wed, 14 Sep 2005 00:31:14 +0000 (00:31 +0000)] 
Fix test suite to work with new policy stuff.

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

19 years agoFinish policy update (now compiles... :)
mike [Wed, 14 Sep 2005 00:12:05 +0000 (00:12 +0000)] 
Finish policy update (now compiles... :)

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

19 years agoSave work on upgraded policy stuff (warning, integration is not yet completed
mike [Tue, 13 Sep 2005 21:06:17 +0000 (21:06 +0000)] 
Save work on upgraded policy stuff (warning, integration is not yet completed
and will not compile...)

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

19 years agoOnly add certificates for authenticated users and only add root
mike [Fri, 9 Sep 2005 15:48:34 +0000 (15:48 +0000)] 
Only add certificates for authenticated users and only add root
certificate if running as root...

scheduler/cert.c:
    - InitCerts(): Only add root certificate when running as root.

scheduler/client.c:
    - pipe_command(): Only add certificate for authenticated users.

scheduler/main.c:
    - main(): Only add root certificate when running as root.
    - select_timeout(): Only schedule time for root cert update when running as root.

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

19 years agoFix compiles on MacOS X.
mike [Mon, 5 Sep 2005 14:20:55 +0000 (14:20 +0000)] 
Fix compiles on MacOS X.

cups/dir.c:
    - Make sure PATH_MAX is defined.

scheduler/client.c:
    - Add missing status variable.

scheduler/conf.c:
    - Make CDSA function global.

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

19 years agoAdd CacheDir support and fix some web interface and authentication issues.
mike [Thu, 1 Sep 2005 20:51:08 +0000 (20:51 +0000)] 
Add CacheDir support and fix some web interface and authentication issues.

cgi-bin/admin.c:
    - do_am_printer(): Set ppd-make or requested-attributes when
      showing the lists of makes and models; this is a lot more
      efficient...

cgi-bin/ipp-var.c:
    - ippSetCGIVars(): Add debug fprintf's.

scheduler/auth.c:
    - cupsdCheckGroup(): Added.
    - IsAuthorized(): Use new cupsdCheckGroup(), support @SYSTEM
      group name when doing lookups, and use case-insensitive
      comparisons for user and group names.

scheduler/auth.h:
    - Add cupsdCheckGroup() function and <pwd.h> include.

scheduler/client.c:
    - pipe_command(): Add CUPS_CACHEDIR env var.

scheduler/conf.c:
    - ReadConfiguration(): Add CacheDir support and use @SYSTEM
      instead of listing every system group.
    - read_configuration(): Add CacheDir support, and use @SYSTEM
      instead of listing every system group.

scheduler/conf.h:
    - Add CacheDir variable.

scheduler/cups-driverd.c:
    - main(): Fix command-line processing.
    - list_ppds(): Add debug fprintf's.

scheduler/ipp.c:
    - check_quotas(): Use cupsdCheckGroup() function.
    - get_ppds(): ppd-make is a text attribute, not a keyword
      attribute.
    - get_ppds(): Use URI escaping for spaces.
    - user_allowed(): Use cupsdCheckGroup() function.

scheduler/job.c:
    - StartJob(): Add CUPS_CACHEDIR env var.

scheduler/policy.c:
    - check_group(): Removed.
    - check_ok(): Use cupsdCheckGroup() function.

scheduler/util.c:
    - cupsdSendIPPHeader(): Status code is only 2 bytes, not 4.

test/run-stp-tests.sh:
    - Add CacheDir to sample config file.

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

19 years agoUpdate default security configuration in cupsd.conf, add new
mike [Thu, 1 Sep 2005 18:41:18 +0000 (18:41 +0000)] 
Update default security configuration in cupsd.conf, add new
DefaultAuthType directive for policy-based authentication, and
fix cups-deviced invocation to use the run/root user.

cgi-bin/admin.c:
    - Check and write /admin/conf location as well as /admin.

conf/cupsd.conf.in:
templates/edit-config.tmpl.in:
    - Add /admin/conf location which requires authentication and
      membership in the system group.

scheduler/auth.c:
    - IsAuthorized(): Add logging of group checking.

scheduler/auth.h:
    - Add DefaultAuthType variable.

scheduler/client.c:
    - ReadClient(): Add "root" argument to SendCommand() calls.
    - SendCommand(): Add "root" argument to function and to
      pipe_command() calls.
    - SendHeader(): Use DefaultAuthType for authentication
      failures that don't match a location.
    - pipe_command(): Add "root" argument to function and to
      cupsdStartProcess() calls.

scheduler/client.h:
    - Add "root" argument to SendCommand() function.

scheduler/conf.c:
    - ReadConfiguration(): Add initialization of DefaultAuthType.
    - read_configuration(): Add support for DefaultAuthType
      directive.
    - read_location(): Use DefaultAuthType as needed.

scheduler/ipp.c:
    - get_devices(): Add root argument to SendCommand() call.
    - get_ppds(): Add root argument to SendCommand() call.
    - send_ipp_error(): Always return HTTP authentication error,
      regardless of whether we have successfully authenticated
      before.

scheduler/statbuf.c:
    - cupsdStatBufUpdate(): Don't add prefix if the message
      starts with a left bracket.

systemv/lppasswd.c:
    - Update root user checks to allow for non-setuid
      installations.

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

19 years agoFix some web interface authentication issues.
mike [Wed, 31 Aug 2005 21:02:35 +0000 (21:02 +0000)] 
Fix some web interface authentication issues.

cgi-bin/html.c:
cgi-bin/var.c:
    - Log when we are asked for a password.

scheduler/client.c:
    - ReadClient(): Use Basic authentication when there are no
      locations defined (need to add a "DefaultAuthType"
      directive...)

scheduler/ipp.c:
    - send_error(): Send HTTP_UNAUTHORIZED HTTP status when user
      hasn't yet authenticated...

scheduler/policy.c:
    - check_group(): Code cleanup.

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

19 years agoAdd tools subdir to hold script tools for testing and creating
mike [Wed, 31 Aug 2005 20:29:03 +0000 (20:29 +0000)] 
Add tools subdir to hold script tools for testing and creating
releases.

tools/testrpm:
    - Export the current WC and build RPMs.

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

19 years agoUse /tmp instead of %{__tmppath}, which isn't universally defined...
mike [Wed, 31 Aug 2005 19:47:05 +0000 (19:47 +0000)] 
Use /tmp instead of %{__tmppath}, which isn't universally defined...

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

19 years agoUpdate RPM spec file with stuff to make it more compatible with
mike [Wed, 31 Aug 2005 19:44:28 +0000 (19:44 +0000)] 
Update RPM spec file with stuff to make it more compatible with
Red Hat's version...

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

19 years agoSet version number to "1.2svn" until we do a release.
mike [Wed, 31 Aug 2005 19:15:09 +0000 (19:15 +0000)] 
Set version number to "1.2svn" until we do a release.

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

19 years agoscheduler/client.c:
mike [Wed, 31 Aug 2005 18:17:28 +0000 (18:17 +0000)] 
scheduler/client.c:
    - ReadClient(): Change "strcmp() == 0" to "!strcmp()"

scheduler/auth.c:
    - IsAuthorized: Allow access from local system when there is
      no matching location.

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

19 years agoMove /etc/cups/certs to /var/run/cups/certs.
mike [Tue, 30 Aug 2005 20:32:26 +0000 (20:32 +0000)] 
Move /etc/cups/certs to /var/run/cups/certs.

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

19 years agoMore "make install" fixes...
mike [Tue, 30 Aug 2005 20:30:14 +0000 (20:30 +0000)] 
More "make install" fixes...

Makedefs.in:
    - Add STATEDIR definition.

scheduler/Makefile:
    - Announce what is being installed.

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

19 years agoRemove the old one...
mike [Tue, 30 Aug 2005 20:21:04 +0000 (20:21 +0000)] 
Remove the old one...

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

19 years agoAdd SLP include file (dunno why the "svn mv" didn't work for this one...)
mike [Tue, 30 Aug 2005 20:20:46 +0000 (20:20 +0000)] 
Add SLP include file (dunno why the "svn mv" didn't work for this one...)

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

19 years agoRename the SSL and SLP config scripts, since they are not
mike [Tue, 30 Aug 2005 20:13:19 +0000 (20:13 +0000)] 
Rename the SSL and SLP config scripts, since they are not
specific to a particular project.

Fix CUPS_FONTPATH and CUPS_LOCALEDIR definitions.

Default to supporting domain sockets, with the default domain socket
path = /var/run/cups/cups.sock, per FHS.

Properly install the state and cache directories, and ignore install
errors for the certs directory.

Change the encryption library check order to: CDSA, GNU TLS, and OpenSSL.

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

19 years agoFinish up cups-driverd and fix some bugs.
mike [Tue, 30 Aug 2005 19:27:55 +0000 (19:27 +0000)] 
Finish up cups-driverd and fix some bugs.

cgi-bin/var.c:
    - Add missing include.

config.h.in:
config-scripts/cups-directories.m4:
    - Sort directory definitions and add CUPS_CACHEDIR.

cups/dir.c:
    - cupsDirRead(): Fix readdir_r() return value checks.
    - Add debug code.

cups/tempfile.c:
    - Default to /tmp instead of /var/tmp, to conform with the
      FHS.

filter/raster.c:
    - cupsRasterReadPixels(): remove extra definition of "byte"
      variable.

Makedefs.in:
    - Add CUPS_CACHEDIR definition.

scheduler/conf.c:
    - ReadConfiguration(): Clean out TempDir if it is a
      subdirectory of RequestRoot.
    - ReadConfiguration(): Log the new value of MaxClients when
      limiting.

scheduler/cups-deviced.c:
    - Add function list to header.

scheduler/cups-driverd.c:
    - Finish up "list" implementation, including new dynamic
      driver PPD interface.

scheduler/ipp.c:
    - get_ppds(): default ppd-make to "" instead of "all".

scheduler/printers.c:
    - SetPrinterAttrs(): Fix cupsPortMonitor loops.

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

19 years agoSave work on cups-driverd.c.
mike [Tue, 30 Aug 2005 12:41:48 +0000 (12:41 +0000)] 
Save work on cups-driverd.c.

Fix compile errors.

Set keyword substitution on all source files...

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

19 years agoTweak file, directory, and PPD APIs, and save work on new cups-driverd.
mike [Tue, 30 Aug 2005 03:17:47 +0000 (03:17 +0000)] 
Tweak file, directory, and PPD APIs, and save work on new cups-driverd.

config-scripts/cups-compiler.m4:
    - Remove Wconversion option (too noisy)
    - Move -Wunused to additional development options.

cups/Makefile:
    - Remove current extended option code from build.

cups/dir.c:
cups/dir.h:
    - Change cups_dir_entry_t to cups_dentry_t.

cups/file.c:
cups/file.h:
    - Add cupsPeekChar() function.

cups/ppd.c:
cups/ppd.h:
    - Add ppdOpen2() function using cups_file_t *.
    - Comment out current (unused) extended option code.

scheduler/Makefile:
    - Add cups-driverd to build, remove ppds.o.

scheduler/banners.c:
    - Use new cupsDir*() functions.

scheduler/conf.c:
    - Create subdirs of RequestRoot and StateDir as needed.

scheduler/cups-deviced.c:
    - Use new cupsDir*() functions.
    - Add options argument to support requested-attributes and
      other future options.
    - Honor requested-attributes keywords.

scheduler/cupsd.h:
    - Remove directory includes and PPDs variable.

scheduler/cups-driverd.c:
    - Add incomplete code.

scheduler/ipp.c:
    - add_printer(): Remove unused variables.
    - get_devices(): Add requested-attributes support.
    - get_ppds(): Change to use cups-driverd subprocess.

scheduler/job.c:
    - Use new cupsDir*() functions.

scheduler/log.c:
    - check_log_file(): Change argument name from "log" to "lf"
      to eliminate a compiler warning (name shadowed).

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

19 years agoAdd new cupsDir*() functions, remove private file API header.
mike [Mon, 29 Aug 2005 07:19:08 +0000 (07:19 +0000)] 
Add new cupsDir*() functions, remove private file API header.

cups/dir.c:
cups/dir.h:
    - Added new cupsDir*() functions.

cups/file.c:
    - Move private definitions to this file and mark as private.

cups/file-private.h:
    - Removed.

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

19 years agoAdd port monitor support to scheduler.
mike [Sun, 28 Aug 2005 12:50:21 +0000 (12:50 +0000)] 
Add port monitor support to scheduler.

scheduler/ipp.c:
    - add_printer(): Validate port-monitor value against
      port-monitor-supported.

scheduler/job.c:
    - StartJob(): add CUPS_DOCROOT to environment and add port
      monitor to filter list, if configured.

scheduler/mime.h:
    - Fix mime_op_t comment formatting.

scheduler/printers.c:
    - DeletePrinter(): clear port monitor string.
    - LoadAllPrinters(): Read port monitor setting.
    - SaveAllPrinters(): Write port monitor setting.
    - SetPrinterAttrs(): Add port-monitor and port-monitor-supported
      attributes.

scheduler/printers.h:
    - printer_t: Add port_monitor member.

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

19 years agoAdd web interface for per-printer sharing via "Publish" and
mike [Sat, 27 Aug 2005 11:24:30 +0000 (11:24 +0000)] 
Add web interface for per-printer sharing via "Publish" and
"Unpublish" buttons.

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

19 years agoFix AND logic by adding reciprocal regex (word1 AND word2 OR word2 AND word1)
mike [Sat, 27 Aug 2005 03:40:05 +0000 (03:40 +0000)] 
Fix AND logic by adding reciprocal regex (word1 AND word2 OR word2 AND word1)

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

19 years agoAdd autoconf-generated RPM spec file.
mike [Sat, 27 Aug 2005 03:04:24 +0000 (03:04 +0000)] 
Add autoconf-generated RPM spec file.

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

19 years agoUse extended POSIX regular expressions.
mike [Fri, 26 Aug 2005 23:45:06 +0000 (23:45 +0000)] 
Use extended POSIX regular expressions.

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

19 years agoDon't install French man pages (for now)
mike [Fri, 26 Aug 2005 23:42:54 +0000 (23:42 +0000)] 
Don't install French man pages (for now)

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

19 years agoFix directories on Linux RPM installations.
mike [Fri, 26 Aug 2005 23:40:29 +0000 (23:40 +0000)] 
Fix directories on Linux RPM installations.

config-scripts/cups-directories.m4:
    - Prefer /etc/init.d over /etc/rc.d/init.d on Linux.

cups.spec:
    - enable and disable moved to /usr/sbin...
    - Remove French and Spanish man pages (for now)

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

19 years agoFix "make install" target to install correct files.
mike [Fri, 26 Aug 2005 22:30:50 +0000 (22:30 +0000)] 
Fix "make install" target to install correct files.

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

19 years agoMake all HR's solid and thin.
mike [Fri, 26 Aug 2005 21:10:18 +0000 (21:10 +0000)] 
Make all HR's solid and thin.

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

19 years agoFinish up on-line help CGI...
mike [Fri, 26 Aug 2005 20:47:35 +0000 (20:47 +0000)] 
Finish up on-line help CGI...

cgi-bin/help.c:
    - Add file display, show links, and do searching.

cgi-bin/help-index.c:
    - Remove help_find_node().
    - Change helpFindNode() to return help_node_t **.
    - Cleanup helpSearchIndex() and use filename to limit search.
    - help_load_file(): Don't add empty targets,

cgi-bin/help-index.h:
    - Change helpFindNode() to return help_node_t **.

scheduler/client.c:
    - ReadClient(): fix /admin check.
    - get_file(): don't localize log files.

templates/help-header.tmpl
templates/help-trailer.tmpl
    - Added

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

19 years agoImplement index search using regular expressions.
mike [Fri, 26 Aug 2005 14:59:30 +0000 (14:59 +0000)] 
Implement index search using regular expressions.

cgi-bin/help-index.c:
    - helpSearchIndex(): Implement
    - help_compile_search(): Add
    - help_insert_node(): Fix binary insertion for 1-node case
    - help_load_file(): Add whitespace to text when continuing
      lines, and close the file at the end.

cgi-bin/help-index.h:
    - Add filename argument to helpSearchIndex()

cgi-bin/testhi.c:
    - Add tests for helpSearchIndex()

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

19 years agoSave work on help indexing, and remove use of NAMLEN macro.
mike [Fri, 26 Aug 2005 01:59:24 +0000 (01:59 +0000)] 
Save work on help indexing, and remove use of NAMLEN macro.

cgi-bin/help.c:
    - Remove old code.

cgi-bin/help-index.c:
    - Finish up implementation of all core routines except search.

cgi-bin/help-index.h:
    - Fix up includes.

cgi-bin/testhi.c:
    - Implement basic load tests.

cgi-bin/testhi.html:
    - Move anchors around to better test insertion sort.

scheduler/job.c:
scheduler/mime.c:
    - Use strlen() instead of NAMLEN macro.

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

19 years agoStart adding on-line help...
mike [Thu, 25 Aug 2005 21:36:26 +0000 (21:36 +0000)] 
Start adding on-line help...

Remove all of the workaround code for directory support - we'll stick
with the POSIX API on UNIX/Linux/OSX from now on...

cups/file.c:
cups/file.h:
    - Add cupsFileLock() and cupsFileUnlock() APIs.

cgi-bin/help.c:
cgi-bin/help-index.c:
cgi-bin/help-index.h:
cgi-bin/Makefile:
cgi-bin/testhi.c:
cgi-bin/testhi.html:
    - Add indexing code (still incomplete)
    - Add test program and data.

doc/help/*:
    - Add some basic reference files.

scheduler/banners.c:
scheduler/client.c:
scheduler/cups-deviced.c:
scheduler/cupsd.h:
scheduler/job.c:
scheduler/mime.c:
scheduler/ppds.c:
scheduler/util.h:
    - Use POSIX directory functions exclusively.

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

19 years agoFix OpenBSD signalling bug that would cause the system to shutdown (STR #1258)
mike [Thu, 25 Aug 2005 15:35:19 +0000 (15:35 +0000)] 
Fix OpenBSD signalling bug that would cause the system to shutdown (STR #1258)

scheduler/main.c:
    - Only send the SIGUSR1 signal to the parent process if the
      PID is not 1.

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

19 years agoRemove old documentation page, and make "edit configuration file" page
mike [Thu, 25 Aug 2005 15:23:08 +0000 (15:23 +0000)] 
Remove old documentation page, and make "edit configuration file" page
generated like the cupsd.conf file.

configure.in:
    - Automatically generate edit-config.tmpl.
    - Remove documentation.html.

doc/documentation.html.in:
    - Remove

templates/edit-config.tmpl:
templates/edit-config.tmpl.in:
    - Rename to edit-config.tmpl.in, and use cupsd.conf.in
      template.

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

19 years agoAdd support for dynamic, on-line help CGI.
mike [Thu, 25 Aug 2005 12:15:35 +0000 (12:15 +0000)] 
Add support for dynamic, on-line help CGI.

cgi-bin/Dependencies:
    - Add help.o.

cgi-bin/help.c:
    - Added with skeleton output code for now.

cgi-bin/Makefile:
    - Added help.cgi target.

doc/index.html.in:
templates/header.tmpl:
    - Change documentation.html links to /help

scheduler/client.c:
    - Add support for mapping /help links to help.cgi.
    - Clean up checks for /admin/log.

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

19 years agotemplates/jobs.tmpl:
mike [Thu, 25 Aug 2005 03:24:08 +0000 (03:24 +0000)] 
templates/jobs.tmpl:
templates/printers.tmpl:
    - Update ALT attributes to match button text.

cgi-bin/printers.c:
    - Pass printer-type and printer-type-mask when asking for the
      list of printers.

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

19 years agodoc/index.html.in:
mike [Thu, 25 Aug 2005 03:18:12 +0000 (03:18 +0000)] 
doc/index.html.in:
    - Update web interface home page.

doc/images/config-printer.gif:
    - Change to "Set Printer Options".

doc/images/esp-logo.gif
    - Add ESP logo.

doc/images/help.gif
    - Add "Help" button.

doc/images/manage-server.gif
    - Add "Manage Server" button.

doc/images/restart-job.gif
    - Change to "Reprint Job".

doc/images/search.gif
    - Add "Search" button.

doc/images/use-default-config.gif
    - Add "Use Default Configuration File" button.

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

19 years agocups/cups.h:
mike [Wed, 24 Aug 2005 21:09:34 +0000 (21:09 +0000)] 
cups/cups.h:
    - Add CUPS_PRINTER_SHARED printer type bit.

scheduler/classes.c:
    - Load and save the shared attribute.

scheduler/cups-polld.c:
    - Only poll for shared printers.

scheduler/dirsvc.c:
    - Only broadcast shared printers.

scheduler/ipp.c:
    - Support get/set of printer-is-shared attribute.
    - Only allow remote print jobs on shared printers.
    - CUPS-Get-Printers now includes all printers and
      classes by default.

scheduler/job.c:
    - Honor the error policy for a printer.

scheduler/printers.c:
    - Load and save the shared attribute.
    - Set/clear the shared printer type bit as needed.

scheduler/printers.h:
    - Add printer_t::shared field.

scheduler/main.c:
    - Call CatchChildSignals() so that child signals are caught.

scheduler/statbuf.c:
    - "NOTICE:" is 7 characters, not 6.

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

19 years agocgi-bin/cgi.h:
mike [Wed, 24 Aug 2005 20:15:15 +0000 (20:15 +0000)] 
cgi-bin/cgi.h:
cgi-bin/html.c:
cgi-bin/var.c:
    - Add cgiStartHTML(), cgiEndHTML(), and cgiFormEncode()
      functions from admin.c for general use.
    - Add authentication hooks, such that a HTTP/IPP request that
      requires authentication will kick out a 401 status header
      instead of asking for a password.  This functionality is
      disabled after the HTML header is sent.

cgi-bin/admin.c:
    - Move form_encode(), html_end(), and html_start() to CGI
      library, and update code to use the new CGI calls.

cgi-bin/Dependencies:
cgi-bin/Makefile:
    - Add html.c/o to library build.

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

19 years ago*/Dependencies:
mike [Wed, 24 Aug 2005 19:25:49 +0000 (19:25 +0000)] 
*/Dependencies:
    - Update dependencies.

cgi-bin/admin.c:
    - Use new cupsTempFile2() API.
    - Drop old get_line() function.
    - Implement general URL redirector function, and use it for
      all successful admin ops (2 second delay).
    -

conf/mime.types:
    - Add text/css MIME type for stylesheet.

cups/cups.h:
cups/tempfile.c:
    - Add new cupsTempFile2() API (for CUPS files)

cups/file.h:
    - Fix multiple include guard.
    - Add <sys/types.h> include.

cups/ppd.h:
    - Include "file.h".

doc/cups.css:
    - Add "conflict" style.
    - Don't force TD/TH to be left-aligned.
    - Add padding to page style.
    - Add "data" style for rounded info boxes.

doc/documentation.html.in:
doc/index.html.in:
    - Correctly spell administration.

doc/images/hdr*.gif:
    - Add new box corners.

doc/images/left.gif:
doc/images/right.gif:
    - Remove old left/right graphics.

templates/*.tmpl:
    - Update to use new rounded boxes.

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

19 years agoRemove old images.
mike [Wed, 24 Aug 2005 12:01:10 +0000 (12:01 +0000)] 
Remove old images.

Update button images using new GIMP 2.2 scripts.

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

19 years agoAdd new GIMP 2.2 scripts to create new button images.
mike [Wed, 24 Aug 2005 04:28:41 +0000 (04:28 +0000)] 
Add new GIMP 2.2 scripts to create new button images.

Fix tab spacing.

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

19 years agoAuto-general index.html and documentation.html.
mike [Tue, 23 Aug 2005 21:49:20 +0000 (21:49 +0000)] 
Auto-general index.html and documentation.html.

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

19 years agoMinor spacing tweak.
mike [Tue, 23 Aug 2005 20:51:02 +0000 (20:51 +0000)] 
Minor spacing tweak.

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

19 years agoUpdate CUPS web interface to use new tabbed interface, a la the CUPS
mike [Tue, 23 Aug 2005 20:32:31 +0000 (20:32 +0000)] 
Update CUPS web interface to use new tabbed interface, a la the CUPS
home page.  (Still need to update button images and some content...)

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

19 years agoAdd simple device URI check to add_printer(); basically, now all device
mike [Tue, 23 Aug 2005 19:48:07 +0000 (19:48 +0000)] 
Add simple device URI check to add_printer(); basically, now all device
URIs must use a method that has a corresponding backend.

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

19 years agobackend/usb-unix.c:
mike [Tue, 23 Aug 2005 19:30:08 +0000 (19:30 +0000)] 
backend/usb-unix.c:
- Add some more checking to ensure we don't get "HP hp
  designjet..." model strings, and remove some unused
  code.

cgi-bin/admin.c:
- Set PRINTER_INFO (printer-description) value to make
  and model so that MacOS X clients see a reasonable
  printer name.

doc/images/accept-jobs.gif:
doc/images/reject-jobs.gif:
- Change colors to green and red, respectively.

scheduler/client.c:
- Support IPP requests that use subprocesses (cups-deviced for now)

scheduler/conf.c:
scheduler/cupsd.h:
scheduler/devices.c:
- Remove static device initialization data.

scheduler/cups-deviced.c:
- Add new external (CGI-style) program to list devices
  dynamically.

scheduler/ipp.c:
- get_devices(): use new external cups-deviced command.
- Remove extra looping variables.
- ProcessIPPRequest(): add code to handle subprocess responses.

scheduler/job.c:
- Add CUPS_SERVERBIN environment variable.

scheduler/Makefile:
- Add cups-deviced targets, remove devices.o.

scheduler/util.c:
scheduler/util.h:
- Added new utility functions for cups-deviced and others.

test/run-stp-tests.sh:
- Add symlink for daemon directory (now required for testing)

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

19 years agocgi-bin/admin.c:
mike [Mon, 22 Aug 2005 20:54:27 +0000 (20:54 +0000)] 
cgi-bin/admin.c:
    - Finalize basic settings support.
    - Add manual cupsd.conf editing form.
    - Delay HTML header until last moment.

cgi-bin/Makefile:
cgi-bin/html.c:
    - Remove unused HTML header/trailer functions.

cgi-bin/cgi.h:
cgi-bin/var.c:
    - Added "cgiIsPOST()" function.

conf/mime.types:
    - Add image/x-icon MIME type for favicon.ico support.

doc/favicon.ico:
    - Add "favorites" icon file with CUPS logo for web interface.

doc/images/*.gif:
    - Add new buttons for server configuration/information pages.

scheduler/client.c:
scheduler/client.h:
    - Add "sent_header" field to client structure.
    - Delay sending of header until first HTTP header from
      CGI script/program.
    - Add support for Location: and Status: CGI headers.

templates/admin.tmpl:
    - Add edit and view buttons.

templates/edit-config.tmpl:
    - Added to support web-based config file editing.

templates/header.tmpl:
    - Update support HTTP refresh meta attribute.

templates/restart.tmpl:
    - Added to show "please stand by while server restarts" message.

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

19 years agoUpdate (and use) web interface stylesheet.
mike [Wed, 17 Aug 2005 21:15:41 +0000 (21:15 +0000)] 
Update (and use) web interface stylesheet.

Implement fast printer adds from the admin page.

Remove @ALL from policies - not needed.

Add debug logging to basic server settings, and start implementing
config file updater.

Add make and model to device URI that is passed to allow for
automatic driver selection.

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

19 years agoRemove C++ compiler "hack" for GCC, since many GCC 4.0 installations are
mike [Wed, 17 Aug 2005 05:17:40 +0000 (05:17 +0000)] 
Remove C++ compiler "hack" for GCC, since many GCC 4.0 installations are
missing libsupc++, and since the GCC C++ ABI is now more stable...

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

19 years agoFix compiler warning (STR #1246)
mike [Wed, 17 Aug 2005 04:25:37 +0000 (04:25 +0000)] 
Fix compiler warning (STR #1246)

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

19 years agoFix compiler warning (STR #1245)
mike [Wed, 17 Aug 2005 04:23:20 +0000 (04:23 +0000)] 
Fix compiler warning (STR #1245)

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

19 years agoMake sure "fd" is always initialized when opening sockets (STR #1243)
mike [Wed, 17 Aug 2005 04:18:42 +0000 (04:18 +0000)] 
Make sure "fd" is always initialized when opening sockets (STR #1243)

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

19 years agoFix compiler warnings (STR #1242)
mike [Wed, 17 Aug 2005 04:13:15 +0000 (04:13 +0000)] 
Fix compiler warnings (STR #1242)

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

19 years agoAdd "@ALL" as a special policy name.
mike [Tue, 16 Aug 2005 21:04:30 +0000 (21:04 +0000)] 
Add "@ALL" as a special policy name.

Start work on basic server settings and list of new devices on
main admin page.

Update copyright notice on static HTML pages.

Add "change settings" button.

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

19 years agoStrip the sample cupsd.conf file to the bare essentials - the default
mike [Tue, 16 Aug 2005 19:34:42 +0000 (19:34 +0000)] 
Strip the sample cupsd.conf file to the bare essentials - the default
configuration is a secure client.

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

19 years agoAnother fix from Alex for using an uninitialized variable.
mike [Fri, 12 Aug 2005 17:17:02 +0000 (17:17 +0000)] 
Another fix from Alex for using an uninitialized variable.

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

19 years agoFix some event logging typos (thanks Alex!)
mike [Fri, 12 Aug 2005 17:11:27 +0000 (17:11 +0000)] 
Fix some event logging typos (thanks Alex!)

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

19 years agoMore vsnprintf() emulation function bug fixes.
mike [Thu, 11 Aug 2005 14:28:33 +0000 (14:28 +0000)] 
More vsnprintf() emulation function bug fixes.

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

19 years agoThe scheduler, command-line, and web interfaces now limit the
mike [Thu, 4 Aug 2005 21:00:40 +0000 (21:00 +0000)] 
The scheduler, command-line, and web interfaces now limit the
list of printers and classes to those accessible by a user.

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

19 years agoAdd "requesting-user-name" and "my-jobs" attributes to requests as needed.
mike [Thu, 4 Aug 2005 20:54:14 +0000 (20:54 +0000)] 
Add "requesting-user-name" and "my-jobs" attributes to requests as needed.

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

19 years agocupsMarkOptions() now handles more non-standard duplexing options
mike [Thu, 4 Aug 2005 20:30:15 +0000 (20:30 +0000)] 
cupsMarkOptions() now handles more non-standard duplexing options
and choices (STR #915)

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

19 years agocups-lpd now honors remote banner requests with the "standard"
mike [Thu, 4 Aug 2005 20:16:45 +0000 (20:16 +0000)] 
cups-lpd now honors remote banner requests with the "standard"
banner whenever a printer does not have one defined (STR #1220)

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

19 years agoThe scheduler's denial-of-service checks did not work properly
mike [Thu, 4 Aug 2005 19:57:56 +0000 (19:57 +0000)] 
The scheduler's denial-of-service checks did not work properly
with IPv6 addresses (STR #1134)

cups/http-addr.c:
    - httpAddrEqual(): add support for AF_LOCAL addresses.

scheduler/client.c:
    - Use httpAddrEqual() instead of memcmp() to compare client
      addresses.

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

19 years agoThe lp and lpr commands did not error out properly when they were
mike [Thu, 4 Aug 2005 19:49:35 +0000 (19:49 +0000)] 
The lp and lpr commands did not error out properly when they were
unable to write to a temporary file (STR #1129)

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

19 years agoThe pstops filter did not handle Adobe-specific comments in
mike [Thu, 4 Aug 2005 19:45:22 +0000 (19:45 +0000)] 
The pstops filter did not handle Adobe-specific comments in
Windows NT driver output (STR #1085)

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

19 years ago"lpstat -l -p" incorrectly reported the printer interface (STR
mike [Thu, 4 Aug 2005 19:37:58 +0000 (19:37 +0000)] 
"lpstat -l -p" incorrectly reported the printer interface (STR
#936)

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

19 years agoThe web interface now operates exclusively with the UTF-8
mike [Thu, 4 Aug 2005 19:27:36 +0000 (19:27 +0000)] 
The web interface now operates exclusively with the UTF-8
encoding, and sends the appropriate character set and header
information to the web browser (STR #919, STR #1007)

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

19 years agoAdded a "set allowed users" interface to the web interface so
mike [Thu, 4 Aug 2005 18:59:27 +0000 (18:59 +0000)] 
Added a "set allowed users" interface to the web interface so
that you can set the list of allowed or denied users/groups for a
printer or class.

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

19 years agoDisallow the "#" character in printer names, since it has special
mike [Thu, 4 Aug 2005 18:49:00 +0000 (18:49 +0000)] 
Disallow the "#" character in printer names, since it has special
meaning in the shell, config files, and in URIs (STR #917)

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

19 years agoAdded a new application/x-csource MIME type, and support for it
mike [Thu, 4 Aug 2005 18:40:13 +0000 (18:40 +0000)] 
Added a new application/x-csource MIME type, and support for it
to the texttops filter so that you can pretty print plain text
files without the C/C++ keywords being highlighted.

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

19 years agoThe pdftops filter did not compile with GCC 4.0 (STR #1226)
mike [Thu, 4 Aug 2005 18:32:04 +0000 (18:32 +0000)] 
The pdftops filter did not compile with GCC 4.0 (STR #1226)

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

19 years agoThe texttops filter did not highlight preprocessor directives
mike [Thu, 4 Aug 2005 15:24:49 +0000 (15:24 +0000)] 
The texttops filter did not highlight preprocessor directives
followed by a tab properly.

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

19 years agoHP PJL output now uses both JOB DISPLAY and RDYMSG commands to
mike [Thu, 4 Aug 2005 02:48:09 +0000 (02:48 +0000)] 
HP PJL output now uses both JOB DISPLAY and RDYMSG commands to
show the current job on the printer's display (STR #1218)

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

19 years agoAdd support for "ll" as well as "ll_CC" for PPD translation strings.
mike [Thu, 4 Aug 2005 01:56:16 +0000 (01:56 +0000)] 
Add support for "ll" as well as "ll_CC" for PPD translation strings.

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

19 years agopdftops/Annot.cxx:
mike [Wed, 3 Aug 2005 20:34:28 +0000 (20:34 +0000)] 
pdftops/Annot.cxx:
pdftops/Gfx.cxx:
    - Port 1.1.x pdftops annotation changes to 1.2.x.

cups/cups.h:
cups/encode.c:
    - Add new cupsEncodeOptions2() API which allows you to encode
      options for a specific group (operation, job, subscription,
      etc.)

scheduler/subscriptions.c:
    - (temporary) Log new subscription creation in
      cupsdAddSubscription()
    - Allocate event buffer the first time we send a notification
      in cupsdSendNotification

scheduler/ipp.c:
    - Remove subscription attributes one-at-a-time in
      add_job_subcriptions(), since valid job attributes are
      added to the end
    - The default job subscription event is "job-completed"
    - Send "job-created" event in create_job() and print_job()

scheduler/job.c:
    - Fix spelling error (cancelled -> canceled)

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

19 years agoAdd support for encoding of subscription attributes.
mike [Tue, 2 Aug 2005 00:09:54 +0000 (00:09 +0000)] 
Add support for encoding of subscription attributes.

Fix cupsRasterReadHeader() implementation (was copying v2 header instead
of v1)

Add additional logging of event data.

Add additional debug data to FinishJob().

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

19 years agoFix CUPS file API - wrong logic for cups_read()...
mike [Mon, 1 Aug 2005 15:22:25 +0000 (15:22 +0000)] 
Fix CUPS file API - wrong logic for cups_read()...

Update dependencies.

Add CUPS_STATEDIR environment variable and fix encryption support in
test script.

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

19 years agoUpdate PostScript test file.
mike [Thu, 28 Jul 2005 13:45:00 +0000 (13:45 +0000)] 
Update PostScript test file.

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

19 years agoMove scheduler file API to CUPS library, make cups_file_t structure
mike [Mon, 25 Jul 2005 02:10:16 +0000 (02:10 +0000)] 
Move scheduler file API to CUPS library, make cups_file_t structure
private, and add socket support to file API.

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

19 years agoLocal authentication certificates are now stored in
mike [Mon, 27 Jun 2005 02:59:29 +0000 (02:59 +0000)] 
Local authentication certificates are now stored in
/var/run/cups/certs by default instead of /etc/cups/certs (STR
#1211)

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

19 years agoBackends now use "&" to separate options in device URIs; "+" is
mike [Mon, 27 Jun 2005 02:33:50 +0000 (02:33 +0000)] 
Backends now use "&" to separate options in device URIs; "+" is
still recognized but is deprecated (STR #842)

The USB backend no longer supports the usb:/dev/foo format on
systems that support device ID queries.

Add SASL RFCs.

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

19 years agoForced classification did not work when job-sheets was "none,none".
mike [Fri, 24 Jun 2005 22:32:09 +0000 (22:32 +0000)] 
Forced classification did not work when job-sheets was "none,none".

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

19 years ago"lpstat -l -p" incorrectly showed all users as allowed, even if
mike [Tue, 21 Jun 2005 19:46:36 +0000 (19:46 +0000)] 
"lpstat -l -p" incorrectly showed all users as allowed, even if
the queue was restricted to certain users (STR #801)

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

19 years agoFix raster test program.
mike [Tue, 21 Jun 2005 19:26:28 +0000 (19:26 +0000)] 
Fix raster test program.

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

19 years agoFix charset detection code (STR #1194)
mike [Tue, 21 Jun 2005 19:10:26 +0000 (19:10 +0000)] 
Fix charset detection code (STR #1194)

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