~ubuntu-branches/debian/sid/cups/sid

« back to all changes in this revision

Viewing changes to scheduler/file.c

  • Committer: Package Import Robot
  • Author(s): Didier Raboud, Adam Conrad, Till Kamppeter, Didier Raboud, Helge Kreutzmann
  • Date: 2013-11-27 17:19:20 UTC
  • mfrom: (1.2.20)
  • Revision ID: package-import@ubuntu.com-20131127171920-z7yf8trwabiq1pup
Tags: 1.6.4-1
* New 1.6.4 upstream release:
  - Removed some duplicate size definitions for some ISO sizes that
    were causing problems
  - The IPP backend did not add the "last-document" attribute
  - Added a SyncOnClose directive to cups-files.conf to force cupsd to
    call fsync before closing any configuration/state files it writes
  - Added USB quirk rule for Lexmark E238
  - Closed server connections were still not always detected
  - The libusb-based USB backend now loads its list of quirks from
    files in /usr/share/cups/usb instead of using a hardcoded table
  - The scheduler did not properly register ICC color profiles with
    colord

[ Adam Conrad ]
* Update the cupsfilters tests patch to reflect the filter list in
  cups-filters 1.0.36 and fix the testsuite
* Remove versioned Suggests/Recommends on ghostscript-cups (LP: #1212239)

[ Till Kamppeter ]
* debian/local/cups-daemon.cups.upstart: Increased timeout for waiting for
  the CUPS daemon to get ready before automatically configuring printers
  from 3 sec to 30 sec, on slower systems CUPS often needs more than 3
  seconds and so the automatic printer configuration does not get done
  (LP: #933308).
* debian/cups.dirs: Create empty /etc/cups/interfaces directory
  (LP: #499585).
* debian/control: Use "Recommends: cups-filters (>= 1.0.36) |
  ghostscript-cups (>= 9.02~)" as the CUPS filters in ghostscript-cups moved
  to cups-filters.

[ Didier Raboud ]
* Don't run the dh_auto_clean command if the Makedefs doesn't exist
  (Closes: #724134)
* Refresh patches for 1.6.4:
  - Drop colord-add-profile-fix.patch, fixed differently upstream
  - Drop usb-backend-more-quirk-rules.patch, fixed differently upstream
  - Refresh 9 other patches
* Refresh the manpages translation files
* Install the usb-quirks in cups-common
* Update the tests-use-cupsfilters patch to use a patched copy of
  cups-filters 1.0.38's cupsfilters.convs to circumvent #712337 and
  allow cups-filters 1.0.38 to ship with the optimized pstops filters
  path
* Bump cups-filters B-D to 1.0.38 to make sure the tests run as
  expected
* Fix typo in README.Debian
* On upgrade to 1.6.4, keep a copy of obsolete stanzas to let
  cups-browsed's postinst read them. This eases the 1.5->1.6 upgrade.

[ Helge Kreutzmann ]
* Update German manpages translation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * "$Id: file.c 3247 2011-05-12 06:22:31Z msweet $"
 
2
 * "$Id: file.c 11221 2013-08-06 16:16:01Z msweet $"
3
3
 *
4
4
 *   File functions for the CUPS scheduler.
5
5
 *
109
109
 
110
110
 
111
111
 /*
 
112
  * Synchronize changes to disk if SyncOnClose is enabled.
 
113
  */
 
114
 
 
115
  if (SyncOnClose)
 
116
  {
 
117
    if (cupsFileFlush(fp))
 
118
    {
 
119
      cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to write changes to \"%s\": %s",
 
120
                      filename, strerror(errno));
 
121
      cupsFileClose(fp);
 
122
      return (-1);
 
123
    }
 
124
 
 
125
    if (fsync(cupsFileNumber(fp)))
 
126
    {
 
127
      cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to sync changes to \"%s\": %s",
 
128
                      filename, strerror(errno));
 
129
      cupsFileClose(fp);
 
130
      return (-1);
 
131
    }
 
132
  }
 
133
 
 
134
 /*
112
135
  * First close the file...
113
136
  */
114
137
 
446
469
 
447
470
 
448
471
/*
449
 
 * End of "$Id: file.c 3247 2011-05-12 06:22:31Z msweet $".
 
472
 * End of "$Id: file.c 11221 2013-08-06 16:16:01Z msweet $".
450
473
 */