~ubuntu-multiseat/ubuntu/trusty/udisks2/full-logind-support

« back to all changes in this revision

Viewing changes to src/udisksdaemon.c

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2012-06-13 17:01:30 UTC
  • mfrom: (1.1.1) (2.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20120613170130-9jggrd76bkv1vd0b
Tags: 1.98.0-1
* New upstream release.
* debian/control: Drop ntfsprogs Recommends. It is a transitional package
  for ntfs-3g now, which we already recommend.
* Add 00git_no_polkit_fallback.patch: Fix crash if polkit is not available.
  Patch backported from current upstream git head.
* Add debian/local/integration-test: Latest integration test suite from
  upstream git. 1.99 and later will ship that in the source tarball.
* Add debian/tests/control and debian/tests/upstream-system: DEP-8
  autopkgtest (adapted from udisks package).
* debian/control: Change suggestion of cryptsetup to cryptsetup-bin, as that
  is sufficient for udisks' needs.
* debian/copyright: Fix duplicate copyright line, thanks lintian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
 
68
68
  UDisksLinuxProvider *linux_provider;
69
69
 
 
70
  /* may be NULL if polkit is masked */
70
71
  PolkitAuthority *authority;
71
72
 
72
73
  UDisksCleanup *cleanup;
101
102
  udisks_cleanup_stop (daemon->cleanup);
102
103
  g_object_unref (daemon->cleanup);
103
104
 
104
 
  g_object_unref (daemon->authority);
 
105
  g_clear_object (&daemon->authority);
105
106
  g_object_unref (daemon->persistent_store);
106
107
  g_object_unref (daemon->object_manager);
107
108
  g_object_unref (daemon->linux_provider);
195
196
  daemon->authority = polkit_authority_get_sync (NULL, &error);
196
197
  if (daemon->authority == NULL)
197
198
    {
198
 
      udisks_error ("Error initializing PolicyKit authority: %s (%s, %d)",
 
199
      udisks_error ("Error initializing polkit authority: %s (%s, %d)",
199
200
                    error->message, g_quark_to_string (error->domain), error->code);
200
201
      g_error_free (error);
201
202
    }
433
434
 *
434
435
 * Gets the PolicyKit authority used by @daemon.
435
436
 *
436
 
 * Returns: A #PolkitAuthority instance. Do not free, the object is owned by @daemon.
 
437
 * Returns: A #PolkitAuthority instance or %NULL if the polkit
 
438
 * authority is not available. Do not free, the object is owned by
 
439
 * @daemon.
437
440
 */
438
441
PolkitAuthority *
439
442
udisks_daemon_get_authority (UDisksDaemon *daemon)