~ubuntu-branches/ubuntu/utopic/cups/utopic

« back to all changes in this revision

Viewing changes to scheduler/conf.c

  • Committer: Package Import Robot
  • Author(s): Didier Raboud, Till Kamppeter, Steve Langasek, Didier Raboud
  • Date: 2014-01-03 18:42:39 UTC
  • mfrom: (1.3.2)
  • mto: This revision was merged to the branch mainline in revision 142.
  • Revision ID: package-import@ubuntu.com-20140103184239-juzq32ckr7ra49b3
* New 1.7.0 upstream release

[ Till Kamppeter ]
* Refresh most patches with quilt
* Removed usb-backend-do-not-crash-if-usb-disabled-in-bios and
  cupsd-no-crash-on-avahi-threaded-poll-shutdown patches as they got
  applied upstream
* Removed drop-arch-specifics-from-doc patch as it is not needed
  anymore
* Updated drop_unnecessary_dependencies, manpage-hyphen-minus,
  manpage-translations and ppd-poll-with-client-conf patches manually
  to apply to the new CUPS version
* Added error counting exception from
  usb-backend-do-not-crash-if-usb-disabled-in-bios to
  tests-ignore-warnings
* Install the newly added ippfind utility and its manpage in
  cups-client
* Added pwg.h to libcups2-dev package
* Call dh_auto_clean only if the file Makedefs is present, to avoid a
  FTBFS
* Added color management extensions from Joe Simon's GSoC 2013
  project.
* Patch cups-files.conf to activate CUPS daemon syncing of files when
  closing, so that config files (like printers.conf) do not
  mysteriously disappear (LP: #1157972)
* In the AppArmor profile, allow execution of programs in
  /etc/cups/interfaces/, needed to make CUPS working with queues based
  on System V interface scripts, especially PPD-less queues
  auto-generated by cups-browsed from cups-filters 1.0.41 on.
* Silenced AppArmor noise from udev.conf in syslog (LP: #1229766)

[ Steve Langasek ]
* Add cups-filters (>= 1.0.42) as alternative to foomatic-filters
  (which is deprecated) in package relationships

[ Didier Raboud ]
* Remove Roger Leigh from uploaders on his request with thanks for his
  past work!
* Switch avahi LSB Should-Start dependency to be avahi-daemon; also
  bump package relationship to >= 0.6.31-3~ (Closes: #731608)
* Refresh the manpage translation files
* Move the USB backend quirk rules file to cups-server-common
* Add 38 new 1.7.0 libcups2 symbols
* Mark one C++ libcupsppdc1 symbol as optional as it isn't exported in
  1.7.0 anymore
* Import Fedora patches:
  - to avoid sign-extending CRCs in gz decompression
  - to build with full read-only relocations
  - to fix job history logging (upstream patch)
  - to set the internal default for SyncOnClose to Yes, instead of
    only configuring it to Yes
  - to fix a stringpool corruption issue
  - to prevent USB timeouts causing incorrect print output
* Import Fedora patch updates:
  - to dont-use-dbus-from-two-threads patch so it removes a call to
    avahi_threaded_poll_stop()
  - to avoid_stale_lockfile_in_dbus_notifier patch to call _exit when
    handling SIGTERM
* Move manpage-translations patch at the very end of the patch series
  to have it include all our patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * "$Id: conf.c 11221 2013-08-06 16:16:01Z msweet $"
 
2
 * "$Id: conf.c 11201 2013-07-26 21:27:27Z msweet $"
3
3
 *
4
4
 *   Configuration routines for the CUPS scheduler.
5
5
 *
237
237
    return;
238
238
 
239
239
  a->namelen = namelen;
240
 
  strcpy(a->name, name);                /* OK since a->name is allocated */
 
240
  memcpy(a->name, name, namelen + 1);   /* OK since a->name is allocated */
241
241
 
242
242
  cupsArrayAdd(aliases, a);
243
243
}
590
590
                 "%p %u %j %T %P %C %{job-billing} "
591
591
                 "%{job-originating-host-name} %{job-name} %{media} %{sides}");
592
592
  cupsdSetString(&Printcap, CUPS_DEFAULT_PRINTCAP);
593
 
  cupsdSetString(&PrintcapGUI, "/usr/bin/glpoptions");
594
593
  cupsdSetString(&FontPath, CUPS_FONTPATH);
595
594
  cupsdSetString(&RemoteRoot, "remroot");
596
595
  cupsdSetStringf(&ServerHeader, "CUPS/%d.%d IPP/2.1", CUPS_VERSION_MAJOR,
738
737
  ReloadTimeout            = DEFAULT_KEEPALIVE;
739
738
  RootCertDuration         = 300;
740
739
  StrictConformance        = FALSE;
741
 
  SyncOnClose              = FALSE;
 
740
  SyncOnClose              = TRUE;
742
741
  Timeout                  = DEFAULT_TIMEOUT;
743
742
  WebInterface             = CUPS_DEFAULT_WEBIF;
744
743
 
2983
2982
             lis;
2984
2983
             lis = (cupsd_listener_t *)cupsArrayNext(Listeners))
2985
2984
          if (httpAddrEqual(&(addr->addr), &(lis->address)) &&
2986
 
              _httpAddrPort(&(addr->addr)) == _httpAddrPort(&(lis->address)))
 
2985
              httpAddrPort(&(addr->addr)) == httpAddrPort(&(lis->address)))
2987
2986
            break;
2988
2987
 
2989
2988
        if (lis)
3039
3038
        else
3040
3039
#endif /* AF_LOCAL */
3041
3040
        cupsdLogMessage(CUPSD_LOG_INFO, "Listening to %s:%d (IPv%d)", temp,
3042
 
                        _httpAddrPort(&(lis->address)),
 
3041
                        httpAddrPort(&(lis->address)),
3043
3042
                        _httpAddrFamily(&(lis->address)) == AF_INET ? 4 : 6);
3044
3043
 
3045
3044
        if (!httpAddrLocalhost(&(lis->address)))
3046
 
          RemotePort = _httpAddrPort(&(lis->address));
 
3045
          RemotePort = httpAddrPort(&(lis->address));
3047
3046
      }
3048
3047
 
3049
3048
     /*
4087
4086
 
4088
4087
 
4089
4088
/*
4090
 
 * End of "$Id: conf.c 11221 2013-08-06 16:16:01Z msweet $".
 
4089
 * End of "$Id: conf.c 11201 2013-07-26 21:27:27Z msweet $".
4091
4090
 */