aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2009-04-05 08:57:33 +0800
committermarcus <marcus@FreeBSD.org>2009-04-05 08:57:33 +0800
commit72db88aadb663afd5eb6706bb24ecef6065d7353 (patch)
treeccb1aa5ba58c5344a155e73d69cf6d9f4d29b675 /sysutils
parent209ffbae96f61263094640f98e86ddbf7e5bb662 (diff)
downloadfreebsd-ports-gnome-72db88aadb663afd5eb6706bb24ecef6065d7353.tar.gz
freebsd-ports-gnome-72db88aadb663afd5eb6706bb24ecef6065d7353.tar.zst
freebsd-ports-gnome-72db88aadb663afd5eb6706bb24ecef6065d7353.zip
Import a patch from CK git to fix a file descriptor leak.
Reported by: Jonathan Chen <jonc@chen.org.nz>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/consolekit/files/patch-src_ck-run-programs.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysutils/consolekit/files/patch-src_ck-run-programs.c b/sysutils/consolekit/files/patch-src_ck-run-programs.c
new file mode 100644
index 000000000000..f5de90d10e0c
--- /dev/null
+++ b/sysutils/consolekit/files/patch-src_ck-run-programs.c
@@ -0,0 +1,10 @@
+--- src/ck-run-programs.c.orig 2009-04-04 20:55:11.000000000 -0400
++++ src/ck-run-programs.c 2009-04-04 20:55:39.000000000 -0400
+@@ -225,6 +225,7 @@ ck_run_programs (const char *dirpath,
+ out_loop:
+ g_free (child_argv[0]);
+ }
++ g_dir_close (dir);
+ out:
+ g_strfreev (env_for_child);
+ }