~ubuntu-branches/ubuntu/lucid/consolekit/lucid-proposed

« back to all changes in this revision

Viewing changes to debian/patches/00git-directory-handle-leak.patch

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-15 11:45:56 UTC
  • Revision ID: james.westby@ubuntu.com-20090715114556-mzih0q1yr33vofem
Tags: 0.3.0-2ubuntu6
* Drop 04-consolekit_park.patch: Not necessary with new gdm any more.
* Rename patches which are in upstream git now:
  - 05-dbus_policy.patch → 00git-dbus_policy.patch
  - 05-pam-add-nox11.patch → 00git-pam-add-nox11.patch
  - 08-fix-double-close.patch → 00git-fix-double-close.patch
  - 09-directory-handle-leak.patch → 00git-directory-handle-leak.patch
  - 10-file_monitor_remove_watch_crash.patch → 00git-file_monitor_remove_watch_crash.patch
  - 11-unref-dbus-proxy.patch  → 00git-unref-dbus-proxy.patch 
* 12-allow-get-sessions.patch: Add upstream bug link.
* 07-polkit1.patch: Allow CanRestart and CanStop in D-BUS policy. (LP: #399531)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Description: Close the directory handle when we're done with it, so that we aren't leaking file descriptors.
 
2
# Ubuntu: https://launchpad.net/bugs/276918
 
3
# Upstream: https://bugs.freedesktop.org/show_bug.cgi?id=17893
 
4
Index: consolekit-0.2.10/src/ck-run-programs.c
 
5
===================================================================
 
6
--- consolekit-0.2.10.orig/src/ck-run-programs.c
 
7
+++ consolekit-0.2.10/src/ck-run-programs.c
 
8
@@ -225,6 +225,7 @@
 
9
         out_loop:
 
10
                 g_free (child_argv[0]);
 
11
         }
 
12
+        g_dir_close (dir);
 
13
 out:
 
14
         g_strfreev (env_for_child);
 
15
 }