[SCM] Packaging of padre perl editor branch, master, updated. upstream/0.35-158-g0176d93

Damyan Ivanov dmn at debian.org
Sat May 9 15:32:44 UTC 2009


The following commit has been merged in the master branch:
commit 7ca150adc747b7716096ed061ebd0e0d68d09d63
Author: Damyan Ivanov <dmn at debian.org>
Date:   Sat May 9 16:13:03 2009 +0300

    add disable-tcp-server.patch
    
    the tcp server is used for communication with running instance of padre.
    Although it only listens on 127.0.0.1, there is no measures taken to
    ensure that the user connecting to the server is the same as the user
    running padre.

diff --git a/debian/patches/disable-tcp-server.patch b/debian/patches/disable-tcp-server.patch
new file mode 100644
index 0000000..62ec088
--- /dev/null
+++ b/debian/patches/disable-tcp-server.patch
@@ -0,0 +1,22 @@
+# Author: Damyan Ivanov <dmn at debian.org>
+# Description: disable the tcp listening service that is to be used to controll
+#              running instance of padre. It lacks any sort of authentication
+#              and binds t 127.0.0.1
+#              The proper way to fix that would be to make it listen on an Unix
+#              domain socket somewhere in $HOME ensuring the right permissions,
+#              but I found no evidence if Wx::SocketServer supporting UNIX
+#              domain sockets.
+# Upstream-Bug: http://padre.perlide.org/ticket/313
+--- a/lib/Padre/Wx/Main.pm
++++ b/lib/Padre/Wx/Main.pm
+@@ -402,6 +402,10 @@ sub single_instance_start {
+ 		return 1;
+ 	}
+ 
++    warn "single instance server is disabled in the Debian package\n";
++    warn "see /usr/share/doc/padre/README.Debian for rationale.\n";
++    return 0;
++
+ 	# Create the server
+ 	require Wx::Socket;
+ 	$self->{single_instance} = Wx::SocketServer->new(
diff --git a/debian/patches/series b/debian/patches/series
index 18ba5e8..ee6e88c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 #fix-config-error-exit-code.patch
 lower-wx-requirement-to-2.8.7.patch
+disable-tcp-server.patch

-- 
Packaging of padre perl editor



More information about the Pkg-perl-cvs-commits mailing list