~ubuntu-branches/ubuntu/natty/dbus/natty-201012211412

« back to all changes in this revision

Viewing changes to dbus/dbus-message.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-08-09 16:09:57 UTC
  • mfrom: (1.3.8 sid)
  • Revision ID: james.westby@ubuntu.com-20100809160957-3xh1a1tnhxebs159
Tags: 1.2.24-3ubuntu1
* Resync on Debian
* Remaining Ubuntu Changes:
  - Install into / rather than /usr.
  - debian/control: Depend on ConsoleKit for "at_console" policy stanza.
  - debian/dbus.postinst: Do not restart dbus on upgrades, since it breaks
    too many applications. Instead, trigger a "reboot required" notification.
  - debian/dbus.postinst: Create /var/run/dbus in postinst to handle system
    being rebooted before package is configured.  LP: #275229.
  - Add debian/dbus.upstart and bump debhelper b-dep to ensure that it is
    properly installed.
  - 20_system_conf_limit.patch: Increase max_match_rules_per_connection for
    the system bus to 5000 (LP #454093)
  - 81-session.conf-timeout.patch: Raise the service startup timeout from 25
    to 60 seconds. It may be too short on the live CD with slow machines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3785
3785
}
3786
3786
 
3787
3787
/**
 
3788
 * Checks what kind of bad data confused the loader.
 
3789
 *
 
3790
 * @param loader the loader
 
3791
 * @returns why the loader is hosed, or DBUS_VALID if it isn't.
 
3792
 */
 
3793
DBusValidity
 
3794
_dbus_message_loader_get_corruption_reason (DBusMessageLoader *loader)
 
3795
{
 
3796
  _dbus_assert ((loader->corrupted && loader->corruption_reason != DBUS_VALID) ||
 
3797
                (!loader->corrupted && loader->corruption_reason == DBUS_VALID));
 
3798
 
 
3799
  return loader->corruption_reason;
 
3800
}
 
3801
 
 
3802
/**
3788
3803
 * Sets the maximum size message we allow.
3789
3804
 *
3790
3805
 * @param loader the loader
4091
4106
  return msg;
4092
4107
 
4093
4108
 fail_corrupt:
4094
 
  dbus_set_error (error, DBUS_ERROR_INVALID_ARGS, "Message is corrupted");
 
4109
  dbus_set_error (error, DBUS_ERROR_INVALID_ARGS, "Message is corrupted (%s)",
 
4110
                  _dbus_validity_to_error_message (loader->corruption_reason));
4095
4111
  _dbus_message_loader_unref (loader);
4096
4112
  return NULL;
4097
4113