summaryrefslogtreecommitdiff
path: root/debian/patches/0006-trans-fakeroot-remove-spurious-semicolon.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0006-trans-fakeroot-remove-spurious-semicolon.patch')
-rw-r--r--debian/patches/0006-trans-fakeroot-remove-spurious-semicolon.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/0006-trans-fakeroot-remove-spurious-semicolon.patch b/debian/patches/0006-trans-fakeroot-remove-spurious-semicolon.patch
new file mode 100644
index 00000000..9c2975f0
--- /dev/null
+++ b/debian/patches/0006-trans-fakeroot-remove-spurious-semicolon.patch
@@ -0,0 +1,29 @@
+From 73100d5107c8b5f45a0a61a851f85e548419b1d5 Mon Sep 17 00:00:00 2001
+From: Justus Winter <4winter@informatik.uni-hamburg.de>
+Date: Fri, 16 May 2014 12:50:35 +0200
+Subject: [PATCH 06/20] trans/fakeroot: remove spurious semicolon
+
+A spurious semicolon caused a control flow bug in check_openmodes,
+leading to a port leak.
+
+* trans/fakeroot.c (check_openmodes): Remove spurious semicolon.
+---
+ trans/fakeroot.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/trans/fakeroot.c b/trans/fakeroot.c
+index 987af24..0ea3cbf 100644
+--- a/trans/fakeroot.c
++++ b/trans/fakeroot.c
+@@ -222,7 +222,7 @@ check_openmodes (struct netnode *nn, int newmodes, file_t file)
+ mach_port_deallocate (mach_task_self (), file);
+ file = MACH_PORT_NULL;
+ }
+- if (file == MACH_PORT_NULL);
++ if (file == MACH_PORT_NULL)
+ {
+ enum retry_type bad_retry;
+ char bad_retryname[1024]; /* XXX */
+--
+2.0.0.rc0
+